Answer a permission request
flow_agent_answer_approvalAnswer the agent's permission request (pendingApproval of flow_agent_chat / flow_agent_get_chat: what it wants to generate and its cost in Flow credits). approve: generate it (charged at Flow's normal price); always: approve and stop asking in this chat's project from now on (its approval mode becomes auto); reject: do not generate. Answer within about 4 minutes of the request: Google then closes it, and the message has to be sent again (flow_agent_update_settings approval auto avoids requests altogether). The same turn goes on: unless wait is false, it follows the agent up to ~50 s like flow_agent_chat. POST /agent/chats/{chatId}/approval.
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": {
"chatId": "<chatId>",
"decision": "<decision>"
},
"name": "flow_agent_answer_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Follow the agent after answering, up to ~50 s (default true). | |
| chatId | Yes | The chatId the request belongs to. | |
| decision | Yes | approve, always or reject. |