read_file_surgical
Read a file or extract a specific symbol from code, using precise AST-based operations to reduce token usage.
Instructions
Read a file or extract a specific named symbol
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": {
"filePath": "<filePath>",
"projectRoot": "<projectRoot>"
},
"name": "read_file_surgical"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to file | |
| projectRoot | Yes | Project root (REQUIRED) | |
| symbolName | No | Symbol name to extract (optional) | |
| className | No | Class name for scoping (optional) |