read_smart
Read files with a context-aware policy: supply a query to get only relevant lines with line numbers, omit it for a skeleton of large code, or set full=true for the entire file.
Instructions
Read a file through the context policy. With a query ("where is the retry limit
set?") you get only the relevant definitions or lines, with line numbers; without one, a
skeleton for large code files. Set full=true to get every line.
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_smart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | ||
| path | Yes | ||
| query | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |