Open Context Protocol is live! 🚀 Read the launch post
actionsReRunWorkflowFailedJobs

actionsReRunWorkflowFailedJobs

Re-run failed jobs from a workflow run

Details

  • Method: POST
  • Path: /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs
  • Operation ID: actions/re-run-workflow-failed-jobs

Parameters

{
  "owner": {
    "description": "The account owner of the repository. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "repo": {
    "description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "run_id": {
    "description": "The unique identifier of the workflow run.",
    "required": true,
    "location": "path",
    "type": "integer"
  },
  "enable_debug_logging": {
    "description": "Whether to enable debug logging for the re-run.",
    "required": false,
    "location": "body",
    "type": "boolean"
  }
}

Response Schema

{
  "title": "Empty Object",
  "description": "An object without any properties.",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('github')

# Call this tool
result = await agent.call_tool('actionsReRunWorkflowFailedJobs', {
    # Add required parameters here
})