Skip to content

BashOutputOutput

Base classes

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

⋔ Inheritance diagram

graph TD
  2917902238["output_types.BashOutputOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 2917902238
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

tool_use_result for the BashOutput tool (background shell output retrieval).

Not part of the official SDK ToolOutputSchemas as of SDK v0.2.62. Shape derived from: https://github.com/kzahel/yepanywhere/blob/main/packages/shared/src/claude-sdk-schema/tool/ToolResultSchemas.ts

Source code in src/clawd_code_sdk/models/output_types.py
class BashOutputOutput(TypedDict):
    """``tool_use_result`` for the BashOutput tool (background shell output retrieval).

    Not part of the official SDK ToolOutputSchemas as of SDK v0.2.62.
    Shape derived from: https://github.com/kzahel/yepanywhere/blob/main/packages/shared/src/claude-sdk-schema/tool/ToolResultSchemas.ts
    """

    shellId: NotRequired[str]
    """ID of the background shell."""
    command: NotRequired[str]
    """The command that was executed."""
    status: NotRequired[Status]
    """Current status of the command."""
    exitCode: NotRequired[int | None]
    """Exit code of the command, or None if still running."""
    stdout: NotRequired[str]
    """Standard output."""
    stderr: NotRequired[str]
    """Standard error."""
    stdoutLines: NotRequired[int]
    """Number of lines in stdout."""
    stderrLines: NotRequired[int]
    """Number of lines in stderr."""
    timestamp: NotRequired[str]
    """Timestamp of the output."""

command instance-attribute

command: NotRequired[str]

The command that was executed.

exitCode instance-attribute

exitCode: NotRequired[int | None]

Exit code of the command, or None if still running.

shellId instance-attribute

shellId: NotRequired[str]

ID of the background shell.

status instance-attribute

status: NotRequired[Status]

Current status of the command.

stderr instance-attribute

stderr: NotRequired[str]

Standard error.

stderrLines instance-attribute

stderrLines: NotRequired[int]

Number of lines in stderr.

stdout instance-attribute

stdout: NotRequired[str]

Standard output.

stdoutLines instance-attribute

stdoutLines: NotRequired[int]

Number of lines in stdout.

timestamp instance-attribute

timestamp: NotRequired[str]

Timestamp of the output.

:fa-brands-github: Show source on GitHub