trigger_workflow
Manually start GitHub Actions workflow runs on specified branches with custom inputs for CI/CD automation.
Instructions
Trigger a workflow run via workflow_dispatch. Requires a workflow with workflow_dispatch enabled.
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": {
"owner": "<owner>",
"repo": "<repo>",
"workflow_id": "<workflow_id>"
},
"name": "trigger_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner (username or org) | |
| repo | Yes | Repository name | |
| workflow_id | Yes | Workflow ID or filename (e.g. ci.yml) | |
| ref | No | Branch or tag to run on (default: main) | main |
| inputs | No | Optional workflow inputs as key-value pairs |