get_work_item
Fetch a single Azure DevOps work item by URL or numeric ID. Returns complete detail including fields, area path, and parent ID. Prefer a full URL to avoid organization mismatch.
Instructions
Fetch a single work item by URL or numeric ID.
Returns WorkItemDetail with all fields, area path, parent ID, and a full fields dict for type-specific access.
Caveat — work board ≠ code repo: passing a bare numeric ID resolves the org/project from the cached repository context, which can land on the wrong organization when the work board lives in a different tenant than any of the discovered code repos. Prefer passing a full work-item URL whenever one is available.
Args: work_item_url_or_id: A full Azure DevOps work-item URL or a numeric work-item ID. working_directory: Optional path for repository-context resolution when using a numeric ID.
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": {
"work_item_url_or_id": "<work_item_url_or_id>",
"working_directory": "<working_directory>"
},
"name": "get_work_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| work_item_url_or_id | Yes | ||
| working_directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |