read_file
Read a file from the workspace by providing its relative path. Optionally specify start and end lines to retrieve a portion of the file.
Instructions
Read the contents of a file in the workspace. Returns the file text, or an error if the file is too large or missing.
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 | Relative file path to read | |
| endLine | No | Last line to read (1-based, default: end of file) | |
| startLine | No | First line to read (1-based, default: 1) |