Search theme files
search_filesSearch theme files for text or regex to locate code, returning matching files with line numbers and context. Pinpoint relevant code sections without reading entire files.
Instructions
Search all text files in the theme for a string or JavaScript regex. Returns matching files with line numbers and context. Always use this to locate code instead of reading whole files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text or regex to search for | |
| is_regex | No | Treat query as a regex (default false) | |
| file_filter | No | Only search files whose path contains this substring, e.g. 'sections/' | |
| max_results | No | ||
| include_hidden | No | Also return matches inside disabled (hidden) sections/blocks in template JSON. Default false — hidden content is skipped. |