v1

latestOpenAPI 3.0.02026-07-224452146.0 KB
Interact

Execute code in an interact session

post/interact/{sessionId}/execute

Path parameters

sessionIdstring required

The interact session ID

Request body

codestring required

Code to execute in the browser sandbox

language'python' | 'node' | 'bash'

Language of the code to execute. Use node for JavaScript or bash for agent-browser CLI commands.

timeoutinteger

Execution timeout in seconds

Response

Code executed successfully

successboolean
stdoutstring nullable

Standard output from the code execution

resultstring nullable

Standard output (alias for stdout)

stderrstring nullable

Standard error output from the code execution

exitCodeinteger nullable

Exit code of the executed process

killedboolean

Whether the process was killed due to timeout

errorstring nullable

Error message if the code raised an exception