aidex_query
Search codebases for functions, classes, and variables by name using an indexed approach. Returns precise file locations where terms appear, offering faster and more accurate results than traditional grep searches.
Instructions
Search for terms/identifiers in the AiDex index. Returns file locations where the term appears. PREFERRED over Grep/Glob for code searches when .aidex/ exists - faster and more precise. Use this instead of grep for finding functions, classes, variables by name.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to project with .aidex directory | |
| term | Yes | The term to search for | |
| mode | No | Search mode: exact match, contains, or starts_with (default: exact) | |
| file_filter | No | Glob pattern to filter files (e.g., "src/commands/**") | |
| type_filter | No | Filter by line type: code, comment, method, struct, property | |
| modified_since | No | Only include lines modified after this time. Supports: "2h" (hours), "30m" (minutes), "1d" (days), "1w" (weeks), or ISO date string | |
| modified_before | No | Only include lines modified before this time. Same format as modified_since | |
| limit | No | Maximum number of results (default: 100) |