read_file
Read text files with line numbers, resolve relative paths against the default workspace, and use startLine/endLine to inspect large files.
Instructions
Read a text file with line numbers. Relative paths resolve against the default workspace. Use startLine/endLine for large files.
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 | |
| endLine | No | ||
| startLine | No |