get_ast
Retrieve the function-level AST (CodeXM JSON) for a specified function to inspect its structure. Requires the AST to be exported during indexing.
Instructions
获取函数级 AST(CodeXM 模型 JSON)。需要索引阶段已导出该函数 AST。
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": {
"fn": "<fn>"
},
"name": "get_ast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fn | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |