fetch_build_log
Retrieve build execution logs from TeamCity with pagination controls for efficient debugging and analysis of CI/CD pipeline results.
Instructions
Fetch build log with pagination (by lines)
Input Schema
TableJSON 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 | |
| page | No | 1-based page number | |
| pageSize | No | Lines per page (default 500) | |
| startLine | No | 0-based start line (overrides page) | |
| lineCount | No | Max lines to return (overrides pageSize) | |
| tail | No | Tail mode: return last N lines | |
| encoding | No | Response encoding: 'text' (default) or 'stream' | text |
| outputPath | No | Optional absolute path to write streamed logs; defaults to a temp file when streaming |