establish_work_item_context
Resolve an Azure DevOps work-item URL or numeric ID into a structured context including organisation, project, and ID for use by downstream tools.
Instructions
Resolve a work-item URL or numeric ID into a structured context.
Parses a full Azure DevOps work-item URL or resolves a bare numeric
work-item ID using the cached repository context. The returned
AzureDevOpsWorkItemContext carries the organisation, project,
work-item ID, and computed org_url for downstream tools.
Caveat — work board ≠ code repo: when resolving a bare numeric ID
against a workspace whose work board lives in a different
organisation than any of the discovered code repos, the resolved
org_url will land on the code-repo organisation, not the work
board's. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| work_item_url_or_id | Yes | ||
| working_directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |