pattern | string | Yes | Text pattern to search for across file contents. Interpreted as regex when regex is true. |
path | string | No | Directory scope to search within (omit to search entire workspace) |
regex | boolean | No | When true, treat pattern as a regular expression. Default: false. |
case_sensitive | boolean | No | When false, match case-insensitively. Default: true. |
context_lines | number | No | Number of lines of context to include around each match (0–10). When > 0, results include a matches array where each entry has line (1-based line number of the match itself) and content (the matched line plus surrounding context lines). Default: 0 (no snippets). |