github_trigger_workflow
Trigger a GitHub workflow dispatch event to manually run a workflow on a specified branch or tag, optionally passing custom inputs for deployment or automation tasks requiring on-demand execution.
Instructions
Trigger a workflow dispatch event (manually run a workflow).
The workflow must have a 'workflow_dispatch' trigger defined.
Args: owner: Repository owner repo: Repository name workflow_id: Workflow ID or filename (e.g., 'deploy.yml') ref: Branch or tag to run on (default: main) inputs: Workflow inputs as JSON string (e.g., '{"environment": "staging"}') session_name: GitHub session to use
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>"
},
"name": "github_trigger_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | main | |
| repo | Yes | ||
| owner | Yes | ||
| inputs | No | ||
| workflow_id | Yes | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |