Search code
devops_code_searchSearch source code across an Azure DevOps project and return matching file locations with snippet context, optionally filtered by repository, path, or branch.
Instructions
Search source code in the configured Azure DevOps project. Returns matching file locations with snippet context. Optionally filter by repository, path, and branch.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"search_text": "<search_text>"
},
"name": "devops_code_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum number of results to return (1–1000). | |
| path | No | Filter results to one or more file paths (prefix match). | |
| skip | No | Number of results to skip for pagination. | |
| branch | No | Filter results to one or more branch names. | |
| repository | No | Filter results to one or more repository names. | |
| search_text | Yes | Keywords or code fragment to search for. | |
| include_facets | No | When true, include facet counts (projects, repositories, etc.) in the response. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |