- Allow once — run this call and ask again next time.
- Allow for session — run this call and allow the same tool for the session.
- Deny — do not run the tool.
Configure approval behavior
The optionalauto setting applies to every tool assigned to one agent:
auto: true only when every tool assigned to that agent is safe to run
without review. It does not affect other agents.
Handle approvals through the API
POST /invoke includes three approval fields:
Start a run with a stable session ID if you want to use Allow for session:
answer and sanitized
approval details:
run_id and approval_id:
allow once, allow for this session, and deny.
Extra continues the run and returns its next result. An invalid decision returns
a validation error and does not run the tool.
Session approvals
Allow for session applies only to the same agent and exact tool when later requests use the sameX-Session-Id. By default, approvals are stored in memory
and are cleared when the application restarts.