latestOpenAPI 3.1.02026-08-22154287463.4 KB

858365328f92

Browser Processes

Execute a command asynchronously

post/browsers/{id}/process/spawn

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.

allocate_ttyboolean

Allocate a pseudo-terminal (PTY) for interactive shells.

colsinteger

Initial terminal columns. Only used when allocate_tty is true.

rowsinteger

Initial terminal rows. Only used when allocate_tty is true.

Response

Spawned

pidinteger

OS process ID.

process_idstring uuid

Server-assigned identifier for the process.

started_atstring date-time

Timestamp when the process started.