extract_ast_skeleton
Extract Python class and function signatures, line ranges, and docstrings without reading full files, so agents can locate target functions at zero LLM tokens.
Instructions
Extract class and function signatures, line ranges, and docstrings from Python source code at 0 LLM tokens. Allows agents to locate target functions without reading entire files.
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": "extract_ast_skeleton"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Raw Python source code string to skeletonize directly if not reading from disk. | |
| file_path | No | Path to Python source file on disk. |