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.
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'). |