workflows
workflowsDurable workflows for agents (Cloudflare Workflows): up to 25 steps of HTTP calls (automatic retries), sleeps of up to 30 days, and human approval gates, with a callback when done. Survives restarts; pass the previous response into the next step with {{prev}}. $0.005 + $0.001 per step; status/approve/reject $0.002. Costs $0.03 USDC per call (x402).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "workflows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | [{type: http, url, method, body} | {type: sleep, seconds} | {type: approval, timeout_hours, notify_url}] | |
| token | No | ||
| action | No | create (default), status, approve, reject, cancel | |
| workflow_id | No | ||
| callback_url | No |