search_code
Search for specific code across Azure DevOps repositories by filtering projects, repositories, paths, and branches. Retrieve relevant results with customizable filters and options for facets, skip, and top entries.
Instructions
Search Azure DevOps Repositories for a given search text
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": {
"searchText": "<searchText>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Filter by branches | |
| includeFacets | No | Include facets in the search results | |
| path | No | Filter by paths | |
| project | No | Filter by projects | |
| repository | No | Filter by repositories | |
| searchText | Yes | Keywords to search for in code repositories | |
| skip | No | Number of results to skip | |
| top | No | Maximum number of results to return |