get_symbol_signature
Retrieve a Python function, class, or method signature and docstring without reading the full file. Specify a symbol name and optional path to get token-efficient code context.
Instructions
Return a Python symbol's signature and docstring without its body.
Far cheaper than reading the file. Works for functions, classes (methods listed as signatures) and methods.
Args:
symbol_name: Qualified name (pkg.mod.Class.method) or any dotted suffix of it
(Class.method, method). Ambiguous suffixes return the candidates.
path: Repository root to search (default: the server's working directory).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| symbol_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |