read_symbol
Retrieve the body of a function or class by name from a file, limiting output to the requested symbol to reduce reading tokens.
Instructions
Body of one function/class by name.
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>",
"symbol": "<symbol>"
},
"name": "read_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File | |
| symbol | Yes | Name, case-insensitive, partial ok | |
| maxLines | No |