search_code
Find code across Azure DevOps project repositories using text queries and filters for repository, branch, path, and 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: no default project). 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: example-org) |