Get build logs
get_build_logsFetches console logs from a specific build to identify errors, failure reasons, or issues. Returns log text per stage/task, truncating large entries to the last 150 lines.
Instructions
Fetch the console log output of a build. Use this when the user asks for build logs, error details, failure reason, or what went wrong in a build. Returns log text per stage/task. Large logs are automatically truncated to the last 150 lines per entry.
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": {
"buildId": "<buildId>"
},
"name": "get_build_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Azure DevOps project name or id. Defaults to AZDO_PROJECT if set. | |
| buildId | Yes | Build id (from get_last_build or list_builds). | |
| maxLinesPerEntry | No | Max lines to return per log entry. Default: 150. |