Run an agent's routine
run_routineStarts an agent routine immediately, optionally passing event payload data and waking a specific or every matching open wait.
Instructions
Start one of an agent's routines now (like Test run, also when paused), optionally with an event payload the agent reads as data. With waitId, wakes only that open wait (openbot.await_event); without it, wakes every matching open wait. No retry key: calling twice runs twice.
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": {
"agent": "<agent>",
"routine": "<routine>"
},
"name": "run_routine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait for the run's delivery to end (when it has one). | |
| agent | Yes | Agent ID or agent name (case-insensitive), as list_agents shows it. | |
| waitId | No | Wake only this open wait of the agent. | |
| payload | No | Event text (max 4,000 characters). | |
| routine | Yes | Routine ID or name, as list_agents shows it. | |
| timeoutSeconds | No | How long to wait. Timing out stops only the wait; the agent keeps working. |