Search files (ToolAhead)
searchReturn path, line, and content matches for a regular expression across your workspace. Uses prefetched results to eliminate wait time for coding agents.
Instructions
Search workspace file contents with a regular expression and return path:line:content matches. Use this instead of another grep/search tool when available: ToolAhead may return an exact prefetched result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Include/exclude glob, or a list; prefix exclusions with !. | |
| path | No | File or directory to search; defaults to the workspace. | |
| query | No | Compatibility alias for pattern. | |
| offset | No | 1-based result offset. | |
| pattern | No | Regular expression to search for. | |
| multiline | No | Allow matches across line boundaries. | |
| head_limit | No | Maximum results to return (default 200). | |
| output_mode | No | Result shape; defaults to content. | |
| case_insensitive | No | Enable case-insensitive matching. |