get_symbol_slice
Retrieve exact source code for a single function, class, or method by symbol name without loading the whole file.
Instructions
Extract the exact source code block of a single function or class by symbol name without reading the surrounding file.
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_path": "<file_path>",
"symbol_name": "<symbol_name>"
},
"name": "get_symbol_slice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | File path containing the symbol. | |
| symbol_name | Yes | Name of the function, class, or method to slice. |