remote_read
Read remote files by line range, returning line-numbered content for precise edits. Supports start/end lines and max byte limits.
Instructions
读取远端文件。支持按行区间读取,返回带行号以便后续精确修改。
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": "remote_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 文件路径,相对路径基于 SSH_REMOTE_BASE,也支持 ~ 和绝对路径 | |
| endLine | No | 结束行号(含),不填则到尾 | |
| maxBytes | No | 最大读取字节数,默认 512KB | |
| startLine | No | 起始行号(1 起),不填则从头 |