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

18 pages for disallowedtools.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

How the agent loop works Claude Code CLI · in the page agent-sdk/agent-loop …gh to the permission mode and `canUseTool`. * **`disallowed_tools` / `disallowedTools`** blocks listed tools, regardless of other settings. See [Permissions](/docs/en/agent-sdk/permissions) for the or… Give Claude custom tools Claude Code CLI · in the page agent-sdk/custom-tools …er a call is approved once Claude attempts it. `tools` and bare-name `disallowedTools` entries change availability. `allowedTools` and scoped `disallowedTools` rules change permission. If you name one… Connect to external tools with MCP Claude Code CLI · in the page agent-sdk/mcp …off, or when you exclude the `ToolSearch` tool, for example through `disallowedTools`. ### Named servers You name a server by listing any of its tools, such as `mcp__github__list_issues` or `mcp__g… Configure permissions Claude Code CLI · in the page agent-sdk/permissions …`allowed_tools` and `disallowed_tools` (TypeScript: `allowedTools` / `disallowedTools`) add entries to the allow and deny rule lists in the evaluation flow above. If you name one of the [task-tracking… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …scription: str prompt: str tools: list[str] | None = None disallowedTools: list[str] | None = None model: str | None = None skills: list[str] | None = None memory: Literal["use… Subagents in the SDK Claude Code CLI · in the page agent-sdk/subagents …ool available to subagents](/docs/en/sub-agents#available-tools) | | `disallowedTools` | `string[]` | No | Array of tool names to remove from the agent's tool set. MCP server-level patterns are also a… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …nlisted tools fall through to `permissionMode` and `canUseTool`. Use `disallowedTools` to block tools. See [Permissions](/docs/en/agent-sdk/permissions#allow-and-deny-rules) | | `betas` | [`SdkBeta`](… Orchestrate teams of Claude Code sessions Claude Code CLI · in the page agent-teams …e Code picks a teammate's model](#specify-teammates-and-models). * **`disallowedTools`**: for an in-process teammate, Claude Code removes the tools in the definition's `disallowedTools` from the teamm… Claude Code changelog Claude Code CLI · in the page changelog …in-defined agent spawned by name now runs with its own prompt, tools, disallowedTools and effort instead of the defaults * Fixed headless (`-p` / SDK) sessions occasionally ignoring SIGTERM when a sup… Explore the .claude directory Claude Code CLI · in the page claude-directory …atter-reference) | | `agents/*.md` | `name`, `description`, `tools`, `disallowedTools`, `model`, `permissionMode`, `maxTurns`, `autoCompactWindow`, `skills`, `mcpServers`, `hooks`, `memory`, `backgrou… CLI reference Claude Code CLI · in the page cli-reference …| | `--disallowedTools`, `--disallowed-tools` | Deny rules. A bare tool name removes the matching tools from Claude's context: `"Ed… Desktop application Claude Code CLI · in the page desktop …nning-tasks-in-the-cloud) in a cloud session | | `--allowedTools`, `--disallowedTools` | No per-session equivalent. Permission rules in [settings files](/docs/en/settings) still apply. | | `--verbose`… Monitoring Claude Code CLI · in the page monitoring-usage …settings * Enterprise managed policy * `--allowedTools` or `--disallowedTools` flags * The active permission mode * The auto mode classifier, whose verdict the same event records in `c… Configure permissions Claude Code CLI · in the page permissions …ue)`. To match a parameter on an MCP tool, pass a deny rule with [`--disallowedTools`](/docs/en/cli-reference#cli-flags). When Claude Code loads a settings file, it skips any `mcp__` rule that has pa… Add components to a plugin Claude Code CLI · in the page plugins/components …ption`, `model`, `effort`, `maxTurns`, `autoCompactWindow`, `tools`, `disallowedTools`, `skills`, `memory`, `background`, `omitClaudeMd`, `isolation`, `color`, and the `cacheTtl` key of `experimental`… All settings Claude Code CLI · in the page settings-reference …e managed rules with a `!` rule, whether or not you set this key. `--disallowedTools` rules and the current session's `deny` and `ask` rules still apply, including after Claude Code reloads settings… Create custom subagents Claude Code CLI · in the page sub-agents …er fields](#supported-frontmatter-fields)**: `description`, `tools`, `disallowedTools`, `model`, `permissionMode`, `mcpServers`, `hooks`, `maxTurns`, `autoCompactWindow`, `skills`, `initialPrompt`, `m… Tools reference Claude Code CLI · in the page tools-reference …gs, and the `/permissions` interface * in the `--allowedTools` and `--disallowedTools` [CLI flags](/docs/en/cli-reference) * in the Agent SDK's [`allowedTools` and `disallowedTools`](/docs/en/agent-sd…
Feedback