Skip to content

BashInput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  4284231646["input_types.BashInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 4284231646
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Input for the Bash tool. Executes bash commands in a persistent shell session.

Source code in src/clawd_code_sdk/models/input_types.py
@_extra_allow
class BashInput(TypedDict):
    """Input for the Bash tool. Executes bash commands in a persistent shell session."""

    command: str
    """The command to execute."""
    timeout: NotRequired[int]
    """Optional timeout in milliseconds (max 600000)."""
    description: NotRequired[str]
    """Clear, concise description of what this command does in 5-10 words."""
    run_in_background: NotRequired[bool]
    """Set to true to run this command in the background."""

command instance-attribute

command: str

The command to execute.

description instance-attribute

description: NotRequired[str]

Clear, concise description of what this command does in 5-10 words.

run_in_background instance-attribute

run_in_background: NotRequired[bool]

Set to true to run this command in the background.

timeout instance-attribute

timeout: NotRequired[int]

Optional timeout in milliseconds (max 600000).

:fa-brands-github: Show source on GitHub