Dispatch workflow
dispatch_workflowTrigger a workflow_dispatch run in a Forgejo/Gitea repository to manually start CI workflows with optional inputs.
Instructions
Trigger a workflow_dispatch run (Forgejo 11+/Gitea 1.24+).
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": "<workflow>",
"ref": "<ref>"
},
"name": "dispatch_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or organization) | |
| inputs | No | ||
| workflow | Yes | Workflow file name, e.g. ci.yml |