Skip to content

strands.vended_tools.shell.types

Shared types and constants for the shell tool.

class ShellOutput(TypedDict)

Defined in: src/strands/vended_tools/shell/types.py:6

Output of a shell command execution.

Attributes:

  • output - Standard output captured from the command.
  • error - Standard error captured from the command. Empty when there was none.
class ShellExecutionError(RuntimeError)

Defined in: src/strands/vended_tools/shell/types.py:18

Raised when a sandbox-routed shell command fails.

Subclasses :class:RuntimeError so existing except RuntimeError handlers keep working, while giving callers a shell-specific type to branch on. Mirrors ShellExecutionError in strands-ts/src/vended-tools/bash/types.ts.

Description for the shell tool.