Query work items (WIQL)
query_work_itemsRun WIQL queries against Azure DevOps projects and return matching work-item IDs.
Instructions
Run a Work Item Query Language (WIQL) query against a project and return the matching work-item ids (fetch fields with get_work_item). Example: SELECT [System.Id] FROM WorkItems WHERE [System.State] = 'Active'.
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": {
"project": "<project>",
"wiql": "<wiql>"
},
"name": "query_work_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wiql | Yes | A WIQL query string, e.g. SELECT [System.Id] FROM WorkItems WHERE [System.WorkItemType] = 'Bug' | |
| project | Yes | Project name or id (must be within AZDO_PROJECT_ALLOWLIST when that is set) |