redcon_structural_search
Search code by abstract syntax tree (AST) pattern to find structural matches while ignoring comments and strings, making it more precise than regex.
Instructions
Search by AST pattern (ast-grep), not regex, so matches skip comments and strings. Needs ast-grep on PATH or redcon[ast_grep]; returns backend=unavailable otherwise so callers fall back to redcon_search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | . | |
| pattern | Yes | ||
| language | No | Language hint (python, javascript, rust, ...) | |
| max_results | No |