trigger_workflow
Run GitHub Actions workflows by triggering dispatch events with specified inputs and branches for automated repository tasks.
Instructions
Trigger a workflow dispatch event to run a workflow.
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>",
"ref": "<ref>"
},
"name": "trigger_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| workflow_id | Yes | Workflow ID or filename (e.g. 'deploy.yml') | |
| ref | Yes | Branch or tag to run the workflow on | |
| inputs | No | Workflow input parameters as key-value pairs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |