Skip to main content
Execute a command synchronously inside a browser VM. Returns decoded stdout, stderr, and the exit code. The command field is the executable; pass its arguments in args.

Parameters

ParameterDescription
session_idBrowser session ID. Required.
commandExecutable to run (e.g., cat, ls, curl). Required.
argsArguments to pass to the command.
cwdWorking directory (absolute path).
as_rootRun with root privileges.
timeout_secMax execution time in seconds.

Example

{
  "session_id": "browser_abc123",
  "command": "curl",
  "args": ["-I", "https://example.com"]
}