Execute a shell command in the sandbox environment.
Simplified interface optimized for LLM consumption.
execute(
self,
command: str,
*,
timeout: int | None = None
) -> ExecuteResponse| Name | Type | Description |
|---|---|---|
command* | str | Full shell command string to execute. |
timeout | int | None | Default: NoneMaximum time in seconds to wait for the command to complete. If None, uses the backend's default timeout. Callers should provide non-negative integer values for portable behavior across backends. A value of 0 may disable timeouts on backends that support no-timeout execution. |