Run WIQL
run_wiqlExecute any WIQL query to retrieve matching work items or link trees from TFS/Azure DevOps Server, with options for fields, format, and project.
Instructions
Execute an arbitrary WIQL query string as-is, e.g. "SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @project AND [System.State] = 'Active'". Returns the matching work items (flat) or the link tree (tree/oneHop queries).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Max number of work items to materialise. | |
| wiql | Yes | Full WIQL statement. | |
| fields | No | Fields to return per work item. Defaults to the SELECT columns. | |
| format | No | How to return rich-text fields (Description, Repro Steps, comments): converted to plain text/markdown, or raw HTML. | text |
| project | No | Project used to resolve @project; optional for collection-wide queries. |