Skip to content

Claude agent: expose a way to disallow built-in tools per session (disallowedTools) #1832

Description

@atsushi-ishibashi

Request

Provide a public way to pass a list of disallowed built-in tool names down to the SDK (disallowedTools) for the packaged Claude agent — e.g. a session-level option on the agentOS client API forwarded through ACP, an ACP config option, or an env var on the agent package. Default (no list) keeps current behavior.

Why

Some Claude Code built-in tools cannot work depending on the integration: AskUserQuestion has no answer channel in a headless client, WebFetch may be blocked by the deployment's network policy, etc. Without disallowedTools, these tools stay in the model's context, the model keeps trying them, and every attempt fails at runtime — visible to end users as noisy failed tool calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions