run_workflow
Trigger a GitHub Actions workflow_dispatch event on a chosen branch or tag, passing optional inputs for the run.
Instructions
Trigger a workflow_dispatch event for a workflow. Docs: https://docs.github.com/en/rest/actions/workflows#create-a-workflow-dispatch-event
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": "run_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Git ref (branch or tag) to run the workflow on. | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or organization login) | |
| inputs | No | Workflow inputs (max 10 keys). | |
| workflow_id | Yes | Workflow ID (number) or file name (e.g. "ci.yml"). |