Expand description
Permission gating for tool calls.
Mirrors Claude Code’s permission modes. Every tool call passes through
PermissionMode::evaluate; if a PreToolHook is supplied it can
override the mode-default behaviour.
Enums§
- Permission
Decision - What to do with a single tool call before it executes.
- Permission
Mode - Permission modes — same set as the Claude Agent SDK doc.
Traits§
- PreTool
Hook - Hook invoked before every tool call. Implementations may inspect the tool
name and arguments and return a
PermissionDecision.