ast_search
Search code by structural AST patterns to locate specific code structures. Read-only operation for safe repository analysis.
Instructions
Structural AST search. Read-only.
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": {
"pattern": "<pattern>",
"paths": "<paths>"
},
"name": "ast_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| paths | Yes | ||
| pattern | Yes |