Get Failed Job Logs Tool
get_failed_job_logs_toolGet the end of the log of each failed job in a GitHub Actions run.
Instructions
Get the end of the log of each failed job in a GitHub Actions run.
Returns the last tail_lines lines of every job that failed or timed
out, with ANSI escapes and timestamps removed, and the names of the steps
that failed. Logs are fetched for at most 5 failed jobs and all log text
together is capped at 256 KiB; truncated and failed_jobs_omitted
say when something was cut. jobs_truncated means the run has more than
the 300 jobs examined, so the failed-job counts cover only those.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name | |
| owner | No | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
| run_id | Yes | Workflow run ID | |
| tail_lines | No | Lines to return from the end of each log (default 200, max 1000) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||