read_file
Read a file by relative path, with optional line offset and limit. Returns structured JSON content or indicates if file is unchanged.
Instructions
Read file. Returns {content, lines} or {unchanged:true, lines} if already read and unmodified.
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 |
|---|---|---|---|
| limit | No | Max lines | |
| offset | No | Start line (0-based) | |
| path | Yes | Relative path |