fs_read
Reads text files from a sandbox with optional line-range and byte-limit controls, letting agents inspect file contents without loading the whole file.
Instructions
读取沙箱内的文本文件,可按行截取。
Args: path: 相对于沙箱根目录的文件路径。 start_line: 起始行号(从 1 开始)。 end_line: 结束行号;0 表示读到文件末尾。 max_bytes: 最多读取的字节数;0 表示使用配置上限。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "fs_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| end_line | No | ||
| max_bytes | No | ||
| start_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |