Browse Log Files
browse_build_logsBrowse and fetch files from a build's log directory. List subdirectories or retrieve file content up to 512KB with optional line limit.
Instructions
Browse or fetch files from a build's log directory.
Without path: lists the top-level log directory. With path ending in '/': lists that subdirectory. With path to a file: fetches and returns the file content (max 512KB).
For filtered reads of large files, use get_build_log with log_name and grep instead — it supports regex search and line ranges.
Args: uuid: Build UUID tenant: Tenant name (uses default if empty) path: Relative path within the log dir (e.g. "logs/controller/", "zuul-info/inventory.yaml", "logs/hypervisor/ci-framework-data/artifacts/") url: Zuul build URL (alternative to uuid + tenant) max_lines: Limit file content to first N lines (0 = no limit). Response includes total_lines count for pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| path | No | ||
| uuid | No | ||
| tenant | No | ||
| max_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |