读取文件
read_fileRead text files in a workspace by specifying a line range, returning content with line numbers for targeted code inspection.
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": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| end_line | No | ||
| max_bytes | No | ||
| start_line | No | ||
| line_numbers | No |