Match JavaScript AST
analysis_ast_matchParse JavaScript code and find AST nodes by Acorn node type with optional property filters for targeted syntax analysis.
Instructions
Find AST nodes by Acorn node type and optional property filters.
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": {
"code": "<code>",
"nodeType": "<nodeType>"
},
"name": "analysis_ast_match"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| filter | No | ||
| nodeType | Yes | ||
| maxResults | No |