file_read: default 200 lines, total line count report, fix L_MAX dynamic calc

This commit is contained in:
Liang Jiaqing
2026-02-24 09:24:40 +08:00
parent ac2f8ad1e1
commit e808ce6878
5 changed files with 16 additions and 10 deletions

View File

@@ -13,7 +13,7 @@
"parameters": {"type": "object", "properties": {
"path": {"type": "string", "description": "文件相对或绝对路径。"},
"start": {"type": "integer", "description": "起始行号(从 1 开始)。", "default": 1},
"count": {"type": "integer", "description": "读取的行数。", "default": 100},
"count": {"type": "integer", "description": "读取的行数。", "default": 200},
"keyword": {"type": "string", "description": "可选搜索关键字。如果提供,将返回第一个匹配项(忽略大小写)及其周边的内容。"},
"show_linenos": {"type": "boolean", "description": "是否显示行号,建议开启以辅助 file_patch 定位。", "default": true}}, "required": ["path"]}
}},