jamjet_run_workflow
Starts a durable workflow execution for a registered workflow and returns an execution ID for monitoring, event retrieval, cancellation, or approval.
Instructions
Start a new durable workflow execution. Use this to kick off a workflow that has already been registered with the runtime. Side effects: creates a new execution record, appends WorkflowStarted and NodeScheduled events to the event log, and enqueues a work item for the first node — the workflow begins processing immediately. Returns a JSON object with the execution_id (format: exec_) that you can pass to jamjet_get_execution, jamjet_get_events, jamjet_cancel_execution, or jamjet_approve. This operation is not reversible — use jamjet_cancel_execution to stop a running workflow. Fails if the workflow_id + version combination is not registered. Outside dev mode the bridge requires a Bearer API token with the developer or operator role.
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": {
"workflow_id": "<workflow_id>",
"input": "<input>"
},
"name": "jamjet_run_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Initial state data passed to the workflow's first node. Shape must match the workflow's state_schema. | |
| tenant_id | No | Tenant partition for multi-tenant isolation. Outside dev mode the tenant is the API token's tenant and a different value is refused. In dev mode defaults to 'default'. | |
| workflow_id | Yes | ID of a registered workflow to execute. Must match a workflow previously loaded into the runtime. | |
| workflow_version | No | Semantic version of the workflow to run. Defaults to '1.0.0' if omitted. Use when multiple versions are registered. |