Run an agent now
run_agentTrigger an agent run right now (same path as the cockpit’s Run now button — kill switch, governance policy, and credit balance are all enforced). Requires idempotencyKey so a retry cannot enqueue or spend twice. Returns the run id to poll.
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_id": "<agent_id>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "run_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Agent id. | |
| workspace | No | Workspace slug. Omit to use your default workspace. | |
| idempotencyKey | Yes | Required durable retry key. Reuse it only for the same logical call and arguments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||