search_code
Search code across Azure DevOps project repositories by text and filter results by repository, branch, path, or code element to locate matching files and snippets.
Instructions
Search for code across repositories in a project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | Number of results to return (default: 100, max: 1000) | |
| skip | Yes | Number of results to skip for pagination (default: 0) | |
| filters | No | Optional filters to narrow search results | |
| projectId | No | The ID or name of the project to search in (Default: MyProject). If not provided, the default project will be used. | |
| searchText | Yes | The text to search for | |
| includeContent | Yes | Whether to include full file content in results (default: true) | |
| includeSnippet | Yes | Whether to include code snippets in results (default: true) | |
| organizationId | No | The ID or name of the organization (Default: mycompany) |