trigger_workflow_tool
Trigger a fresh GitHub Actions run via workflow_dispatch to force a new build, even if the workflow last ran over 30 days ago. Specify repo, workflow, and optional ref or inputs.
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.
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 | |||