pydo.harness.post_session_sandbox_exec()
Generated on 6 Nov 2026
from pydo version
v0.45.0
Usage
client.harness.post_session_sandbox_exec(
session_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
body={
"argv": [...],
"workdir": "/workspace",
"stdin": "",
...,
},
)Description
Runs argv directly in the guest (no shell). Stdout/stderr are buffered and capped at 1 MiB each;
truncation is indicated via response headers when present. A non-zero exit code is still HTTP 200.
Parameters
session_idstring requiredExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890The session UUID.
argvarray of strings requiredExample:
['uname', '-a']Program and arguments. Required and non-empty; run directly, with no shell interpretation.
workdirstring optionalExample:
/workspaceWorking directory inside the sandbox. Empty uses the sandbox default (/workspace); not restricted to the workspace root.
stdinstring optionalOptional base64 stdin payload, delivered in full and then closed so the process sees EOF. One-shot only — there is no streaming stdin on this endpoint.
timeout_secondsinteger optionalExample:
60Optional timeout. Clamped server-side (default 60, maximum 240) regardless of the value sent.
Request Sample
Response Example
More Information
See /v2/agents/sessions/{session_id}/sandbox/exec in the API reference for additional detail on responses, headers, parameters, and more.