Retrieve full file content from an indexed repository. Use this after searching to get the complete contents of a file. ### Parameters - `repository`: Full repository name as shown in search results - `filePath`: Path to the file within the repository - `branch`: Optional branch name (uses default branch if not specified) ### Examples - `{ "repository": "github.com/org/repo", "filePath": "src/main.ts" }` - `{ "repository": "github.com/org/repo", "filePath": "README.md", "branch": "develop" }`
List indexed repositories. Returns all repositories indexed by Zoekt. Optionally filter by name pattern. ### Examples - List all repos: `{}` - Filter by org: `{ "filter": "github.com/myorg/.*" }` - Filter by name: `{ "filter": "api" }`
Search code using Zoekt. ## Query Syntax ### Basic Search - `foo` - Search for "foo" in file contents - `"hello world"` - Search for exact phrase - `foo bar` - Search for files containing both "foo" AND "bar" - `foo or bar` - Search for files containing "foo" OR "bar" ### File Filters - `file:path/to/file` - Match file path (supports regex) - `file:\.ts$` - Files ending in .ts - `-file:test` - Exclude files matching "test" - `lang:typescript` - Files of specific language - `lang:go` - Go files ### Repository Filters - `repo:myrepo` - Search in specific repository - `repo:github.com/org/.*` - Regex match on repo name - `-repo:vendor` - Exclude repositories matching "vendor" ### Branch Filters - `branch:main` - Search only in main branch - `branch:feature-.*` - Regex match on branch name ### Symbol Search - `sym:functionName` - Search for symbol definitions - `sym:MyClass` - Find class/type definitions ### Special Queries - `type:repo` - List repositories instead of searching content - `case:yes` - Case-sensitive search (default is case-insensitive) - `content:pattern` - Explicitly search file content ### Regular Expressions - `foo.*bar` - Regex: foo followed by anything then bar - `\bword\b` - Word boundary match - `[A-Z][a-z]+` - Capitalized words ### Examples - `func.*Error lang:go` - Go functions with "Error" in name - `TODO repo:myproject -file:vendor` - TODOs excluding vendor - `import.*react file:\.tsx$` - React imports in TSX files - `sym:handleRequest lang:typescript` - TypeScript function named handleRequest
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 11 | <=2025-11-25 | v2 |