Get saved query
get_queryRetrieve a saved Azure DevOps work item query by GUID or path, returning its metadata and WIQL text, or list child queries for folders.
Instructions
Read a saved work item query by GUID or path (e.g. 'Shared Queries/Team/Open Bugs'): name, path, type, columns and WIQL text. For folders, children are listed (depth 1).
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": {
"queryId": "<queryId>"
},
"name": "get_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Team project name or id. Overrides TFS_DEFAULT_PROJECT. Work items and repos may live in different projects. | |
| queryId | Yes | Query GUID or full path. |