feat(read_file): schema 补 offset 参数说明

This commit is contained in:
ymq 2026-08-31 22:01:27 +08:00
parent e598665b8e
commit d5ff970735

View File

@ -228,8 +228,8 @@ GENERAL_TOOLS = [
# ── 通用工具集Hermes CLI 能力子集:文件/搜索/会话/规划)──
ToolDefinition(
name="read_file",
description="读取工作空间中的文件内容。支持 docx/txt/md/json 等文本格式docx 会自动解析提取正文文本,直接调用即可读取 docx 内容",
parameters={"path": "相对路径"},
description="读取工作空间中的文件内容。支持 docx/txt/md/json 等文本格式docx 会自动解析提取正文文本,直接调用即可读取 docx 内容。单次最多 30000 字符;返回带截断提示时,用 offset 参数分段读后文",
parameters={"path": "相对路径", "offset": "可选:从第几个字符开始读(分段读大文件)"},
category="file",
),
ToolDefinition(