Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

14 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, and the default `permissionPrompts: 'host'`: Claude Code doesn'… Claude Code changelog Claude Code CLI · in the page changelog …SDK and `-p` sessions leaving its tools available * Fixed `claude -p --permission-prompt-tool`: a background subagent's permission request now goes to the prompt tool instead of being auto-denied * F… 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… Environment variables Claude Code CLI · in the page env-vars …he wait covers every pending server. Set to `0` to skip the wait. A [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags) server keeps its own `MCP_TIMEOUT` wait regardless of the value. Requ… Error reference Claude Code CLI · in the page errors …the-configured-headershelper) | | `Error: MCP tool <name> (passed via --permission-prompt-tool) not found` | [Command-line errors](#mcp-permission-prompt-tool-not-found) | | `OAuth callback port <port… Run Claude Code programmatically Claude Code CLI · in the page headless …a [`PermissionRequest` hook](/docs/en/hooks#permissionrequest) or a [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags). With Claude Code v2.1.302 or later, `claude -p` runs start in Manual… Hooks reference Claude Code CLI · in the page hooks …ssion-prompts-in-unattended-runs), such as an MCP tool you pass with `--permission-prompt-tool`, so start the run with one. The round trip works like this: 1. Claude calls `AskUserQuestion`. The `Pre… 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 …you approve them with an allow rule, hook, `canUseTool` callback, or `--permission-prompt-tool`. To get these calls approved, add allow rules or start in auto mode: * **[Add allow rules](/docs/en/pe… Configure permissions Claude Code CLI · in the page permissions …ed, whichever settings file the hook comes from. * A call that your [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags) or Agent SDK [`canUseTool` callback](/docs/en/agent-sdk/user-input#ha… Manage mods for your organization Claude Code CLI · in the page plugins/mods/admin …ssifier check, unless the guard is loaded and the session runs with [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags) or an Agent SDK [`canUseTool` callback](/docs/en/agent-sdk/user-input… Manage sessions Claude Code CLI · in the page sessions …es in plan mode only when all of these conditions hold: * You pass [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags) and don't pass [`--permission-prompts none`](/docs/en/headless#turn-o… Orchestrate subagents at scale with dynamic workflows Claude Code CLI · in the page workflows …sion rule or your host's approval there instead. * **Your host**: a [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags) or, with the Agent SDK, a [`canUseTool`](/docs/en/agent-sdk/permissio…
Feedback