workspaces.exec

Run one command in the workspace's hosted sandbox (the pinned CLI is preinstalled; cwd defaults to /workspace/store). Output capped at 256 KB.

Machine-readable body schema: /schemas/routes/workspaces.exec.json.

Body

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cmd": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4096
    },
    "cwd": {
      "type": "string",
      "maxLength": 512
    },
    "timeoutMs": {
      "type": "integer",
      "minimum": 1000,
      "maximum": 600000
    }
  },
  "required": [
    "cmd"
  ],
  "additionalProperties": false
}
Generated from the live platform registries at build time — reference pages cannot go stale. Markdown variant: /reference/routes/workspaces.exec.md