Search the documentation
11 pages for --permission-prompt-tool.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…th an MCP prompt tool**, set with `permissionPromptToolName` or the [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags) flag: Claude Code doesn't emit this event at all, not even for the ru…
Claude Code changelog
Claude Code CLI · in the page
changelog
…nual re-authentication after a single failed token refresh * Fixed `--permission-prompt-tool` pointing at an MCP server crashing with "MCP tool not found" on cold start before the server finishes co…
CLI reference
Claude Code CLI · in the page
cli-reference
…| | `--permission-prompt-tool` | Specify an MCP tool to handle permission prompts in non-interactive mode. Claude…
Error reference
Claude Code CLI · in the page
errors
…| | `Error: MCP tool <name> (passed via --permission-prompt-tool) not found`…
Hooks reference
Claude Code CLI · in the page
hooks
…missing. <Note> To resume a deferred session in plan mode, pass [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags) along with `--resume` so that Claude Code can present the plan for ap…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…cs/en/agent-sdk/permissions) supplies it. In plain `-p` runs or with `--permission-prompt-tool`, use `PreToolUse` hooks for automated permission decisions instead. * Background subagents can't show…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…ad. The prompt has to reach a person. In non-interactive mode with [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags), an `allow` result from the prompt tool for a flagged tool is convert…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…UseTool`](/docs/en/agent-sdk/typescript#canusetool) callback or the [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags) tool returns an invalid result, or when the input stream closes while…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…prompt**: a [non-interactive](/docs/en/headless) `-p` run without a [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags) has no prompt to fall back to. When repeated blocks reach a threshold…
Manage sessions
Claude Code CLI · in the page
sessions
…esumes in plan mode only when all four conditions hold: * You pass [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags), so that Claude Code can present the plan for approval * You don't pa…
Orchestrate subagents at scale with dynamic workflows
Claude Code CLI · in the page
workflows
…) that returns `allow` for the call approves it. * **Your host**: a [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags) approves it, or, with the Agent SDK, a [`canUseTool`](/docs/en/agent-…