structural_search
Find code structures across repositories using AST patterns. Provide a pattern and language to locate definitions or other syntactic elements.
Instructions
ast-grep over the repo: a pattern that PARSES, e.g. 'def $F($$$)' with lang=python.
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>"
},
"name": "structural_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |