CI logs
project_ci_logsRead CI run or job logs to surface failure errors, returning only the log tail with optional line and byte limits.
Instructions
Read CI logs: a whole run (GitHub ZIP or up to 3 failing GitLab/Bitbucket jobs) or a single job/step. Returns the tail, not the whole log. Use when: a run failed and you need the error. Pass job_id to isolate the failing job; tail_lines/max_bytes keep it small. Avoid when: you only need pass/fail (use project_ci_status). Speed: 1 download; run archives are parsed in memory with per-entry caps. Output: ci_logs: repo, provider, run_id|job_id, source, entries[] {name, bytes, skipped?}, lines, text (tail), truncated, dropped_lines, dropped_bytes. Batch-safe: yes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository as "owner/name" or a PR URL (default: VENIRA_GIT_REPO, git.repo in venira.config.json, else the workspace .git origin remote). | |
| job_id | No | Single job: GitHub/GitLab job id, or a Bitbucket step UUID (or "pipelineUuid:stepUuid"). | |
| run_id | No | Whole run: GitHub/GitLab id, or a Bitbucket pipeline UUID. | |
| provider | No | Provider override for this call (default: VENIRA_GIT_PROVIDER, then venira.config.json, then inferred from the origin remote). | |
| max_bytes | No | Max text bytes returned (default 512KB, cap 4MB). | |
| tail_lines | No | Keep only the last N lines (default 500). |