download_pipeline_artifact
Retrieve textual content from a file in an Azure DevOps pipeline run artifact by specifying the artifact path and locating the run with a run ID or pipeline name plus build number.
Instructions
Download a file from a pipeline run artifact and return its textual content. The run can be identified by runId or by pipelineName (or pipelineId) plus buildNumber.
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": {
"artifactPath": "<artifactPath>"
},
"name": "download_pipeline_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | No | Pipeline run (build) ID. Alternatively provide buildNumber together with pipelineName or pipelineId | |
| projectId | No | The ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT) | |
| pipelineId | No | Optional pipeline numeric ID; scopes buildNumber lookups and validates the run belongs to this pipeline | |
| 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. | |
| artifactPath | Yes | Path to the desired file inside the artifact (format: <artifactName>/<path/to/file>) | |
| 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). |