commit_action
The paired tool for confirm_action. Verifies that the user has explicitly confirmed a destructive action with a matchingcommit_token. Required gatekeeper before performing the destructive call.
commit_action only succeeds when:
- A matching
confirm_action(samecommit_token) was completed for this agent and subscriber - AND the user explicitly clicked Confirm (not Cancel)
- AND the confirmation has not expired
Parameters
Returns
On success:Call from your own custom tool
Notes
- Always registered.
- Cannot be bypassed by LLM narration — there is no path by which
commit_actionreturns ok without server-side proof of consent. - Scoped to the calling subscriber (or owner in preview).