get_build_test_results
Retrieve test run summaries and test results for a pipeline run by run ID or pipeline name plus build number, defaulting to failed, aborted, timeout, and error tests.
Instructions
Retrieve test run summaries and test results (defaulting to failed/aborted/timeout/error tests with error messages and stack traces) for a pipeline run. The run can be identified by runId or by pipelineName (or pipelineId) plus buildNumber.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_build_test_results"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Optional number of test results to skip per test run for pagination (default 0). | |
| runId | No | Pipeline run (build) ID. Alternatively provide buildNumber together with pipelineName or pipelineId | |
| topRuns | No | Maximum number of test runs to inspect for the build (1-200, default 50). | |
| outcomes | No | Test outcome filter: array of TestOutcome names (e.g. ["Failed", "Aborted", "Timeout", "Error"], ["Passed"]), numeric outcome codes (0-14), or "all". Defaults to failure-focused outcomes: ["Failed", "Aborted", "Timeout", "Error"]. | |
| projectId | No | The ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT) | |
| maxResults | No | Maximum total test results returned across all test runs for this build (1-1000, default 100). Per-run API $top is capped at 200 when detailsToInclude is not "None" and 1000 otherwise. | |
| pipelineId | No | Optional pipeline numeric ID; scopes buildNumber lookups | |
| buildNumber | No | Build number / run name as shown in the Azure DevOps UI (e.g. "20240115.3"). Alternative to runId; combine with pipelineName or pipelineId to make it unambiguous. | |
| pipelineName | No | Pipeline (build definition) name, as shown in the Azure DevOps UI. Alternative to pipelineId. Prefix it with its folder path to disambiguate pipelines that share a name (e.g. "Backend/Deploy"; "/Deploy" for the root folder). | |
| detailsToInclude | No | Optional detail level per test result ("None", "Iterations", "WorkItems", "SubResults", "Point"). Defaults to "None". Non-None values cap per-run API $top to 200. |