Delegate a task
delegate_taskHand a self-contained subtask to the cheapest model that can complete it — offload work that doesn't need your own (expensive) model, to save tokens and move faster. Returns the result, which model served it, and the exact cost. Requires your Flow AI API key in the Authorization header.
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": {
"task": "<task>"
},
"name": "delegate_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | the complete, self-contained task | |
| system | No | optional system prompt for the worker | |
| verify | No | also verify the worker's answer (cheap strict judge, ~$0.0001) — result includes a verdict so you know whether to trust the delegated work | |
| quality | No | cheapest = single cheapest capable model; balanced = cascade with escalation (default) | |
| max_tokens | No | output cap (default 1500) |