{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Runs `argv` directly in the guest (no shell). Stdout/stderr are buffered and capped at 1 MiB each;\ntruncation is indicated via response headers when present. A non-zero exit code is still HTTP 200.","properties":{"path":{"type":"object","properties":{"session_id":{"type":"string","examples":["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],"description":"The session UUID."}},"required":["session_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/exec_in_sandbox_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"exec_in_sandbox_request":{"type":"object","properties":{"argv":{"type":"array","items":{"type":"string"},"description":"Program and arguments. Required and non-empty; run directly, with no shell interpretation.","examples":[["uname","-a"]]},"workdir":{"type":"string","description":"Working directory inside the sandbox. Empty uses the sandbox default (/workspace); not restricted to the workspace root.","examples":["/workspace"]},"stdin":{"type":"string","format":"byte","description":"Optional 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.","examples":[""]},"timeout_seconds":{"type":"integer","description":"Optional timeout. Clamped server-side (default 60, maximum 240) regardless of the value sent.","examples":[60]}},"required":["argv"]}}},"name":"ExecInSandbox runs a one-shot command inside the session's sandbox.","id":"digitalocean.harness_post_session_sandbox_exec","example":{"path":{"session_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"},"body":{"argv":["uname","-a"]}},"maxRequests":1,"summary":false}}