bash tool is how the agent runs commands on the computer. Each call executes bash -c <command> in a non-login shell; to run somewhere else, cd inside the command. exec is a single request/response; the streamed exec delivers the same run as it happens.
Exec on a paused computer resumes it first, and it stays running (and billed) afterwards. See lifecycle.
Examples
Output caps at a glance
Fields
Maximum time to wait before the command is killed and the call returns. Defaults to
30000, up to 600000. When it elapses, exit_code is 124 and timed_out is true.Response
The command is run to completion and its output is buffered, then returned together:Buffered standard output. Capped at 262,144 characters; output beyond the cap is cut, and
truncated is true.exec is not streaming: stdout and stderr are collected in full (up to the cap) and returned once the command exits or timeout_ms elapses. To read output as it is produced, use the streamed exec (computers.execStream(id, command, { timeoutMs }) in the SDK). For long-running work, have the command write progress to a file and poll it with read.Next: browser
Drive a real, managed browser scoped to an allow-list of domains.