n8n_run_workflow
Trigger an active n8n workflow through its webhook URL and optionally wait for completion to return the full execution trace, or fire-and-forget with wait_for_result=false.
Instructions
Trigger a workflow execution via its webhook URL. Workflow must have a webhook trigger and be active. By default waits for completion (120s timeout) and returns full execution trace. Set wait_for_result=false to fire-and-forget.
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": {
"webhookPath": "<webhookPath>"
},
"name": "n8n_run_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | JSON payload (object or JSON string) | |
| timeout | No | Timeout in seconds for webhook call and polling (default: 120, max: 300) | |
| workflowId | No | Workflow ID (required when wait_for_result is true) | |
| webhookPath | Yes | Webhook path (e.g. 'scanner-run') | |
| wait_for_result | No | Wait for execution to complete and return full trace (default: true) |