read
Read file content with line numbers from a specified offset and limit. Records file hash to enforce read-before-edit consistency.
Instructions
Read a file, optionally from offset (1-based) for limit lines.
Returns line-numbered content like cat -n. Records the file's
content hash so a subsequent edit can enforce must-read-first.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |