get_function_source
Retrieve the full source of a function or method by symbol name, no file path required, so you read only the code you need instead of entire files.
Instructions
Full source of a function or method by name, no path needed: reads the symbol instead of the whole file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_function_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Function or method (e.g. 'MyClass.method'). | |
| hints | No | Append a one-line get_full_context hint (default true). | |
| level | No | ||
| names | No | Batch mode: list of names (max 10). Returns {name: result} dict. Mutually exclusive with 'name'. | |
| project | No | Project name/path (default: active). | |
| function | No | Alias de `name`. Function or method (e.g. 'MyClass.method'). | |
| file_path | No | ||
| max_lines | No | Cap lines (0=all, level=0 only). | |
| force_full | No | Bypass symbol cache. | |
| symbol_name | No | Alias de `name`. Function or method (e.g. 'MyClass.method'). |