list_pipeline_runs
List recent pipeline runs by pipeline ID or name and filter by state, result, branch, or creation date to inspect build history and diagnose failures.
Instructions
List recent runs for a pipeline, identified by pipelineId or pipelineName
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": {
"top": "<top>",
"orderBy": "<orderBy>"
},
"name": "list_pipeline_runs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | Maximum number of runs to return (1-100) | |
| state | No | Filter by current run state | |
| branch | No | Branch to filter by (e.g., "main" or "refs/heads/main") | |
| result | No | Filter by final run result | |
| orderBy | Yes | Sort order for run creation date | createdDate desc |
| createdTo | No | Filter runs created at or before this time (ISO 8601) | |
| projectId | No | The ID or name of the project (Default: MyProject) | |
| pipelineId | No | Pipeline numeric ID. Alternatively provide pipelineName | |
| createdFrom | No | Filter runs created at or after this time (ISO 8601) | |
| 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). | |
| continuationToken | No | Continuation token for pagination |