Search the documentation
13 pages for permissionrequest.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Intercept and control agent behavior with hooks
Claude Code CLI · in the page
agent-sdk/hooks
…| | `PermissionRequest` | Yes | Yes | A tool call needs a permission decision…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…ion events "SubagentStart", # Called when a subagent starts "PermissionRequest", # Called when a permission decision is needed ] ``` <Note> The TypeScript SDK supports additional hook eve…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…gentStart" | "SubagentStop" | "PreCompact" | "PostCompact" | "PermissionRequest" | "PermissionDenied" | "Setup" | "TeammateIdle" | "TaskCreated" | "TaskCompleted" | "Elicitation"…
Handle approvals and user input
Claude Code CLI · in the page
agent-sdk/user-input
…pens in `dontAsk` and `auto` mode. </Warning> You can also use the [`PermissionRequest` hook](/docs/en/agent-sdk/hooks#available-hooks) to send external notifications (Slack, email, push) when Claude…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…ng. Prefix a reply with `!` to send a Bash command instead. When a [`PermissionRequest`](/docs/en/hooks#permissionrequest) or [`PreToolUse`](/docs/en/hooks#pretooluse) hook returns output Claude Code…
Claude Code changelog
Claude Code CLI · in the page
changelog
…not yet pushed * Fixed background sessions waiting silently when a `PermissionRequest` or `PreToolUse` hook prints an invalid answer: the `claude agents` row now names the hook and the schema error…
Channels reference
Claude Code CLI · in the page
channels-reference
…/ so this schema is both the validator and the dispatch key const PermissionRequestSchema = z.object({ method: z.literal('notifications/claude/channel/permission_request'), params: z.o…
Hooks reference
Claude Code CLI · in the page
hooks
…mptExpansion for slash commands, the nested agentic loop (PreToolUse, PermissionRequest, PostToolUse, PostToolUseFailure, PostToolBatch, SubagentStart/Stop, TaskCreated, TaskCompleted), and Stop or St…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…uires your hook to write a JSON decision to stdout. Claude Code runs `PermissionRequest` hooks when it's about to ask you for permission, and if your hook returns `"behavior": "allow"`, Claude Code an…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…d these failures as `"user_reject"`. * `"hook"`: A `PreToolUse` or `PermissionRequest` hook returned the decision. * `"user_permanent"`: Emitted when the user chose "Yes, and don't ask again for .…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…and, Claude Code asks you even in `auto` mode. In modes that ask, a [`PermissionRequest` hook](/docs/en/hooks#permissionrequest) can answer the prompt the way it answers any other. Claude Code treats…
Plugins reference
Claude Code CLI · in the page
plugins-reference
…| | `PermissionRequest` | When a tool call needs a permission decision…
Orchestrate subagents at scale with dynamic workflows
Claude Code CLI · in the page
workflows
…SDK, a [`canUseTool`](/docs/en/agent-sdk/permissions) callback or a [`PermissionRequest` hook](/docs/en/hooks#permissionrequest) approves it. In the Desktop app, an approval card shows the workflow n…