tool.ts•1.1 kB
import { rerunWorkflowInputSchema } from './inputSchema.js';
export const rerunWorkflowTool = {
name: 'rerun_workflow' as const,
description: `
This tool is used to rerun a workflow from start or from the failed job.
Common use cases:
- Rerun a workflow from a failed job
- Rerun a workflow from start
Input options (EXACTLY ONE of these TWO options must be used):
Option 1 - Workflow ID:
- workflowId: The ID of the workflow to rerun
- fromFailed: true to rerun from failed, false to rerun from start. If omitted, behavior is based on workflow status. (optional)
Option 2 - Workflow URL:
- workflowURL: The URL of the workflow to rerun
* Workflow URL: https://app.circleci.com/pipelines/:vcsType/:orgName/:projectName/:pipelineNumber/workflows/:workflowId
* Workflow Job URL: https://app.circleci.com/pipelines/:vcsType/:orgName/:projectName/:pipelineNumber/workflows/:workflowId/jobs/:buildNumber
- fromFailed: true to rerun from failed, false to rerun from start. If omitted, behavior is based on workflow status. (optional)
`,
inputSchema: rerunWorkflowInputSchema,
};