Approve or reject the Flow agent's spend request (may spend credits)
flow_approveApproves or rejects pending credit-cost requests, spending credits only when the quoted amount is within your max limit. Returns the agent's reply and any started media.
Instructions
Answers the agent's pending 'costing N credits?' request. decision 'approve' SPENDS the quoted credits, but only when N <= max_credits; otherwise it rejects and nothing is spent. Never chooses 'Always approve'. Returns the agent's reply and the media it started (videos then render for 1-5 min: fetch them with flow_wait using since/media).
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": {
"project_id": "<project_id>",
"decision": "<decision>",
"max_credits": "<max_credits>"
},
"name": "flow_approve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decision | Yes | ||
| project_id | Yes | ||
| max_credits | Yes | Highest quoted cost to approve; ask the user | |
| include_thinking | No | Also return the agent's reasoning ('Show thinking') |