Read file
read_fileRead a workspace file, optionally a window of lines, and get its total line count. Use it to inspect file contents or specific line ranges before editing.
Instructions
Reads a workspace file, optionally a window of lines, with the total count.
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 | File path relative to the workspace root | |
| maxLines | No | How many lines to return | |
| startLine | No | First line to return (1-based) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||