list_declarations
Retrieve module-level variable declarations with annotated or inferred types from a Python file's AST, enabling quick inspection of typed assignments.
Instructions
List module-level assignments with annotated or inferred types.
Args: path: Path to a .py file.
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": {
"path": "<path>"
},
"name": "list_declarations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |