consume_approval
Consume an approval exactly once before executing an approved action, validating the request is approved, unexpired, and matches the exact action and payload; proceed only if successful.
Instructions
Call this IMMEDIATELY before performing an approved action. Succeeds exactly once per request, only if the request is approved, not past its expiry, action is byte-for-byte the text that was approved, and operation/payload (if the request had them) are identical. ok:false for any reason means do NOT proceed. An approval cannot be reused for a second or different action. The returned JSON is not a transferable credential: no other component may accept it as proof of approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The request id returned by request_approval | |
| action | Yes | The exact action text you passed to request_approval | |
| payload | No | Optional JSON payload the action will execute (at most 32768 bytes canonical). The human reviews it; consume must present an identical payload. | |
| operation | No | Optional operation name a trusted executor must present, e.g. 'smtp.send' (A-Z a-z 0-9 . _ : / -) |