v97

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-31135175384.2 KB
Browser Processes

Execute a command synchronously

post/browsers/{id}/process/exec

Path parameters

idstring required

Browser session ID

Request body

commandstring required

Executable or shell command to run.

argsstring[]

Command arguments.

cwdstring nullable

Working directory (absolute path) to run the command in.

envobject

Environment variables to set for the process.

as_userstring nullable

Run the process as this user.

as_rootboolean

Run the process with root privileges.

timeout_secinteger nullable

Maximum execution time in seconds.

Response

Execution result

exit_codeinteger

Process exit code.

stdout_b64string

Base64-encoded stdout buffer.

stderr_b64string

Base64-encoded stderr buffer.

duration_msinteger

Execution duration in milliseconds.