get_pipeline_log
Retrieve a specific Azure DevOps pipeline log by timeline log ID, and target the run by runId or by pipeline name/ID plus build number.
Instructions
Retrieve a specific pipeline log using the timeline log identifier. 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": {
"logId": "<logId>"
},
"name": "get_pipeline_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logId | Yes | Log identifier from the timeline record | |
| runId | No | Pipeline run (build) ID. Alternatively provide buildNumber together with pipelineName or pipelineId | |
| format | No | Optional format for the log contents (plain or json) | |
| endLine | No | Optional ending line number for the log segment | |
| projectId | No | The ID or name of the project (Default: MyProject) | |
| startLine | No | Optional starting line number for the log segment | |
| 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). |