Trigger Workflow Tool
trigger_workflow_toolStart a new GitHub Actions workflow run via workflow_dispatch event. Force a fresh build regardless of last run time, if the workflow declares on: workflow_dispatch.
Instructions
Trigger a fresh GitHub Actions run via the workflow_dispatch event.
Use this to force a new build. Unlike rerun_workflow_run_tool (which
re-runs an existing run and is rejected by GitHub for runs older than 30
days), this starts a brand-new run regardless of when the workflow last
ran. The target workflow must declare an on: workflow_dispatch trigger.
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": {
"repo": "<repo>",
"workflow_id": "<workflow_id>"
},
"name": "trigger_workflow_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Git ref (branch or tag) to run on (default: the repo's default branch) | |
| repo | Yes | Repository name | |
| owner | No | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
| inputs | No | Optional workflow_dispatch inputs as name/value pairs | |
| workflow_id | Yes | Workflow file name (e.g. "build.yml") or its numeric ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||