Search Files
searchSearch code in a workspace with exact text, regex, or symbol queries to verify implementation details. Narrow results by path, glob, or structured intent for references and impact.
Instructions
Use this for targeted verification or code lookup. Prefer one specific final search instead of repeated broad verification searches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Optional glob, for example src/**/*.ts. | |
| path | No | Directory or file relative to workspace root. Default: . | |
| query | Yes | Text or regex to search for. | |
| regex | No | Treat query as a regular expression. Requires ripgrep. Default: false. | |
| intent | No | Optional structured search intent. Omit for legacy lexical behavior. | |
| symbol | No | Optional symbol query. Uses repository analysis and overrides query text. | |
| max_results | No | Maximum results. Default from config. | |
| workspace_id | No | Workspace id from open_workspace. Omit to use the workspace selected for this MCP session. | |
| include_tests | No | Include related tests in structured results. Default: false. | |
| include_hidden | No | Include hidden files that are not blocked. Default: false. |