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