[DOCS] Agent SDK TypeScript: BashInput interface missing dangerouslyDisableSandbox property

Resolved 💬 3 comments Opened Jan 25, 2026 by coygeek Closed Mar 1, 2026

Documentation Type

Incorrect/outdated documentation

Documentation Location

https://platform.claude.com/docs/en/agent-sdk/typescript

Section/Topic

"Tool Reference" section → "Bash" subsection → BashInput interface definition

Current Documentation

The BashInput interface definition:

``typescript interface BashInput { command: string; timeout?: number; description?: string; run_in_background?: boolean; } ``

What's Wrong or Missing?

The BashInput interface is missing the dangerouslyDisableSandbox property. However, the "Permissions Fallback for Unsandboxed Commands" example later on the same page explicitly accesses this property:

if (tool === "Bash" && input.dangerouslyDisableSandbox) {

This causes a TypeScript compilation error for users who copy the example code, because dangerouslyDisableSandbox does not exist on the BashInput type as documented.

Suggested Improvement

Before:

interface BashInput {
command: string;
timeout?: number;
description?: string;
run_in_background?: boolean;
}

After:

interface BashInput {
command: string;
timeout?: number;
description?: string;
run_in_background?: boolean;
dangerouslyDisableSandbox?: boolean;
}

Impact

High - Prevents users from using a feature

Additional Context

Affected Pages:

| Page | Line(s) | Context |
|------|---------|---------|
| https://platform.claude.com/docs/en/agent-sdk/typescript | 926-943 | BashInput interface definition (missing field) |
| https://platform.claude.com/docs/en/agent-sdk/typescript | 2147 | Example using input.dangerouslyDisableSandbox |

Related: This is the same pattern as #19693 (missing Bash schema field), but for a different field.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗