Skip to main content

Module permissions

Module permissions 

Source
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§

PermissionDecision
What to do with a single tool call before it executes.
PermissionMode
Permission modes — same set as the Claude Agent SDK doc.

Traits§

PreToolHook
Hook invoked before every tool call. Implementations may inspect the tool name and arguments and return a PermissionDecision.