create_flow
Create an automation flow with a trigger (manual, schedule, event, webhook) and optional initial operations in one call; set status inactive to prevent immediate execution.
Instructions
Creates an automation flow and, optionally, its first operations in the same call. trigger selects what starts the flow (manual, schedule, event, webhook) and options carries the trigger-specific configuration, so a schedule flow needs its cron expression in options. A flow created with status active starts reacting immediately, events included, so create it inactive when that is not wanted. Each operations entry needs key, type and editor coordinates; operations are created but not chained, so wire the resolve and reject paths with update_flow or in the admin app. Use update_flow to change a flow and trigger_flow to run one.
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": {
"name": "<name>"
},
"name": "create_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Flow name | |
| folder | No | Directus 12.4+: flow folder ID to file the flow under (omit for root) | |
| status | No | Flow status (default: active) | |
| options | No | Trigger-specific options | |
| trigger | No | Trigger type (e.g., manual, schedule, event, webhook) | |
| operations | No | Initial operations to create with the flow | |
| description | No | Flow description |