search_crossproject
Search text or regex in configured companion repositories outside the current workspace, with glob, path, and context-line options. Retrieve matches across related projects without leaving your current session.
Instructions
Search text or regex in a configured workspace root, usually a companion repo outside the current project workspace. Prefer built-in code navigation/LSP tools in the current workspace when they apply. Uses ripgrep with output modes, context lines, case-insensitive matching, and pagination; when using contextLines, results include contextBefore/contextAfter arrays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Optional glob pattern to filter files by name/extension (e.g., "**/*.swift") | |
| path | No | Optional path relative to workspace root to scope the search. Can be a directory (e.g., "Modules/Messaging/Sources") or a single file (e.g., "Modules/.../File.swift"). | |
| limit | No | Maximum number of results | |
| offset | No | Skip first N results | |
| pattern | Yes | Search pattern (regex or text) | |
| workspace | Yes | Workspace name (none configured — create a workspace-config.json) | |
| outputMode | No | content: show matches with line numbers, files: paths only, count: match counts | content |
| contextLines | No | Show N lines before/after each match (content mode only) | |
| caseInsensitive | No | Case-insensitive search (default: false) |