Approve a pending agent action
Approve and execute a pending agent action. The server re-runs the
policy check (a flip to deny stops the write), verifies the TOTP code
when the verb requires step-up, verifies the fresh auth token
immediately before the write, then executes the tool. The pending
action is deleted on success. An optional params object edits the
staged diff; edited params are re-validated and re-checked.
Path parameters
actionId
Request
This endpoint expects an object.
totpCode
TOTP code from the authenticator app or a backup code; required when the action’s verb requires step-up.
params
Edited tool params (Edit). Keys must be valid for the staged tool; the edit is re-validated against the meta-policy and re-checked before apply.
Response
Action approved and applied (or denied by a flipped policy, with receipt).
type
message
result
receipt
revertActionId
revertMessage
Errors
401
Unauthorized Error
404
Not Found Error