search_code
Find code across Azure DevOps repositories using text or regex search. Returns matching files with line context to help developers locate specific code segments.
Instructions
Search for code across all repositories in the project. Returns matching files with line context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searchText | Yes | Text or code to search for (supports regex and keywords) | |
| top | No | Max results to return (default 25) | |
| repository | No | Limit search to a specific repository name | |
| branch | No | Limit search to a specific branch |