tfs_query_work_items
Run a WIQL query to retrieve work items with ID and key fields from TFS. Specify a SELECT statement to filter by type, state, or project.
Instructions
Run a WIQL query and return matching work items (id + key fields). Provide a full WIQL SELECT statement.
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": {
"wiql": "<wiql>"
},
"name": "tfs_query_work_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Max number of full work items to expand (default 50) | |
| wiql | Yes | WIQL query, e.g. "SELECT [System.Id] FROM WorkItems WHERE [System.WorkItemType]='Bug' AND [System.State]='Active'" | |
| project | No | Project name (defaults to TFS_PROJECT) |