Approvals: decide
approvals_decideApproves or rejects one approval in neonloops: a run paused at an approval step or at an agent's tool call that asks first (run_id and node_id), or a question a bot asked in a conversation (approval_id). The run then resumes on the approved or rejected branch, with every side effect that branch has, or the bot answers the customer. It takes two calls: the first changes nothing and shows what would be decided, with a confirmation_token; the second, with the same arguments plus that token within 5 minutes, decides it, and a decision cannot be undone. Only the approval's assignee, a workspace owner or admin, or the person who started a test conversation may decide. An option_id that counts as the other decision is refused. Find what is waiting with approvals_list.
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": {
"decision": "<decision>"
},
"name": "approvals_decide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | No | With node_id: the paused run whose approval to decide. Not with approval_id. | |
| comment | No | Optional note recorded with the decision. Send it again, unchanged, on the confirming call. | |
| node_id | No | With run_id: the paused step's id. | |
| decision | Yes | Approve resumes the run on its approved branch, or answers the question with an approving option; reject takes the rejected branch or a rejecting option. | |
| option_id | No | With approval_id only: which of the question's options to answer with; it must count as this decision. If it counts as the other one, the call is refused and names that decision: send it as decision, or omit option_id to answer with the first option for this decision. | |
| approval_id | No | A question a bot asked in a conversation. Not with run_id or node_id. | |
| confirmation_token | No | Omit to PREVIEW: nothing is changed and a confirmation token is returned. Call again with that token, and the identical arguments, to perform the action. |