| { |
| "name": "get_job_logs", |
| "description": "Get logs for GitHub Actions workflow jobs.\nUse this tool to retrieve logs for a specific job or all failed jobs in a workflow run.\nFor single job logs, provide job_id. For all failed jobs in a run, provide run_id with failed_only=true.\n", |
| "inputSchema": { |
| "type": "object", |
| "properties": { |
| "failed_only": { |
| "type": "boolean", |
| "description": "When true, gets logs for all failed jobs in the workflow run specified by run_id. Requires run_id to be provided." |
| }, |
| "job_id": { |
| "type": "number", |
| "description": "The unique identifier of the workflow job. Required when getting logs for a single job." |
| }, |
| "owner": { |
| "type": "string", |
| "description": "Repository owner" |
| }, |
| "repo": { |
| "type": "string", |
| "description": "Repository name" |
| }, |
| "return_content": { |
| "type": "boolean", |
| "description": "Returns actual log content instead of URLs" |
| }, |
| "run_id": { |
| "type": "number", |
| "description": "The unique identifier of the workflow run. Required when failed_only is true to get logs for all failed jobs in the run." |
| }, |
| "tail_lines": { |
| "type": "number", |
| "description": "Number of lines to return from the end of the log", |
| "default": 500 |
| } |
| }, |
| "required": [ |
| "owner", |
| "repo" |
| ] |
| } |
| } |