expand
Takes a Python file and specified function/class names, returns their full source code along with compressed dependency context.
Instructions
Given function/class names in a .py file, return them verbatim (full source) plus their compressed dependency context.
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>",
"targets": "<targets>"
},
"name": "expand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targets | Yes | Function/class names to expand. | |
| file_path | Yes | Path to a .py file (relative to --root or absolute). |