gha_get_run_logs
Fetch logs for GitHub Actions workflow runs to monitor CI/CD pipelines, diagnose failures, and filter by job name or search terms.
Instructions
Fetch logs for a workflow run
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>",
"run_id": "<run_id>"
},
"name": "gha_get_run_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository in owner/repo format | |
| run_id | Yes | Workflow run ID | |
| job | No | Filter to specific job name | |
| grep | No | Filter log lines containing this string | |
| tail | No | Return only last N lines |