read_symbol
Retrieves source code for one symbol or line range from a file, so agents can inspect only needed code and reduce context tokens.
Instructions
Source of one symbol (e.g. "fn", "Class.method") or a line range.
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": {
"file": "<file>"
},
"name": "read_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| symbol | No | ||
| endLine | No | ||
| startLine | No |