fetch_build_log
Retrieve paginated build logs from TeamCity to analyze CI/CD pipeline execution details and troubleshoot issues efficiently.
Instructions
Fetch build log with pagination (by lines)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
buildId | No | Build ID (TeamCity internal id) | |
buildNumber | No | Human build number (e.g., 54). If provided, optionally include buildTypeId to disambiguate. | |
buildTypeId | No | Optional build type ID to disambiguate buildNumber | |
lineCount | No | Max lines to return (overrides pageSize) | |
page | No | 1-based page number | |
pageSize | No | Lines per page (default 500) | |
startLine | No | 0-based start line (overrides page) | |
tail | No | Tail mode: return last N lines |
Input Schema (JSON Schema)
{
"properties": {
"buildId": {
"description": "Build ID (TeamCity internal id)",
"type": "string"
},
"buildNumber": {
"description": "Human build number (e.g., 54). If provided, optionally include buildTypeId to disambiguate.",
"type": "string"
},
"buildTypeId": {
"description": "Optional build type ID to disambiguate buildNumber",
"type": "string"
},
"lineCount": {
"description": "Max lines to return (overrides pageSize)",
"type": "number"
},
"page": {
"description": "1-based page number",
"type": "number"
},
"pageSize": {
"description": "Lines per page (default 500)",
"type": "number"
},
"startLine": {
"description": "0-based start line (overrides page)",
"type": "number"
},
"tail": {
"description": "Tail mode: return last N lines",
"type": "boolean"
}
},
"required": [],
"type": "object"
}