latestOpenAPI 3.1.02026-08-22154287463.4 KB

858365328f92

Browser Processes

Execute a command synchronously

post/browsers/{id}/process/exec

Path parameters

idstring required

Browser session ID

Request body

argsstring[]

Command arguments.

as_rootboolean

Run the process with root privileges.

as_userstring nullable

Run the process as this user.

commandstring required

Executable or shell command to run.

cwdstring nullable

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

envobject

Environment variables to set for the process.

timeout_secinteger nullable

Maximum execution time in seconds.

Response

Execution result

duration_msinteger

Execution duration in milliseconds.

exit_codeinteger

Process exit code.

stderr_b64string

Base64-encoded stderr buffer.

stdout_b64string

Base64-encoded stdout buffer.