{
  "openapi": "3.1.0",
  "info": {
    "title": "Runtime API v2",
    "version": "2026-10-27"
  },
  "servers": [
    {
      "url": "https://api.withruntime.com"
    }
  ],
  "security": [
    {
      "bearer": []
    }
  ],
  "paths": {
    "/v2/sandboxes": {
      "post": {
        "operationId": "sandboxes.create",
        "summary": "Creates a sandbox. Asked again with the same Idempotency-Key, it returns the same sandbox.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "sandboxes.list",
        "summary": "Lists the project's sandboxes, newest first.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:list",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only the sandbox of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Sandbox.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sandbox"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list",
        "x-idempotent": true
      }
    },
    "/v2/sandboxes/{id}": {
      "get": {
        "operationId": "sandboxes.get",
        "summary": "Returns a sandbox.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "sandboxes.delete",
        "summary": "Deletes a sandbox, its memory and its disk.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_delete"
      }
    },
    "/v2/sandboxes/{id}:pause": {
      "post": {
        "operationId": "sandboxes.pause",
        "summary": "Pauses a sandbox with its memory and disk kept. A call to it resumes it.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_pause"
      }
    },
    "/v2/sandboxes/{id}:resume": {
      "post": {
        "operationId": "sandboxes.resume",
        "summary": "Resumes a paused sandbox where it was, its memory and processes as they were.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:wake",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resume"
      }
    },
    "/v2/sandboxes/{id}:exec": {
      "post": {
        "operationId": "sandboxes.exec",
        "summary": "Runs a command as a process and returns it once it ended, with its output; with wait false, at once, while it runs. A paused sandbox is resumed first. Asked again with the same Idempotency-Key, it runs nothing more: it returns the first run's process, waiting for its end while it runs.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "An error: timeout.",
            "x-error-codes": [
              "timeout"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_exec",
        "x-idempotent": true,
        "x-runs": {
          "field": "timeoutSeconds"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecRequest"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/files": {
      "get": {
        "operationId": "sandboxes.read",
        "summary": "Returns a file's bytes.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_read",
        "x-idempotent": true
      },
      "put": {
        "operationId": "sandboxes.write",
        "summary": "Writes the request's bytes to a file as they come, of any size (Content-Length required), its folders made: the file whole when they all came, or as it was. With offset, they are written into it in place.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Its mode, in octal (`644`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Write the bytes into the file in place from this byte, keeping the bytes before and after them (the file is made when there is none); one that fails part way may leave its range written in part, so send it again. Parts of one file may be written so at once and in any order: write them to a new path, then rename it with its size and sha256 to put it in place whole.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "The bytes' SHA-256 in hex: refused 409 `checksum_mismatch`, the file as it was, when they differ. Not with offset.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file written.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write",
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/processes/{process}/output": {
      "get": {
        "operationId": "sandboxes.processOutput",
        "summary": "Returns a process's output after a cursor, and the cursor to read on from. The latest 1 MiB is kept; truncated says when the cursor fell behind.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Output after this byte.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "required": false,
            "description": "Seconds to wait for output past the cursor or its exit, at most 8.",
            "schema": {
              "type": "number",
              "maximum": 8,
              "minimum": 0
            }
          },
          {
            "name": "maxBytes",
            "in": "query",
            "required": false,
            "description": "At most this many bytes.",
            "schema": {
              "type": "integer",
              "default": 65536,
              "minimum": 4096,
              "maximum": 196608
            }
          },
          {
            "name": "follow",
            "in": "query",
            "required": false,
            "description": "Answer as NDJSON events from the cursor until it exits (stdout, stderr, truncated, exit; continue with the cursor to follow on from), as `Accept: application/x-ndjson` does.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process's output after a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessOutput"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_process_output",
        "x-idempotent": true
      }
    },
    "/v2/sandboxes/{id}/processes/{process}:write": {
      "post": {
        "operationId": "sandboxes.writeProcess",
        "summary": "Sends input to a process started with stdinOpen or a pty, and returns how much of its input it has taken.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Input a process took.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_process",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessInput"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/processes/{process}:signal": {
      "post": {
        "operationId": "sandboxes.signalProcess",
        "summary": "Sends a signal to a process and its group; a process that ended is not signalled, so a retry is safe.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_signal_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessSignal"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/processes/{process}:resize": {
      "post": {
        "operationId": "sandboxes.resizeProcess",
        "summary": "Resizes the terminal of a process started with a pty (its window's columns and rows, which the process is told by SIGWINCH), and returns the process; refused 409 for a process without one. A process that ended is left as it is, so a retry is safe.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resize_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Terminal"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/processes": {
      "get": {
        "operationId": "sandboxes.listProcesses",
        "summary": "Lists a sandbox's processes, newest first: those running and those that ended lately.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's processes, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_processes",
        "x-idempotent": true
      }
    },
    "/v2/sandboxes/{id}/files:remove": {
      "post": {
        "operationId": "sandboxes.remove",
        "summary": "Removes a file, a link or a directory (recursive for one with contents). One missing is success, removed false.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRemoved"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_remove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemove"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/files/stat": {
      "get": {
        "operationId": "sandboxes.stat",
        "summary": "Returns what is at a path: a file, a directory or a link, or nothing (exists false). With sha256=true, a file's SHA-256 too.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "Also return a file's SHA-256, read from its bytes: to check a file you put in place (files:rename with sha256) is whole.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A path in a machine: what is there, if anything.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInfo"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_stat",
        "x-idempotent": true
      }
    },
    "/v2/sandboxes/{id}/files/list": {
      "get": {
        "operationId": "sandboxes.listFiles",
        "summary": "Lists a directory's entries in path order, to a depth.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "The directory.",
            "schema": {
              "type": "string",
              "default": "/workspace"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "How deep to list.",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many entries.",
            "schema": {
              "type": "integer",
              "default": 2000,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "hidden",
            "in": "query",
            "required": false,
            "description": "List entries whose names start with a dot.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "glob",
            "in": "query",
            "required": false,
            "description": "Only entries whose path relative to the directory matches: `*` within a name, `**` across folders, `?` one character, `{a,b}` either (`**/*.py`); at most 512 characters, 32 wildcards and 64 texts in braces. The listing then reaches as deep as the glob does (10 folders for `**`) unless depth says, and is searched past its first 2,000 entries, up to 50,000.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "What a directory holds, in path order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_files",
        "x-idempotent": true
      }
    },
    "/v2/sandboxes/{id}/files/archive": {
      "get": {
        "operationId": "sandboxes.downloadFolder",
        "summary": "Returns a folder as a tar archive (`application/x-tar`, or `application/gzip` with gzip), packed by tar in the sandbox as it streams, of any size; its entries are relative to the folder (`./a.txt`). A folder that fails part way (a file it may not read, or one that changes as it is read) ends as an archive every tar reader refuses, never as a short one that reads whole. At most 4 at once in a sandbox. A paused sandbox is woken first.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gzip",
            "in": "query",
            "required": false,
            "description": "Compress the archive with gzip.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who packs it: `runtime` or `root`; the sandbox's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "required": false,
            "description": "Paths in the folder to leave out, relative to it and comma-separated (`node_modules,.cache`): plain names, no wildcards, at most 32.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_download_folder",
        "x-idempotent": true
      },
      "put": {
        "operationId": "sandboxes.uploadFolder",
        "summary": "Unpacks the request's tar archive (gzip-compressed or not, told by its first bytes) into a folder, made with its parents, by tar in the sandbox as the bytes arrive, of any size, nothing of it kept on disk but what tar writes; returns once tar has ended, or 400 `invalid_archive` with what tar said. A paused sandbox is woken first.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`: made with its parents.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who unpacks it: `runtime` or `root`; the sandbox's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_upload_folder",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/files/archive/uploads": {
      "post": {
        "operationId": "sandboxes.beginFolderUpload",
        "summary": "Begins a folder's upload in parts: tar starts in the sandbox, unpacking into the folder each part as it arrives. Send the parts in order by offset (writeFolderUpload), then commitFolderUpload; an upload no call names for 10 minutes is ended. A paused sandbox is woken first.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload begun: its parts go to it in order, then its commit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUpload"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_begin_folder_upload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderUploadBegin"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/files/archive/uploads/{upload}": {
      "put": {
        "operationId": "sandboxes.writeFolderUpload",
        "summary": "Sends the request's bytes, a part of the archive at its offset, into tar's input as they arrive, of any size, and returns the bytes received in all once tar took them. A part past them is refused 409 `upload_incomplete`, naming them: send the parts in order.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Where the part starts in the archive: at most the bytes received so far. Bytes before them were taken already and are skipped, so a part sent again is never unpacked twice.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload's part taken.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadReceived"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_folder_upload",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/files/archive/uploads/{upload}:commit": {
      "post": {
        "operationId": "sandboxes.commitFolderUpload",
        "summary": "Ends a folder upload's input and returns once tar has ended, as an exec returns once its command has: the folder, or 400 `invalid_archive` with what tar said. Sent again, it returns how tar ended. An upload no call has named for 10 minutes since its last part or commit is ended.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_commit_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/sandboxes/{id}/files/archive/uploads/{upload}:abort": {
      "post": {
        "operationId": "sandboxes.abortFolderUpload",
        "summary": "Stops a folder upload's tar; what it unpacked so far stays.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload ended unfinished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadAborted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_abort_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/sandboxes/{id}/files:mkdir": {
      "post": {
        "operationId": "sandboxes.mkdir",
        "summary": "Makes a directory, and its parents unless parents is false. One there already is success, created false.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A directory made.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMade"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_mkdir",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMkdir"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/files:rename": {
      "post": {
        "operationId": "sandboxes.rename",
        "summary": "Moves a file, a link or a directory; refused 409 when something is at its new path, unless overwrite. With sha256 or size, a file written in parts is put in place once whole: its writes ended, then only a file of that size with every byte written and whose bytes hash to it moves; refused 409 `upload_incomplete` or `checksum_mismatch`, nothing moved. With sha256, it is safe to send again: once moved, it returns the same answer while `from` is gone and `to` holds those bytes.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRenamed"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_rename",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRename"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/files:link": {
      "post": {
        "operationId": "sandboxes.link",
        "summary": "Makes an expiring address for one file that anyone may open with no API key, from a browser, curl or another service: GET downloads it (Range works, so videos play and downloads resume; archive: true downloads a folder as .tar.gz), PUT with the raw body uploads it (up to maxBytes, written whole; Content-Length required). The link acts as the key that made it: an upload link needs write, and the link ends with its key, with revokeLinks or with its sandbox. A paused sandbox is woken for it unless wake is false. A port it serves is shared by a preview (previews.create), not a link.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLink"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileLinkCreate"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/files:revokeLinks": {
      "post": {
        "operationId": "sandboxes.revokeLinks",
        "summary": "Ends every file link made for a sandbox so far; links made after work.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's file links ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLinksRevoked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_revoke_links"
      }
    },
    "/v2/sandboxes/{id}/network": {
      "get": {
        "operationId": "sandboxes.getNetwork",
        "summary": "Returns where a sandbox may connect out.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get_network",
        "x-idempotent": true
      },
      "put": {
        "operationId": "sandboxes.setNetwork",
        "summary": "Replaces where a sandbox may connect out, for its next connection and within a second for its open ones: those the new rules refuse are cut.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:network",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_set_network",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkRules"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/metrics": {
      "get": {
        "operationId": "sandboxes.metrics",
        "summary": "Returns a sandbox's CPU, memory, disks and pressure, as its host reads them from the sandbox's own cgroup over a fifth of a second: never a call into the sandbox, so it does not wake a paused one nor keep one from its idle pause. One that is not running has no reading.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "The window: `15m`, `1h`, `6h`, `24h`, `7d` or `30d`.",
            "schema": {
              "type": "string",
              "enum": [
                "15m",
                "1h",
                "6h",
                "24h",
                "7d",
                "30d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxMetrics"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_metrics",
        "x-idempotent": true
      }
    },
    "/v2/sandboxes/{id}:fork": {
      "post": {
        "operationId": "sandboxes.fork",
        "summary": "Copies a sandbox as it is now, memory and disk, into `count` copies of its own, each running on its host. Asked again with the same Idempotency-Key, it returns the same copies.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:fork",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The copies a fork made, each running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_fork",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForkRequest"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}:snapshot": {
      "post": {
        "operationId": "sandboxes.snapshot",
        "summary": "Keeps a sandbox's memory and disk as they are now, a snapshot to start sandboxes from; with `image`, its disk alone as that image's next version. The sandbox runs on. Asked again with the same Idempotency-Key, it returns the same snapshot.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:snapshot",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_snapshot",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SnapshotRequest"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}:update": {
      "post": {
        "operationId": "sandboxes.update",
        "summary": "Changes its name, labels, idle pause, maxCost, autoWake, lifetime, delete protection, environment or sizes; each field left out stays as it is. A lifetime (`deleteAfterSeconds`) sent again before its end moves the end to that many seconds from now; 0 takes it off. A lifetime is refused (409 `delete_protected`) while `deleteProtection` is true. A running one holds a changed environment before this answers (a paused one's at its wake): each process it starts after the answer has it, and its running processes keep the one they started with. Its vCPUs, memory and disk grow while it runs, its commands running on. One paused or stopped is not woken for it: judged at once as a live resize is (past the vCPUs it was made with 409, over its organization's limits `quota_exceeded`), its new sizes are returned at once, and its next wake grows it to them before the call that woke it runs. A smaller size, or a machine starting or failed, is refused 409 naming why, and nothing is changed. With If-Match, made only while its revision is that one, else 412. Sent again with the same Idempotency-Key and body while it is the latest change, it returns the current state and changes nothing; the same key with a different body returns 409 idempotency_key_reused.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_update",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}/screenshot": {
      "get": {
        "operationId": "sandboxes.screenshot",
        "summary": "Returns what a sandbox's screen shows now, as `image/png` (or `image/jpeg`): its X display `:1`, whole. Refused 409 `display_not_running` when no display runs. A paused sandbox is resumed first.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`png`, or `jpeg`: smaller and quicker to send, for a model that reads it.",
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "jpeg"
              ],
              "default": "png"
            }
          },
          {
            "name": "quality",
            "in": "query",
            "required": false,
            "description": "A jpeg's quality, 1 to 100.",
            "schema": {
              "type": "integer",
              "default": 80,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_screenshot",
        "x-idempotent": true
      }
    },
    "/v2/sandboxes/{id}:act": {
      "post": {
        "operationId": "sandboxes.act",
        "summary": "Moves, clicks, drags and scrolls the mouse and types on the keyboard of a sandbox's screen (its X display `:1`), each step in turn as one command, and returns where the mouse is then. It stops at the first step that fails, refused 409 `act_failed` naming it; refused 409 `display_not_running` when no display runs. A paused sandbox is resumed first.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The screen once an act's steps ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Acted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_act",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActRequest"
              }
            }
          }
        }
      }
    },
    "/v2/sandboxes/{id}:runCode": {
      "post": {
        "operationId": "sandboxes.runCode",
        "summary": "Runs a cell of Python in a sandbox as a notebook does, in a Jupyter kernel it keeps running for the cell's `context`: variables, imports and functions stay for the next cell. Returns what it printed, its values and displays (text, HTML, images such as charts), and its exception with its traceback. The context's kernel starts on its first cell. A cell past `timeoutSeconds` is interrupted and its context kept. Refused 409 `kernel_not_installed` when the image has no ipykernel. A paused sandbox is resumed first.",
        "tags": [
          "sandboxes"
        ],
        "x-action": "sandboxes:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A cell that ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeRun"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_run_code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunCode"
              }
            }
          }
        }
      }
    },
    "/v2/functions": {
      "post": {
        "operationId": "functions.create",
        "summary": "Creates a function. Asked again with the same Idempotency-Key, it returns the same function.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "functions.list",
        "summary": "Lists the project's functions, newest first.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:list",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only the function of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Sandbox.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sandbox"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list",
        "x-idempotent": true
      }
    },
    "/v2/functions/{id}": {
      "get": {
        "operationId": "functions.get",
        "summary": "Returns a function.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "functions.delete",
        "summary": "Deletes a function, its memory and its disk.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_delete"
      }
    },
    "/v2/functions/{id}:pause": {
      "post": {
        "operationId": "functions.pause",
        "summary": "Pauses a function with its memory and disk kept. A call to it resumes it.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_pause"
      }
    },
    "/v2/functions/{id}:resume": {
      "post": {
        "operationId": "functions.resume",
        "summary": "Resumes a paused function where it was, its memory and processes as they were.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:wake",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resume"
      }
    },
    "/v2/functions/{id}:exec": {
      "post": {
        "operationId": "functions.exec",
        "summary": "Runs a command as a process and returns it once it ended, with its output; with wait false, at once, while it runs. A paused function is resumed first. Asked again with the same Idempotency-Key, it runs nothing more: it returns the first run's process, waiting for its end while it runs.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "An error: timeout.",
            "x-error-codes": [
              "timeout"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_exec",
        "x-idempotent": true,
        "x-runs": {
          "field": "timeoutSeconds"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecRequest"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/files": {
      "get": {
        "operationId": "functions.read",
        "summary": "Returns a file's bytes.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_read",
        "x-idempotent": true
      },
      "put": {
        "operationId": "functions.write",
        "summary": "Writes the request's bytes to a file as they come, of any size (Content-Length required), its folders made: the file whole when they all came, or as it was. With offset, they are written into it in place.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Its mode, in octal (`644`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Write the bytes into the file in place from this byte, keeping the bytes before and after them (the file is made when there is none); one that fails part way may leave its range written in part, so send it again. Parts of one file may be written so at once and in any order: write them to a new path, then rename it with its size and sha256 to put it in place whole.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "The bytes' SHA-256 in hex: refused 409 `checksum_mismatch`, the file as it was, when they differ. Not with offset.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file written.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write",
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/processes/{process}/output": {
      "get": {
        "operationId": "functions.processOutput",
        "summary": "Returns a process's output after a cursor, and the cursor to read on from. The latest 1 MiB is kept; truncated says when the cursor fell behind.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Output after this byte.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "required": false,
            "description": "Seconds to wait for output past the cursor or its exit, at most 8.",
            "schema": {
              "type": "number",
              "maximum": 8,
              "minimum": 0
            }
          },
          {
            "name": "maxBytes",
            "in": "query",
            "required": false,
            "description": "At most this many bytes.",
            "schema": {
              "type": "integer",
              "default": 65536,
              "minimum": 4096,
              "maximum": 196608
            }
          },
          {
            "name": "follow",
            "in": "query",
            "required": false,
            "description": "Answer as NDJSON events from the cursor until it exits (stdout, stderr, truncated, exit; continue with the cursor to follow on from), as `Accept: application/x-ndjson` does.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process's output after a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessOutput"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_process_output",
        "x-idempotent": true
      }
    },
    "/v2/functions/{id}/processes/{process}:write": {
      "post": {
        "operationId": "functions.writeProcess",
        "summary": "Sends input to a process started with stdinOpen or a pty, and returns how much of its input it has taken.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Input a process took.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_process",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessInput"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/processes/{process}:signal": {
      "post": {
        "operationId": "functions.signalProcess",
        "summary": "Sends a signal to a process and its group; a process that ended is not signalled, so a retry is safe.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_signal_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessSignal"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/processes/{process}:resize": {
      "post": {
        "operationId": "functions.resizeProcess",
        "summary": "Resizes the terminal of a process started with a pty (its window's columns and rows, which the process is told by SIGWINCH), and returns the process; refused 409 for a process without one. A process that ended is left as it is, so a retry is safe.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resize_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Terminal"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/processes": {
      "get": {
        "operationId": "functions.listProcesses",
        "summary": "Lists a function's processes, newest first: those running and those that ended lately.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's processes, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_processes",
        "x-idempotent": true
      }
    },
    "/v2/functions/{id}/files:remove": {
      "post": {
        "operationId": "functions.remove",
        "summary": "Removes a file, a link or a directory (recursive for one with contents). One missing is success, removed false.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRemoved"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_remove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemove"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/files/stat": {
      "get": {
        "operationId": "functions.stat",
        "summary": "Returns what is at a path: a file, a directory or a link, or nothing (exists false). With sha256=true, a file's SHA-256 too.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "Also return a file's SHA-256, read from its bytes: to check a file you put in place (files:rename with sha256) is whole.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A path in a machine: what is there, if anything.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInfo"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_stat",
        "x-idempotent": true
      }
    },
    "/v2/functions/{id}/files/list": {
      "get": {
        "operationId": "functions.listFiles",
        "summary": "Lists a directory's entries in path order, to a depth.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "The directory.",
            "schema": {
              "type": "string",
              "default": "/workspace"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "How deep to list.",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many entries.",
            "schema": {
              "type": "integer",
              "default": 2000,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "hidden",
            "in": "query",
            "required": false,
            "description": "List entries whose names start with a dot.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "glob",
            "in": "query",
            "required": false,
            "description": "Only entries whose path relative to the directory matches: `*` within a name, `**` across folders, `?` one character, `{a,b}` either (`**/*.py`); at most 512 characters, 32 wildcards and 64 texts in braces. The listing then reaches as deep as the glob does (10 folders for `**`) unless depth says, and is searched past its first 2,000 entries, up to 50,000.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "What a directory holds, in path order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_files",
        "x-idempotent": true
      }
    },
    "/v2/functions/{id}/files/archive": {
      "get": {
        "operationId": "functions.downloadFolder",
        "summary": "Returns a folder as a tar archive (`application/x-tar`, or `application/gzip` with gzip), packed by tar in the function as it streams, of any size; its entries are relative to the folder (`./a.txt`). A folder that fails part way (a file it may not read, or one that changes as it is read) ends as an archive every tar reader refuses, never as a short one that reads whole. At most 4 at once in a function. A paused function is woken first.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gzip",
            "in": "query",
            "required": false,
            "description": "Compress the archive with gzip.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who packs it: `runtime` or `root`; the function's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "required": false,
            "description": "Paths in the folder to leave out, relative to it and comma-separated (`node_modules,.cache`): plain names, no wildcards, at most 32.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_download_folder",
        "x-idempotent": true
      },
      "put": {
        "operationId": "functions.uploadFolder",
        "summary": "Unpacks the request's tar archive (gzip-compressed or not, told by its first bytes) into a folder, made with its parents, by tar in the function as the bytes arrive, of any size, nothing of it kept on disk but what tar writes; returns once tar has ended, or 400 `invalid_archive` with what tar said. A paused function is woken first.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`: made with its parents.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who unpacks it: `runtime` or `root`; the function's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_upload_folder",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/files/archive/uploads": {
      "post": {
        "operationId": "functions.beginFolderUpload",
        "summary": "Begins a folder's upload in parts: tar starts in the function, unpacking into the folder each part as it arrives. Send the parts in order by offset (writeFolderUpload), then commitFolderUpload; an upload no call names for 10 minutes is ended. A paused function is woken first.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload begun: its parts go to it in order, then its commit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUpload"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_begin_folder_upload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderUploadBegin"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/files/archive/uploads/{upload}": {
      "put": {
        "operationId": "functions.writeFolderUpload",
        "summary": "Sends the request's bytes, a part of the archive at its offset, into tar's input as they arrive, of any size, and returns the bytes received in all once tar took them. A part past them is refused 409 `upload_incomplete`, naming them: send the parts in order.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Where the part starts in the archive: at most the bytes received so far. Bytes before them were taken already and are skipped, so a part sent again is never unpacked twice.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload's part taken.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadReceived"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_folder_upload",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/files/archive/uploads/{upload}:commit": {
      "post": {
        "operationId": "functions.commitFolderUpload",
        "summary": "Ends a folder upload's input and returns once tar has ended, as an exec returns once its command has: the folder, or 400 `invalid_archive` with what tar said. Sent again, it returns how tar ended. An upload no call has named for 10 minutes since its last part or commit is ended.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_commit_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/functions/{id}/files/archive/uploads/{upload}:abort": {
      "post": {
        "operationId": "functions.abortFolderUpload",
        "summary": "Stops a folder upload's tar; what it unpacked so far stays.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload ended unfinished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadAborted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_abort_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/functions/{id}/files:mkdir": {
      "post": {
        "operationId": "functions.mkdir",
        "summary": "Makes a directory, and its parents unless parents is false. One there already is success, created false.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A directory made.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMade"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_mkdir",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMkdir"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/files:rename": {
      "post": {
        "operationId": "functions.rename",
        "summary": "Moves a file, a link or a directory; refused 409 when something is at its new path, unless overwrite. With sha256 or size, a file written in parts is put in place once whole: its writes ended, then only a file of that size with every byte written and whose bytes hash to it moves; refused 409 `upload_incomplete` or `checksum_mismatch`, nothing moved. With sha256, it is safe to send again: once moved, it returns the same answer while `from` is gone and `to` holds those bytes.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRenamed"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_rename",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRename"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/files:link": {
      "post": {
        "operationId": "functions.link",
        "summary": "Makes an expiring address for one file that anyone may open with no API key, from a browser, curl or another service: GET downloads it (Range works, so videos play and downloads resume; archive: true downloads a folder as .tar.gz), PUT with the raw body uploads it (up to maxBytes, written whole; Content-Length required). The link acts as the key that made it: an upload link needs write, and the link ends with its key, with revokeLinks or with its function. A paused function is woken for it unless wake is false. A port it serves is shared by a preview (previews.create), not a link.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLink"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileLinkCreate"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/files:revokeLinks": {
      "post": {
        "operationId": "functions.revokeLinks",
        "summary": "Ends every file link made for a function so far; links made after work.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's file links ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLinksRevoked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_revoke_links"
      }
    },
    "/v2/functions/{id}/network": {
      "get": {
        "operationId": "functions.getNetwork",
        "summary": "Returns where a function may connect out.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get_network",
        "x-idempotent": true
      },
      "put": {
        "operationId": "functions.setNetwork",
        "summary": "Replaces where a function may connect out, for its next connection and within a second for its open ones: those the new rules refuse are cut.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:network",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_set_network",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkRules"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/metrics": {
      "get": {
        "operationId": "functions.metrics",
        "summary": "Returns a function's CPU, memory, disks and pressure, as its host reads them from the function's own cgroup over a fifth of a second: never a call into the function, so it does not wake a paused one nor keep one from its idle pause. One that is not running has no reading.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "The window: `15m`, `1h`, `6h`, `24h`, `7d` or `30d`.",
            "schema": {
              "type": "string",
              "enum": [
                "15m",
                "1h",
                "6h",
                "24h",
                "7d",
                "30d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxMetrics"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_metrics",
        "x-idempotent": true
      }
    },
    "/v2/functions/{id}:fork": {
      "post": {
        "operationId": "functions.fork",
        "summary": "Copies a function as it is now, memory and disk, into `count` copies of its own, each running on its host. Asked again with the same Idempotency-Key, it returns the same copies.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:fork",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The copies a fork made, each running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_fork",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForkRequest"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}:snapshot": {
      "post": {
        "operationId": "functions.snapshot",
        "summary": "Keeps a function's memory and disk as they are now, a snapshot to start functions from; with `image`, its disk alone as that image's next version. The function runs on. Asked again with the same Idempotency-Key, it returns the same snapshot.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:snapshot",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_snapshot",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SnapshotRequest"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}:update": {
      "post": {
        "operationId": "functions.update",
        "summary": "Changes its name, labels, idle pause, maxCost, autoWake, lifetime, delete protection, environment or sizes; each field left out stays as it is. A lifetime (`deleteAfterSeconds`) sent again before its end moves the end to that many seconds from now; 0 takes it off. A lifetime is refused (409 `delete_protected`) while `deleteProtection` is true. A running one holds a changed environment before this answers (a paused one's at its wake): each process it starts after the answer has it, and its running processes keep the one they started with. Its vCPUs, memory and disk grow while it runs, its commands running on. One paused or stopped is not woken for it: judged at once as a live resize is (past the vCPUs it was made with 409, over its organization's limits `quota_exceeded`), its new sizes are returned at once, and its next wake grows it to them before the call that woke it runs. A smaller size, or a machine starting or failed, is refused 409 naming why, and nothing is changed. With If-Match, made only while its revision is that one, else 412. Sent again with the same Idempotency-Key and body while it is the latest change, it returns the current state and changes nothing; the same key with a different body returns 409 idempotency_key_reused.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_update",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}/screenshot": {
      "get": {
        "operationId": "functions.screenshot",
        "summary": "Returns what a function's screen shows now, as `image/png` (or `image/jpeg`): its X display `:1`, whole. Refused 409 `display_not_running` when no display runs. A paused function is resumed first.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`png`, or `jpeg`: smaller and quicker to send, for a model that reads it.",
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "jpeg"
              ],
              "default": "png"
            }
          },
          {
            "name": "quality",
            "in": "query",
            "required": false,
            "description": "A jpeg's quality, 1 to 100.",
            "schema": {
              "type": "integer",
              "default": 80,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_screenshot",
        "x-idempotent": true
      }
    },
    "/v2/functions/{id}:act": {
      "post": {
        "operationId": "functions.act",
        "summary": "Moves, clicks, drags and scrolls the mouse and types on the keyboard of a function's screen (its X display `:1`), each step in turn as one command, and returns where the mouse is then. It stops at the first step that fails, refused 409 `act_failed` naming it; refused 409 `display_not_running` when no display runs. A paused function is resumed first.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The screen once an act's steps ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Acted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_act",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActRequest"
              }
            }
          }
        }
      }
    },
    "/v2/functions/{id}:runCode": {
      "post": {
        "operationId": "functions.runCode",
        "summary": "Runs a cell of Python in a function as a notebook does, in a Jupyter kernel it keeps running for the cell's `context`: variables, imports and functions stay for the next cell. Returns what it printed, its values and displays (text, HTML, images such as charts), and its exception with its traceback. The context's kernel starts on its first cell. A cell past `timeoutSeconds` is interrupted and its context kept. Refused 409 `kernel_not_installed` when the image has no ipykernel. A paused function is resumed first.",
        "tags": [
          "functions"
        ],
        "x-action": "functions:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A cell that ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeRun"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_run_code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunCode"
              }
            }
          }
        }
      }
    },
    "/v2/secrets": {
      "get": {
        "operationId": "secrets.list",
        "summary": "Lists the organization's secrets by name, without their values.",
        "tags": [
          "secrets"
        ],
        "x-action": "secrets:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Secret.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Secret"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_secrets_list",
        "x-idempotent": true
      }
    },
    "/v2/secrets/{name}": {
      "get": {
        "operationId": "secrets.get",
        "summary": "Returns a secret, without its value.",
        "tags": [
          "secrets"
        ],
        "x-action": "secrets:get",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "description": "Its name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A secret, without its value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Secret"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_secrets_get",
        "x-idempotent": true
      },
      "put": {
        "operationId": "secrets.set",
        "summary": "Stores or replaces a secret with its value, or changes one without it. Replacing it keeps its placeholder and raises its version; machines' new requests carry the new value within a second, and a visible secret's file holds it within a second. A running machine's processes keep the environment they started with; new commands get the new one. Asked again with the same Idempotency-Key and body, it returns the secret as that request left it. A deleted secret's name stored again is a new secret with a new placeholder, and so is a visible secret stored hidden. Without its value, it changes only the hosts, rules (`policies.rules`) and scope it names and keeps every other setting: hosts and rules only narrow, refused 400 when wider, since widening needs the value; a visible secret's scope only narrows, since its machines hold its value, and its file is removed within a second from each machine the scope leaves out. A secret not stored yet needs its value (404).",
        "tags": [
          "secrets"
        ],
        "x-action": "secrets:write",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "description": "Its name.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A secret, without its value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Secret"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_secrets_set",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SecretSet"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "secrets.delete",
        "summary": "Deletes a secret and its value: no request carries it from then on, open connections' included, and a visible secret's file is removed from every machine within a second. Deleted again, it returns the same deleted secret.",
        "tags": [
          "secrets"
        ],
        "x-action": "secrets:delete",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "description": "Its name.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A secret, without its value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Secret"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_secrets_delete",
        "x-idempotent": true
      }
    },
    "/v2/apps": {
      "post": {
        "operationId": "apps.create",
        "summary": "Creates an app. Asked again with the same Idempotency-Key, it returns the same app.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "apps.list",
        "summary": "Lists the project's apps, newest first.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:list",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only the app of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Sandbox.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sandbox"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list",
        "x-idempotent": true
      }
    },
    "/v2/apps/{id}": {
      "get": {
        "operationId": "apps.get",
        "summary": "Returns an app.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "apps.delete",
        "summary": "Deletes an app, its memory and its disk.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_delete"
      }
    },
    "/v2/apps/{id}:pause": {
      "post": {
        "operationId": "apps.pause",
        "summary": "Pauses an app with its memory and disk kept. A call to it resumes it.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_pause"
      }
    },
    "/v2/apps/{id}:resume": {
      "post": {
        "operationId": "apps.resume",
        "summary": "Resumes a paused app where it was, its memory and processes as they were.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:wake",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resume"
      }
    },
    "/v2/apps/{id}:exec": {
      "post": {
        "operationId": "apps.exec",
        "summary": "Runs a command as a process and returns it once it ended, with its output; with wait false, at once, while it runs. A paused app is resumed first. Asked again with the same Idempotency-Key, it runs nothing more: it returns the first run's process, waiting for its end while it runs.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "An error: timeout.",
            "x-error-codes": [
              "timeout"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_exec",
        "x-idempotent": true,
        "x-runs": {
          "field": "timeoutSeconds"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecRequest"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/files": {
      "get": {
        "operationId": "apps.read",
        "summary": "Returns a file's bytes.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_read",
        "x-idempotent": true
      },
      "put": {
        "operationId": "apps.write",
        "summary": "Writes the request's bytes to a file as they come, of any size (Content-Length required), its folders made: the file whole when they all came, or as it was. With offset, they are written into it in place.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Its mode, in octal (`644`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Write the bytes into the file in place from this byte, keeping the bytes before and after them (the file is made when there is none); one that fails part way may leave its range written in part, so send it again. Parts of one file may be written so at once and in any order: write them to a new path, then rename it with its size and sha256 to put it in place whole.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "The bytes' SHA-256 in hex: refused 409 `checksum_mismatch`, the file as it was, when they differ. Not with offset.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file written.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write",
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/processes/{process}/output": {
      "get": {
        "operationId": "apps.processOutput",
        "summary": "Returns a process's output after a cursor, and the cursor to read on from. The latest 1 MiB is kept; truncated says when the cursor fell behind.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Output after this byte.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "required": false,
            "description": "Seconds to wait for output past the cursor or its exit, at most 8.",
            "schema": {
              "type": "number",
              "maximum": 8,
              "minimum": 0
            }
          },
          {
            "name": "maxBytes",
            "in": "query",
            "required": false,
            "description": "At most this many bytes.",
            "schema": {
              "type": "integer",
              "default": 65536,
              "minimum": 4096,
              "maximum": 196608
            }
          },
          {
            "name": "follow",
            "in": "query",
            "required": false,
            "description": "Answer as NDJSON events from the cursor until it exits (stdout, stderr, truncated, exit; continue with the cursor to follow on from), as `Accept: application/x-ndjson` does.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process's output after a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessOutput"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_process_output",
        "x-idempotent": true
      }
    },
    "/v2/apps/{id}/processes/{process}:write": {
      "post": {
        "operationId": "apps.writeProcess",
        "summary": "Sends input to a process started with stdinOpen or a pty, and returns how much of its input it has taken.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Input a process took.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_process",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessInput"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/processes/{process}:signal": {
      "post": {
        "operationId": "apps.signalProcess",
        "summary": "Sends a signal to a process and its group; a process that ended is not signalled, so a retry is safe.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_signal_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessSignal"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/processes/{process}:resize": {
      "post": {
        "operationId": "apps.resizeProcess",
        "summary": "Resizes the terminal of a process started with a pty (its window's columns and rows, which the process is told by SIGWINCH), and returns the process; refused 409 for a process without one. A process that ended is left as it is, so a retry is safe.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resize_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Terminal"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/processes": {
      "get": {
        "operationId": "apps.listProcesses",
        "summary": "Lists an app's processes, newest first: those running and those that ended lately.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's processes, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_processes",
        "x-idempotent": true
      }
    },
    "/v2/apps/{id}/files:remove": {
      "post": {
        "operationId": "apps.remove",
        "summary": "Removes a file, a link or a directory (recursive for one with contents). One missing is success, removed false.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRemoved"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_remove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemove"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/files/stat": {
      "get": {
        "operationId": "apps.stat",
        "summary": "Returns what is at a path: a file, a directory or a link, or nothing (exists false). With sha256=true, a file's SHA-256 too.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "Also return a file's SHA-256, read from its bytes: to check a file you put in place (files:rename with sha256) is whole.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A path in a machine: what is there, if anything.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInfo"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_stat",
        "x-idempotent": true
      }
    },
    "/v2/apps/{id}/files/list": {
      "get": {
        "operationId": "apps.listFiles",
        "summary": "Lists a directory's entries in path order, to a depth.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "The directory.",
            "schema": {
              "type": "string",
              "default": "/workspace"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "How deep to list.",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many entries.",
            "schema": {
              "type": "integer",
              "default": 2000,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "hidden",
            "in": "query",
            "required": false,
            "description": "List entries whose names start with a dot.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "glob",
            "in": "query",
            "required": false,
            "description": "Only entries whose path relative to the directory matches: `*` within a name, `**` across folders, `?` one character, `{a,b}` either (`**/*.py`); at most 512 characters, 32 wildcards and 64 texts in braces. The listing then reaches as deep as the glob does (10 folders for `**`) unless depth says, and is searched past its first 2,000 entries, up to 50,000.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "What a directory holds, in path order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_files",
        "x-idempotent": true
      }
    },
    "/v2/apps/{id}/files/archive": {
      "get": {
        "operationId": "apps.downloadFolder",
        "summary": "Returns a folder as a tar archive (`application/x-tar`, or `application/gzip` with gzip), packed by tar in the app as it streams, of any size; its entries are relative to the folder (`./a.txt`). A folder that fails part way (a file it may not read, or one that changes as it is read) ends as an archive every tar reader refuses, never as a short one that reads whole. At most 4 at once in an app. A paused app is woken first.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gzip",
            "in": "query",
            "required": false,
            "description": "Compress the archive with gzip.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who packs it: `runtime` or `root`; the app's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "required": false,
            "description": "Paths in the folder to leave out, relative to it and comma-separated (`node_modules,.cache`): plain names, no wildcards, at most 32.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_download_folder",
        "x-idempotent": true
      },
      "put": {
        "operationId": "apps.uploadFolder",
        "summary": "Unpacks the request's tar archive (gzip-compressed or not, told by its first bytes) into a folder, made with its parents, by tar in the app as the bytes arrive, of any size, nothing of it kept on disk but what tar writes; returns once tar has ended, or 400 `invalid_archive` with what tar said. A paused app is woken first.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`: made with its parents.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who unpacks it: `runtime` or `root`; the app's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_upload_folder",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/files/archive/uploads": {
      "post": {
        "operationId": "apps.beginFolderUpload",
        "summary": "Begins a folder's upload in parts: tar starts in the app, unpacking into the folder each part as it arrives. Send the parts in order by offset (writeFolderUpload), then commitFolderUpload; an upload no call names for 10 minutes is ended. A paused app is woken first.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload begun: its parts go to it in order, then its commit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUpload"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_begin_folder_upload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderUploadBegin"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/files/archive/uploads/{upload}": {
      "put": {
        "operationId": "apps.writeFolderUpload",
        "summary": "Sends the request's bytes, a part of the archive at its offset, into tar's input as they arrive, of any size, and returns the bytes received in all once tar took them. A part past them is refused 409 `upload_incomplete`, naming them: send the parts in order.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Where the part starts in the archive: at most the bytes received so far. Bytes before them were taken already and are skipped, so a part sent again is never unpacked twice.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload's part taken.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadReceived"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_folder_upload",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/files/archive/uploads/{upload}:commit": {
      "post": {
        "operationId": "apps.commitFolderUpload",
        "summary": "Ends a folder upload's input and returns once tar has ended, as an exec returns once its command has: the folder, or 400 `invalid_archive` with what tar said. Sent again, it returns how tar ended. An upload no call has named for 10 minutes since its last part or commit is ended.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_commit_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/apps/{id}/files/archive/uploads/{upload}:abort": {
      "post": {
        "operationId": "apps.abortFolderUpload",
        "summary": "Stops a folder upload's tar; what it unpacked so far stays.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload ended unfinished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadAborted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_abort_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/apps/{id}/files:mkdir": {
      "post": {
        "operationId": "apps.mkdir",
        "summary": "Makes a directory, and its parents unless parents is false. One there already is success, created false.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A directory made.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMade"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_mkdir",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMkdir"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/files:rename": {
      "post": {
        "operationId": "apps.rename",
        "summary": "Moves a file, a link or a directory; refused 409 when something is at its new path, unless overwrite. With sha256 or size, a file written in parts is put in place once whole: its writes ended, then only a file of that size with every byte written and whose bytes hash to it moves; refused 409 `upload_incomplete` or `checksum_mismatch`, nothing moved. With sha256, it is safe to send again: once moved, it returns the same answer while `from` is gone and `to` holds those bytes.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRenamed"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_rename",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRename"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/files:link": {
      "post": {
        "operationId": "apps.link",
        "summary": "Makes an expiring address for one file that anyone may open with no API key, from a browser, curl or another service: GET downloads it (Range works, so videos play and downloads resume; archive: true downloads a folder as .tar.gz), PUT with the raw body uploads it (up to maxBytes, written whole; Content-Length required). The link acts as the key that made it: an upload link needs write, and the link ends with its key, with revokeLinks or with its app. A paused app is woken for it unless wake is false. A port it serves is shared by a preview (previews.create), not a link.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLink"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileLinkCreate"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/files:revokeLinks": {
      "post": {
        "operationId": "apps.revokeLinks",
        "summary": "Ends every file link made for an app so far; links made after work.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's file links ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLinksRevoked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_revoke_links"
      }
    },
    "/v2/apps/{id}/network": {
      "get": {
        "operationId": "apps.getNetwork",
        "summary": "Returns where an app may connect out.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get_network",
        "x-idempotent": true
      },
      "put": {
        "operationId": "apps.setNetwork",
        "summary": "Replaces where an app may connect out, for its next connection and within a second for its open ones: those the new rules refuse are cut.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:network",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_set_network",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkRules"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/metrics": {
      "get": {
        "operationId": "apps.metrics",
        "summary": "Returns an app's CPU, memory, disks and pressure, as its host reads them from the app's own cgroup over a fifth of a second: never a call into the app, so it does not wake a paused one nor keep one from its idle pause. One that is not running has no reading.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "The window: `15m`, `1h`, `6h`, `24h`, `7d` or `30d`.",
            "schema": {
              "type": "string",
              "enum": [
                "15m",
                "1h",
                "6h",
                "24h",
                "7d",
                "30d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxMetrics"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_metrics",
        "x-idempotent": true
      }
    },
    "/v2/apps/{id}:fork": {
      "post": {
        "operationId": "apps.fork",
        "summary": "Copies an app as it is now, memory and disk, into `count` copies of its own, each running on its host. Asked again with the same Idempotency-Key, it returns the same copies.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:fork",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The copies a fork made, each running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_fork",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForkRequest"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}:snapshot": {
      "post": {
        "operationId": "apps.snapshot",
        "summary": "Keeps an app's memory and disk as they are now, a snapshot to start apps from; with `image`, its disk alone as that image's next version. The app runs on. Asked again with the same Idempotency-Key, it returns the same snapshot.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:snapshot",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_snapshot",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SnapshotRequest"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}:update": {
      "post": {
        "operationId": "apps.update",
        "summary": "Changes its name, labels, idle pause, maxCost, autoWake, lifetime, delete protection, environment or sizes; each field left out stays as it is. A lifetime (`deleteAfterSeconds`) sent again before its end moves the end to that many seconds from now; 0 takes it off. A lifetime is refused (409 `delete_protected`) while `deleteProtection` is true. A running one holds a changed environment before this answers (a paused one's at its wake): each process it starts after the answer has it, and its running processes keep the one they started with. Its vCPUs, memory and disk grow while it runs, its commands running on. One paused or stopped is not woken for it: judged at once as a live resize is (past the vCPUs it was made with 409, over its organization's limits `quota_exceeded`), its new sizes are returned at once, and its next wake grows it to them before the call that woke it runs. A smaller size, or a machine starting or failed, is refused 409 naming why, and nothing is changed. With If-Match, made only while its revision is that one, else 412. Sent again with the same Idempotency-Key and body while it is the latest change, it returns the current state and changes nothing; the same key with a different body returns 409 idempotency_key_reused.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_update",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}/screenshot": {
      "get": {
        "operationId": "apps.screenshot",
        "summary": "Returns what an app's screen shows now, as `image/png` (or `image/jpeg`): its X display `:1`, whole. Refused 409 `display_not_running` when no display runs. A paused app is resumed first.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`png`, or `jpeg`: smaller and quicker to send, for a model that reads it.",
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "jpeg"
              ],
              "default": "png"
            }
          },
          {
            "name": "quality",
            "in": "query",
            "required": false,
            "description": "A jpeg's quality, 1 to 100.",
            "schema": {
              "type": "integer",
              "default": 80,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_screenshot",
        "x-idempotent": true
      }
    },
    "/v2/apps/{id}:act": {
      "post": {
        "operationId": "apps.act",
        "summary": "Moves, clicks, drags and scrolls the mouse and types on the keyboard of an app's screen (its X display `:1`), each step in turn as one command, and returns where the mouse is then. It stops at the first step that fails, refused 409 `act_failed` naming it; refused 409 `display_not_running` when no display runs. A paused app is resumed first.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The screen once an act's steps ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Acted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_act",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActRequest"
              }
            }
          }
        }
      }
    },
    "/v2/apps/{id}:runCode": {
      "post": {
        "operationId": "apps.runCode",
        "summary": "Runs a cell of Python in an app as a notebook does, in a Jupyter kernel it keeps running for the cell's `context`: variables, imports and functions stay for the next cell. Returns what it printed, its values and displays (text, HTML, images such as charts), and its exception with its traceback. The context's kernel starts on its first cell. A cell past `timeoutSeconds` is interrupted and its context kept. Refused 409 `kernel_not_installed` when the image has no ipykernel. A paused app is resumed first.",
        "tags": [
          "apps"
        ],
        "x-action": "apps:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A cell that ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeRun"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_run_code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunCode"
              }
            }
          }
        }
      }
    },
    "/v2/sites": {
      "post": {
        "operationId": "sites.create",
        "summary": "Creates a site. Asked again with the same Idempotency-Key, it returns the same site.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "sites.list",
        "summary": "Lists the project's sites, newest first.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:list",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only the site of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Sandbox.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sandbox"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list",
        "x-idempotent": true
      }
    },
    "/v2/sites/{id}": {
      "get": {
        "operationId": "sites.get",
        "summary": "Returns a site.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "sites.delete",
        "summary": "Deletes a site, its memory and its disk.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_delete"
      }
    },
    "/v2/sites/{id}:pause": {
      "post": {
        "operationId": "sites.pause",
        "summary": "Pauses a site with its memory and disk kept. A call to it resumes it.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_pause"
      }
    },
    "/v2/sites/{id}:resume": {
      "post": {
        "operationId": "sites.resume",
        "summary": "Resumes a paused site where it was, its memory and processes as they were.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:wake",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resume"
      }
    },
    "/v2/sites/{id}:exec": {
      "post": {
        "operationId": "sites.exec",
        "summary": "Runs a command as a process and returns it once it ended, with its output; with wait false, at once, while it runs. A paused site is resumed first. Asked again with the same Idempotency-Key, it runs nothing more: it returns the first run's process, waiting for its end while it runs.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "An error: timeout.",
            "x-error-codes": [
              "timeout"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_exec",
        "x-idempotent": true,
        "x-runs": {
          "field": "timeoutSeconds"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecRequest"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/files": {
      "get": {
        "operationId": "sites.read",
        "summary": "Returns a file's bytes.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_read",
        "x-idempotent": true
      },
      "put": {
        "operationId": "sites.write",
        "summary": "Writes the request's bytes to a file as they come, of any size (Content-Length required), its folders made: the file whole when they all came, or as it was. With offset, they are written into it in place.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Its mode, in octal (`644`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Write the bytes into the file in place from this byte, keeping the bytes before and after them (the file is made when there is none); one that fails part way may leave its range written in part, so send it again. Parts of one file may be written so at once and in any order: write them to a new path, then rename it with its size and sha256 to put it in place whole.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "The bytes' SHA-256 in hex: refused 409 `checksum_mismatch`, the file as it was, when they differ. Not with offset.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file written.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write",
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/processes/{process}/output": {
      "get": {
        "operationId": "sites.processOutput",
        "summary": "Returns a process's output after a cursor, and the cursor to read on from. The latest 1 MiB is kept; truncated says when the cursor fell behind.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Output after this byte.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "required": false,
            "description": "Seconds to wait for output past the cursor or its exit, at most 8.",
            "schema": {
              "type": "number",
              "maximum": 8,
              "minimum": 0
            }
          },
          {
            "name": "maxBytes",
            "in": "query",
            "required": false,
            "description": "At most this many bytes.",
            "schema": {
              "type": "integer",
              "default": 65536,
              "minimum": 4096,
              "maximum": 196608
            }
          },
          {
            "name": "follow",
            "in": "query",
            "required": false,
            "description": "Answer as NDJSON events from the cursor until it exits (stdout, stderr, truncated, exit; continue with the cursor to follow on from), as `Accept: application/x-ndjson` does.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process's output after a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessOutput"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_process_output",
        "x-idempotent": true
      }
    },
    "/v2/sites/{id}/processes/{process}:write": {
      "post": {
        "operationId": "sites.writeProcess",
        "summary": "Sends input to a process started with stdinOpen or a pty, and returns how much of its input it has taken.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Input a process took.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_process",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessInput"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/processes/{process}:signal": {
      "post": {
        "operationId": "sites.signalProcess",
        "summary": "Sends a signal to a process and its group; a process that ended is not signalled, so a retry is safe.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_signal_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessSignal"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/processes/{process}:resize": {
      "post": {
        "operationId": "sites.resizeProcess",
        "summary": "Resizes the terminal of a process started with a pty (its window's columns and rows, which the process is told by SIGWINCH), and returns the process; refused 409 for a process without one. A process that ended is left as it is, so a retry is safe.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resize_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Terminal"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/processes": {
      "get": {
        "operationId": "sites.listProcesses",
        "summary": "Lists a site's processes, newest first: those running and those that ended lately.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's processes, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_processes",
        "x-idempotent": true
      }
    },
    "/v2/sites/{id}/files:remove": {
      "post": {
        "operationId": "sites.remove",
        "summary": "Removes a file, a link or a directory (recursive for one with contents). One missing is success, removed false.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRemoved"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_remove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemove"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/files/stat": {
      "get": {
        "operationId": "sites.stat",
        "summary": "Returns what is at a path: a file, a directory or a link, or nothing (exists false). With sha256=true, a file's SHA-256 too.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "Also return a file's SHA-256, read from its bytes: to check a file you put in place (files:rename with sha256) is whole.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A path in a machine: what is there, if anything.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInfo"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_stat",
        "x-idempotent": true
      }
    },
    "/v2/sites/{id}/files/list": {
      "get": {
        "operationId": "sites.listFiles",
        "summary": "Lists a directory's entries in path order, to a depth.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "The directory.",
            "schema": {
              "type": "string",
              "default": "/workspace"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "How deep to list.",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many entries.",
            "schema": {
              "type": "integer",
              "default": 2000,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "hidden",
            "in": "query",
            "required": false,
            "description": "List entries whose names start with a dot.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "glob",
            "in": "query",
            "required": false,
            "description": "Only entries whose path relative to the directory matches: `*` within a name, `**` across folders, `?` one character, `{a,b}` either (`**/*.py`); at most 512 characters, 32 wildcards and 64 texts in braces. The listing then reaches as deep as the glob does (10 folders for `**`) unless depth says, and is searched past its first 2,000 entries, up to 50,000.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "What a directory holds, in path order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_files",
        "x-idempotent": true
      }
    },
    "/v2/sites/{id}/files/archive": {
      "get": {
        "operationId": "sites.downloadFolder",
        "summary": "Returns a folder as a tar archive (`application/x-tar`, or `application/gzip` with gzip), packed by tar in the site as it streams, of any size; its entries are relative to the folder (`./a.txt`). A folder that fails part way (a file it may not read, or one that changes as it is read) ends as an archive every tar reader refuses, never as a short one that reads whole. At most 4 at once in a site. A paused site is woken first.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gzip",
            "in": "query",
            "required": false,
            "description": "Compress the archive with gzip.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who packs it: `runtime` or `root`; the site's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "required": false,
            "description": "Paths in the folder to leave out, relative to it and comma-separated (`node_modules,.cache`): plain names, no wildcards, at most 32.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_download_folder",
        "x-idempotent": true
      },
      "put": {
        "operationId": "sites.uploadFolder",
        "summary": "Unpacks the request's tar archive (gzip-compressed or not, told by its first bytes) into a folder, made with its parents, by tar in the site as the bytes arrive, of any size, nothing of it kept on disk but what tar writes; returns once tar has ended, or 400 `invalid_archive` with what tar said. A paused site is woken first.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`: made with its parents.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who unpacks it: `runtime` or `root`; the site's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_upload_folder",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/files/archive/uploads": {
      "post": {
        "operationId": "sites.beginFolderUpload",
        "summary": "Begins a folder's upload in parts: tar starts in the site, unpacking into the folder each part as it arrives. Send the parts in order by offset (writeFolderUpload), then commitFolderUpload; an upload no call names for 10 minutes is ended. A paused site is woken first.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload begun: its parts go to it in order, then its commit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUpload"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_begin_folder_upload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderUploadBegin"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/files/archive/uploads/{upload}": {
      "put": {
        "operationId": "sites.writeFolderUpload",
        "summary": "Sends the request's bytes, a part of the archive at its offset, into tar's input as they arrive, of any size, and returns the bytes received in all once tar took them. A part past them is refused 409 `upload_incomplete`, naming them: send the parts in order.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Where the part starts in the archive: at most the bytes received so far. Bytes before them were taken already and are skipped, so a part sent again is never unpacked twice.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload's part taken.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadReceived"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_folder_upload",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/files/archive/uploads/{upload}:commit": {
      "post": {
        "operationId": "sites.commitFolderUpload",
        "summary": "Ends a folder upload's input and returns once tar has ended, as an exec returns once its command has: the folder, or 400 `invalid_archive` with what tar said. Sent again, it returns how tar ended. An upload no call has named for 10 minutes since its last part or commit is ended.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_commit_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/sites/{id}/files/archive/uploads/{upload}:abort": {
      "post": {
        "operationId": "sites.abortFolderUpload",
        "summary": "Stops a folder upload's tar; what it unpacked so far stays.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload ended unfinished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadAborted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_abort_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/sites/{id}/files:mkdir": {
      "post": {
        "operationId": "sites.mkdir",
        "summary": "Makes a directory, and its parents unless parents is false. One there already is success, created false.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A directory made.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMade"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_mkdir",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMkdir"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/files:rename": {
      "post": {
        "operationId": "sites.rename",
        "summary": "Moves a file, a link or a directory; refused 409 when something is at its new path, unless overwrite. With sha256 or size, a file written in parts is put in place once whole: its writes ended, then only a file of that size with every byte written and whose bytes hash to it moves; refused 409 `upload_incomplete` or `checksum_mismatch`, nothing moved. With sha256, it is safe to send again: once moved, it returns the same answer while `from` is gone and `to` holds those bytes.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRenamed"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_rename",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRename"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/files:link": {
      "post": {
        "operationId": "sites.link",
        "summary": "Makes an expiring address for one file that anyone may open with no API key, from a browser, curl or another service: GET downloads it (Range works, so videos play and downloads resume; archive: true downloads a folder as .tar.gz), PUT with the raw body uploads it (up to maxBytes, written whole; Content-Length required). The link acts as the key that made it: an upload link needs write, and the link ends with its key, with revokeLinks or with its site. A paused site is woken for it unless wake is false. A port it serves is shared by a preview (previews.create), not a link.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLink"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileLinkCreate"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/files:revokeLinks": {
      "post": {
        "operationId": "sites.revokeLinks",
        "summary": "Ends every file link made for a site so far; links made after work.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's file links ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLinksRevoked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_revoke_links"
      }
    },
    "/v2/sites/{id}/network": {
      "get": {
        "operationId": "sites.getNetwork",
        "summary": "Returns where a site may connect out.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get_network",
        "x-idempotent": true
      },
      "put": {
        "operationId": "sites.setNetwork",
        "summary": "Replaces where a site may connect out, for its next connection and within a second for its open ones: those the new rules refuse are cut.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:network",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_set_network",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkRules"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/metrics": {
      "get": {
        "operationId": "sites.metrics",
        "summary": "Returns a site's CPU, memory, disks and pressure, as its host reads them from the site's own cgroup over a fifth of a second: never a call into the site, so it does not wake a paused one nor keep one from its idle pause. One that is not running has no reading.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "The window: `15m`, `1h`, `6h`, `24h`, `7d` or `30d`.",
            "schema": {
              "type": "string",
              "enum": [
                "15m",
                "1h",
                "6h",
                "24h",
                "7d",
                "30d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxMetrics"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_metrics",
        "x-idempotent": true
      }
    },
    "/v2/sites/{id}:fork": {
      "post": {
        "operationId": "sites.fork",
        "summary": "Copies a site as it is now, memory and disk, into `count` copies of its own, each running on its host. Asked again with the same Idempotency-Key, it returns the same copies.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:fork",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The copies a fork made, each running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_fork",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForkRequest"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}:snapshot": {
      "post": {
        "operationId": "sites.snapshot",
        "summary": "Keeps a site's memory and disk as they are now, a snapshot to start sites from; with `image`, its disk alone as that image's next version. The site runs on. Asked again with the same Idempotency-Key, it returns the same snapshot.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:snapshot",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_snapshot",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SnapshotRequest"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}:update": {
      "post": {
        "operationId": "sites.update",
        "summary": "Changes its name, labels, idle pause, maxCost, autoWake, lifetime, delete protection, environment or sizes; each field left out stays as it is. A lifetime (`deleteAfterSeconds`) sent again before its end moves the end to that many seconds from now; 0 takes it off. A lifetime is refused (409 `delete_protected`) while `deleteProtection` is true. A running one holds a changed environment before this answers (a paused one's at its wake): each process it starts after the answer has it, and its running processes keep the one they started with. Its vCPUs, memory and disk grow while it runs, its commands running on. One paused or stopped is not woken for it: judged at once as a live resize is (past the vCPUs it was made with 409, over its organization's limits `quota_exceeded`), its new sizes are returned at once, and its next wake grows it to them before the call that woke it runs. A smaller size, or a machine starting or failed, is refused 409 naming why, and nothing is changed. With If-Match, made only while its revision is that one, else 412. Sent again with the same Idempotency-Key and body while it is the latest change, it returns the current state and changes nothing; the same key with a different body returns 409 idempotency_key_reused.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_update",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}/screenshot": {
      "get": {
        "operationId": "sites.screenshot",
        "summary": "Returns what a site's screen shows now, as `image/png` (or `image/jpeg`): its X display `:1`, whole. Refused 409 `display_not_running` when no display runs. A paused site is resumed first.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`png`, or `jpeg`: smaller and quicker to send, for a model that reads it.",
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "jpeg"
              ],
              "default": "png"
            }
          },
          {
            "name": "quality",
            "in": "query",
            "required": false,
            "description": "A jpeg's quality, 1 to 100.",
            "schema": {
              "type": "integer",
              "default": 80,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_screenshot",
        "x-idempotent": true
      }
    },
    "/v2/sites/{id}:act": {
      "post": {
        "operationId": "sites.act",
        "summary": "Moves, clicks, drags and scrolls the mouse and types on the keyboard of a site's screen (its X display `:1`), each step in turn as one command, and returns where the mouse is then. It stops at the first step that fails, refused 409 `act_failed` naming it; refused 409 `display_not_running` when no display runs. A paused site is resumed first.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The screen once an act's steps ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Acted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_act",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActRequest"
              }
            }
          }
        }
      }
    },
    "/v2/sites/{id}:runCode": {
      "post": {
        "operationId": "sites.runCode",
        "summary": "Runs a cell of Python in a site as a notebook does, in a Jupyter kernel it keeps running for the cell's `context`: variables, imports and functions stay for the next cell. Returns what it printed, its values and displays (text, HTML, images such as charts), and its exception with its traceback. The context's kernel starts on its first cell. A cell past `timeoutSeconds` is interrupted and its context kept. Refused 409 `kernel_not_installed` when the image has no ipykernel. A paused site is resumed first.",
        "tags": [
          "sites"
        ],
        "x-action": "sites:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A cell that ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeRun"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_run_code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunCode"
              }
            }
          }
        }
      }
    },
    "/v2/ci": {
      "post": {
        "operationId": "ci.create",
        "summary": "Creates a CI machine. Asked again with the same Idempotency-Key, it returns the same ci.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "ci.list",
        "summary": "Lists the project's ci, newest first.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:list",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only the ci of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Sandbox.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sandbox"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list",
        "x-idempotent": true
      }
    },
    "/v2/ci/{id}": {
      "get": {
        "operationId": "ci.get",
        "summary": "Returns a CI machine.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "ci.delete",
        "summary": "Deletes a CI machine, its memory and its disk.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_delete"
      }
    },
    "/v2/ci/{id}:pause": {
      "post": {
        "operationId": "ci.pause",
        "summary": "Pauses a CI machine with its memory and disk kept. A call to it resumes it.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_pause"
      }
    },
    "/v2/ci/{id}:resume": {
      "post": {
        "operationId": "ci.resume",
        "summary": "Resumes a paused ci where it was, its memory and processes as they were.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:wake",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resume"
      }
    },
    "/v2/ci/{id}:exec": {
      "post": {
        "operationId": "ci.exec",
        "summary": "Runs a command as a process and returns it once it ended, with its output; with wait false, at once, while it runs. A paused ci is resumed first. Asked again with the same Idempotency-Key, it runs nothing more: it returns the first run's process, waiting for its end while it runs.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "An error: timeout.",
            "x-error-codes": [
              "timeout"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_exec",
        "x-idempotent": true,
        "x-runs": {
          "field": "timeoutSeconds"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecRequest"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/files": {
      "get": {
        "operationId": "ci.read",
        "summary": "Returns a file's bytes.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_read",
        "x-idempotent": true
      },
      "put": {
        "operationId": "ci.write",
        "summary": "Writes the request's bytes to a file as they come, of any size (Content-Length required), its folders made: the file whole when they all came, or as it was. With offset, they are written into it in place.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Its mode, in octal (`644`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Write the bytes into the file in place from this byte, keeping the bytes before and after them (the file is made when there is none); one that fails part way may leave its range written in part, so send it again. Parts of one file may be written so at once and in any order: write them to a new path, then rename it with its size and sha256 to put it in place whole.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "The bytes' SHA-256 in hex: refused 409 `checksum_mismatch`, the file as it was, when they differ. Not with offset.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file written.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write",
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/processes/{process}/output": {
      "get": {
        "operationId": "ci.processOutput",
        "summary": "Returns a process's output after a cursor, and the cursor to read on from. The latest 1 MiB is kept; truncated says when the cursor fell behind.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Output after this byte.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "required": false,
            "description": "Seconds to wait for output past the cursor or its exit, at most 8.",
            "schema": {
              "type": "number",
              "maximum": 8,
              "minimum": 0
            }
          },
          {
            "name": "maxBytes",
            "in": "query",
            "required": false,
            "description": "At most this many bytes.",
            "schema": {
              "type": "integer",
              "default": 65536,
              "minimum": 4096,
              "maximum": 196608
            }
          },
          {
            "name": "follow",
            "in": "query",
            "required": false,
            "description": "Answer as NDJSON events from the cursor until it exits (stdout, stderr, truncated, exit; continue with the cursor to follow on from), as `Accept: application/x-ndjson` does.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process's output after a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessOutput"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_process_output",
        "x-idempotent": true
      }
    },
    "/v2/ci/{id}/processes/{process}:write": {
      "post": {
        "operationId": "ci.writeProcess",
        "summary": "Sends input to a process started with stdinOpen or a pty, and returns how much of its input it has taken.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Input a process took.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_process",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessInput"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/processes/{process}:signal": {
      "post": {
        "operationId": "ci.signalProcess",
        "summary": "Sends a signal to a process and its group; a process that ended is not signalled, so a retry is safe.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_signal_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessSignal"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/processes/{process}:resize": {
      "post": {
        "operationId": "ci.resizeProcess",
        "summary": "Resizes the terminal of a process started with a pty (its window's columns and rows, which the process is told by SIGWINCH), and returns the process; refused 409 for a process without one. A process that ended is left as it is, so a retry is safe.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resize_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Terminal"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/processes": {
      "get": {
        "operationId": "ci.listProcesses",
        "summary": "Lists a CI machine's processes, newest first: those running and those that ended lately.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's processes, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_processes",
        "x-idempotent": true
      }
    },
    "/v2/ci/{id}/files:remove": {
      "post": {
        "operationId": "ci.remove",
        "summary": "Removes a file, a link or a directory (recursive for one with contents). One missing is success, removed false.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRemoved"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_remove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemove"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/files/stat": {
      "get": {
        "operationId": "ci.stat",
        "summary": "Returns what is at a path: a file, a directory or a link, or nothing (exists false). With sha256=true, a file's SHA-256 too.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "Also return a file's SHA-256, read from its bytes: to check a file you put in place (files:rename with sha256) is whole.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A path in a machine: what is there, if anything.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInfo"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_stat",
        "x-idempotent": true
      }
    },
    "/v2/ci/{id}/files/list": {
      "get": {
        "operationId": "ci.listFiles",
        "summary": "Lists a directory's entries in path order, to a depth.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "The directory.",
            "schema": {
              "type": "string",
              "default": "/workspace"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "How deep to list.",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many entries.",
            "schema": {
              "type": "integer",
              "default": 2000,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "hidden",
            "in": "query",
            "required": false,
            "description": "List entries whose names start with a dot.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "glob",
            "in": "query",
            "required": false,
            "description": "Only entries whose path relative to the directory matches: `*` within a name, `**` across folders, `?` one character, `{a,b}` either (`**/*.py`); at most 512 characters, 32 wildcards and 64 texts in braces. The listing then reaches as deep as the glob does (10 folders for `**`) unless depth says, and is searched past its first 2,000 entries, up to 50,000.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "What a directory holds, in path order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_files",
        "x-idempotent": true
      }
    },
    "/v2/ci/{id}/files/archive": {
      "get": {
        "operationId": "ci.downloadFolder",
        "summary": "Returns a folder as a tar archive (`application/x-tar`, or `application/gzip` with gzip), packed by tar in the ci as it streams, of any size; its entries are relative to the folder (`./a.txt`). A folder that fails part way (a file it may not read, or one that changes as it is read) ends as an archive every tar reader refuses, never as a short one that reads whole. At most 4 at once in a CI machine. A paused ci is woken first.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gzip",
            "in": "query",
            "required": false,
            "description": "Compress the archive with gzip.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who packs it: `runtime` or `root`; the ci's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "required": false,
            "description": "Paths in the folder to leave out, relative to it and comma-separated (`node_modules,.cache`): plain names, no wildcards, at most 32.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_download_folder",
        "x-idempotent": true
      },
      "put": {
        "operationId": "ci.uploadFolder",
        "summary": "Unpacks the request's tar archive (gzip-compressed or not, told by its first bytes) into a folder, made with its parents, by tar in the ci as the bytes arrive, of any size, nothing of it kept on disk but what tar writes; returns once tar has ended, or 400 `invalid_archive` with what tar said. A paused ci is woken first.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`: made with its parents.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who unpacks it: `runtime` or `root`; the ci's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_upload_folder",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/files/archive/uploads": {
      "post": {
        "operationId": "ci.beginFolderUpload",
        "summary": "Begins a folder's upload in parts: tar starts in the ci, unpacking into the folder each part as it arrives. Send the parts in order by offset (writeFolderUpload), then commitFolderUpload; an upload no call names for 10 minutes is ended. A paused ci is woken first.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload begun: its parts go to it in order, then its commit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUpload"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_begin_folder_upload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderUploadBegin"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/files/archive/uploads/{upload}": {
      "put": {
        "operationId": "ci.writeFolderUpload",
        "summary": "Sends the request's bytes, a part of the archive at its offset, into tar's input as they arrive, of any size, and returns the bytes received in all once tar took them. A part past them is refused 409 `upload_incomplete`, naming them: send the parts in order.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Where the part starts in the archive: at most the bytes received so far. Bytes before them were taken already and are skipped, so a part sent again is never unpacked twice.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload's part taken.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadReceived"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_folder_upload",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/files/archive/uploads/{upload}:commit": {
      "post": {
        "operationId": "ci.commitFolderUpload",
        "summary": "Ends a folder upload's input and returns once tar has ended, as an exec returns once its command has: the folder, or 400 `invalid_archive` with what tar said. Sent again, it returns how tar ended. An upload no call has named for 10 minutes since its last part or commit is ended.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_commit_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/ci/{id}/files/archive/uploads/{upload}:abort": {
      "post": {
        "operationId": "ci.abortFolderUpload",
        "summary": "Stops a folder upload's tar; what it unpacked so far stays.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload ended unfinished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadAborted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_abort_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/ci/{id}/files:mkdir": {
      "post": {
        "operationId": "ci.mkdir",
        "summary": "Makes a directory, and its parents unless parents is false. One there already is success, created false.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A directory made.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMade"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_mkdir",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMkdir"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/files:rename": {
      "post": {
        "operationId": "ci.rename",
        "summary": "Moves a file, a link or a directory; refused 409 when something is at its new path, unless overwrite. With sha256 or size, a file written in parts is put in place once whole: its writes ended, then only a file of that size with every byte written and whose bytes hash to it moves; refused 409 `upload_incomplete` or `checksum_mismatch`, nothing moved. With sha256, it is safe to send again: once moved, it returns the same answer while `from` is gone and `to` holds those bytes.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRenamed"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_rename",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRename"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/files:link": {
      "post": {
        "operationId": "ci.link",
        "summary": "Makes an expiring address for one file that anyone may open with no API key, from a browser, curl or another service: GET downloads it (Range works, so videos play and downloads resume; archive: true downloads a folder as .tar.gz), PUT with the raw body uploads it (up to maxBytes, written whole; Content-Length required). The link acts as the key that made it: an upload link needs write, and the link ends with its key, with revokeLinks or with its ci. A paused ci is woken for it unless wake is false. A port it serves is shared by a preview (previews.create), not a link.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLink"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileLinkCreate"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/files:revokeLinks": {
      "post": {
        "operationId": "ci.revokeLinks",
        "summary": "Ends every file link made for a CI machine so far; links made after work.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's file links ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLinksRevoked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_revoke_links"
      }
    },
    "/v2/ci/{id}/network": {
      "get": {
        "operationId": "ci.getNetwork",
        "summary": "Returns where a CI machine may connect out.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get_network",
        "x-idempotent": true
      },
      "put": {
        "operationId": "ci.setNetwork",
        "summary": "Replaces where a CI machine may connect out, for its next connection and within a second for its open ones: those the new rules refuse are cut.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:network",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_set_network",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkRules"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/metrics": {
      "get": {
        "operationId": "ci.metrics",
        "summary": "Returns a CI machine's CPU, memory, disks and pressure, as its host reads them from the ci's own cgroup over a fifth of a second: never a call into the ci, so it does not wake a paused one nor keep one from its idle pause. One that is not running has no reading.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "The window: `15m`, `1h`, `6h`, `24h`, `7d` or `30d`.",
            "schema": {
              "type": "string",
              "enum": [
                "15m",
                "1h",
                "6h",
                "24h",
                "7d",
                "30d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxMetrics"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_metrics",
        "x-idempotent": true
      }
    },
    "/v2/ci/{id}:fork": {
      "post": {
        "operationId": "ci.fork",
        "summary": "Copies a CI machine as it is now, memory and disk, into `count` copies of its own, each running on its host. Asked again with the same Idempotency-Key, it returns the same copies.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:fork",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The copies a fork made, each running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_fork",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForkRequest"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}:snapshot": {
      "post": {
        "operationId": "ci.snapshot",
        "summary": "Keeps a CI machine's memory and disk as they are now, a snapshot to start ci from; with `image`, its disk alone as that image's next version. The ci runs on. Asked again with the same Idempotency-Key, it returns the same snapshot.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:snapshot",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_snapshot",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SnapshotRequest"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}:update": {
      "post": {
        "operationId": "ci.update",
        "summary": "Changes its name, labels, idle pause, maxCost, autoWake, lifetime, delete protection, environment or sizes; each field left out stays as it is. A lifetime (`deleteAfterSeconds`) sent again before its end moves the end to that many seconds from now; 0 takes it off. A lifetime is refused (409 `delete_protected`) while `deleteProtection` is true. A running one holds a changed environment before this answers (a paused one's at its wake): each process it starts after the answer has it, and its running processes keep the one they started with. Its vCPUs, memory and disk grow while it runs, its commands running on. One paused or stopped is not woken for it: judged at once as a live resize is (past the vCPUs it was made with 409, over its organization's limits `quota_exceeded`), its new sizes are returned at once, and its next wake grows it to them before the call that woke it runs. A smaller size, or a machine starting or failed, is refused 409 naming why, and nothing is changed. With If-Match, made only while its revision is that one, else 412. Sent again with the same Idempotency-Key and body while it is the latest change, it returns the current state and changes nothing; the same key with a different body returns 409 idempotency_key_reused.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_update",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}/screenshot": {
      "get": {
        "operationId": "ci.screenshot",
        "summary": "Returns what a CI machine's screen shows now, as `image/png` (or `image/jpeg`): its X display `:1`, whole. Refused 409 `display_not_running` when no display runs. A paused ci is resumed first.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`png`, or `jpeg`: smaller and quicker to send, for a model that reads it.",
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "jpeg"
              ],
              "default": "png"
            }
          },
          {
            "name": "quality",
            "in": "query",
            "required": false,
            "description": "A jpeg's quality, 1 to 100.",
            "schema": {
              "type": "integer",
              "default": 80,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_screenshot",
        "x-idempotent": true
      }
    },
    "/v2/ci/{id}:act": {
      "post": {
        "operationId": "ci.act",
        "summary": "Moves, clicks, drags and scrolls the mouse and types on the keyboard of a CI machine's screen (its X display `:1`), each step in turn as one command, and returns where the mouse is then. It stops at the first step that fails, refused 409 `act_failed` naming it; refused 409 `display_not_running` when no display runs. A paused ci is resumed first.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The screen once an act's steps ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Acted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_act",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActRequest"
              }
            }
          }
        }
      }
    },
    "/v2/ci/{id}:runCode": {
      "post": {
        "operationId": "ci.runCode",
        "summary": "Runs a cell of Python in a CI machine as a notebook does, in a Jupyter kernel it keeps running for the cell's `context`: variables, imports and functions stay for the next cell. Returns what it printed, its values and displays (text, HTML, images such as charts), and its exception with its traceback. The context's kernel starts on its first cell. A cell past `timeoutSeconds` is interrupted and its context kept. Refused 409 `kernel_not_installed` when the image has no ipykernel. A paused ci is resumed first.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A cell that ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeRun"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_run_code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunCode"
              }
            }
          }
        }
      }
    },
    "/v2/ci:connect": {
      "post": {
        "operationId": "ci.connect",
        "summary": "Runs a GitHub repository's Actions jobs on Runtime, by a pull request \"Run CI on Runtime\" that changes each `runs-on` line of a GitHub-hosted Linux x64 runner to the Runtime size of its vCPUs, and nothing else, so its own checks run on Runtime. Until Runtime's GitHub App is installed on the repository and connected to this organization, it answers `next`: a page a person opens, then the call is made again. Then it answers `push`, the change as a patch, which the caller's own git commits and pushes as its branch (Runtime's App never writes a workflow); called again, it opens the pull request from that branch. Asked again, it returns the same pull request while it is open. Refused for a public repository: Runtime runs Actions jobs for private repositories only.",
        "tags": [
          "ci"
        ],
        "x-action": "ci:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A repository's connect: where it stands, and once done, its pull request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CiConnection"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_ci_connect",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CiConnect"
              }
            }
          }
        }
      }
    },
    "/v2/browsers": {
      "post": {
        "operationId": "browsers.create",
        "summary": "Creates a browser. Asked again with the same Idempotency-Key, it returns the same browser.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "browsers.list",
        "summary": "Lists the project's browsers, newest first.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:list",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only the browser of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Sandbox.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sandbox"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list",
        "x-idempotent": true
      }
    },
    "/v2/browsers/{id}": {
      "get": {
        "operationId": "browsers.get",
        "summary": "Returns a browser.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "browsers.delete",
        "summary": "Deletes a browser, its memory and its disk.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_delete"
      }
    },
    "/v2/browsers/{id}:pause": {
      "post": {
        "operationId": "browsers.pause",
        "summary": "Pauses a browser with its memory and disk kept. A call to it resumes it.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_pause"
      }
    },
    "/v2/browsers/{id}:resume": {
      "post": {
        "operationId": "browsers.resume",
        "summary": "Resumes a paused browser where it was, its memory and processes as they were.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:wake",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resume"
      }
    },
    "/v2/browsers/{id}:exec": {
      "post": {
        "operationId": "browsers.exec",
        "summary": "Runs a command as a process and returns it once it ended, with its output; with wait false, at once, while it runs. A paused browser is resumed first. Asked again with the same Idempotency-Key, it runs nothing more: it returns the first run's process, waiting for its end while it runs.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "An error: timeout.",
            "x-error-codes": [
              "timeout"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_exec",
        "x-idempotent": true,
        "x-runs": {
          "field": "timeoutSeconds"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecRequest"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/files": {
      "get": {
        "operationId": "browsers.read",
        "summary": "Returns a file's bytes.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_read",
        "x-idempotent": true
      },
      "put": {
        "operationId": "browsers.write",
        "summary": "Writes the request's bytes to a file as they come, of any size (Content-Length required), its folders made: the file whole when they all came, or as it was. With offset, they are written into it in place.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Its mode, in octal (`644`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Write the bytes into the file in place from this byte, keeping the bytes before and after them (the file is made when there is none); one that fails part way may leave its range written in part, so send it again. Parts of one file may be written so at once and in any order: write them to a new path, then rename it with its size and sha256 to put it in place whole.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "The bytes' SHA-256 in hex: refused 409 `checksum_mismatch`, the file as it was, when they differ. Not with offset.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file written.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write",
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/processes/{process}/output": {
      "get": {
        "operationId": "browsers.processOutput",
        "summary": "Returns a process's output after a cursor, and the cursor to read on from. The latest 1 MiB is kept; truncated says when the cursor fell behind.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Output after this byte.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "required": false,
            "description": "Seconds to wait for output past the cursor or its exit, at most 8.",
            "schema": {
              "type": "number",
              "maximum": 8,
              "minimum": 0
            }
          },
          {
            "name": "maxBytes",
            "in": "query",
            "required": false,
            "description": "At most this many bytes.",
            "schema": {
              "type": "integer",
              "default": 65536,
              "minimum": 4096,
              "maximum": 196608
            }
          },
          {
            "name": "follow",
            "in": "query",
            "required": false,
            "description": "Answer as NDJSON events from the cursor until it exits (stdout, stderr, truncated, exit; continue with the cursor to follow on from), as `Accept: application/x-ndjson` does.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process's output after a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessOutput"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_process_output",
        "x-idempotent": true
      }
    },
    "/v2/browsers/{id}/processes/{process}:write": {
      "post": {
        "operationId": "browsers.writeProcess",
        "summary": "Sends input to a process started with stdinOpen or a pty, and returns how much of its input it has taken.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Input a process took.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_process",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessInput"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/processes/{process}:signal": {
      "post": {
        "operationId": "browsers.signalProcess",
        "summary": "Sends a signal to a process and its group; a process that ended is not signalled, so a retry is safe.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_signal_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessSignal"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/processes/{process}:resize": {
      "post": {
        "operationId": "browsers.resizeProcess",
        "summary": "Resizes the terminal of a process started with a pty (its window's columns and rows, which the process is told by SIGWINCH), and returns the process; refused 409 for a process without one. A process that ended is left as it is, so a retry is safe.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resize_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Terminal"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/processes": {
      "get": {
        "operationId": "browsers.listProcesses",
        "summary": "Lists a browser's processes, newest first: those running and those that ended lately.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's processes, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_processes",
        "x-idempotent": true
      }
    },
    "/v2/browsers/{id}/files:remove": {
      "post": {
        "operationId": "browsers.remove",
        "summary": "Removes a file, a link or a directory (recursive for one with contents). One missing is success, removed false.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRemoved"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_remove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemove"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/files/stat": {
      "get": {
        "operationId": "browsers.stat",
        "summary": "Returns what is at a path: a file, a directory or a link, or nothing (exists false). With sha256=true, a file's SHA-256 too.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "Also return a file's SHA-256, read from its bytes: to check a file you put in place (files:rename with sha256) is whole.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A path in a machine: what is there, if anything.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInfo"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_stat",
        "x-idempotent": true
      }
    },
    "/v2/browsers/{id}/files/list": {
      "get": {
        "operationId": "browsers.listFiles",
        "summary": "Lists a directory's entries in path order, to a depth.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "The directory.",
            "schema": {
              "type": "string",
              "default": "/workspace"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "How deep to list.",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many entries.",
            "schema": {
              "type": "integer",
              "default": 2000,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "hidden",
            "in": "query",
            "required": false,
            "description": "List entries whose names start with a dot.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "glob",
            "in": "query",
            "required": false,
            "description": "Only entries whose path relative to the directory matches: `*` within a name, `**` across folders, `?` one character, `{a,b}` either (`**/*.py`); at most 512 characters, 32 wildcards and 64 texts in braces. The listing then reaches as deep as the glob does (10 folders for `**`) unless depth says, and is searched past its first 2,000 entries, up to 50,000.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "What a directory holds, in path order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_files",
        "x-idempotent": true
      }
    },
    "/v2/browsers/{id}/files/archive": {
      "get": {
        "operationId": "browsers.downloadFolder",
        "summary": "Returns a folder as a tar archive (`application/x-tar`, or `application/gzip` with gzip), packed by tar in the browser as it streams, of any size; its entries are relative to the folder (`./a.txt`). A folder that fails part way (a file it may not read, or one that changes as it is read) ends as an archive every tar reader refuses, never as a short one that reads whole. At most 4 at once in a browser. A paused browser is woken first.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gzip",
            "in": "query",
            "required": false,
            "description": "Compress the archive with gzip.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who packs it: `runtime` or `root`; the browser's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "required": false,
            "description": "Paths in the folder to leave out, relative to it and comma-separated (`node_modules,.cache`): plain names, no wildcards, at most 32.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_download_folder",
        "x-idempotent": true
      },
      "put": {
        "operationId": "browsers.uploadFolder",
        "summary": "Unpacks the request's tar archive (gzip-compressed or not, told by its first bytes) into a folder, made with its parents, by tar in the browser as the bytes arrive, of any size, nothing of it kept on disk but what tar writes; returns once tar has ended, or 400 `invalid_archive` with what tar said. A paused browser is woken first.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`: made with its parents.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who unpacks it: `runtime` or `root`; the browser's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_upload_folder",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/files/archive/uploads": {
      "post": {
        "operationId": "browsers.beginFolderUpload",
        "summary": "Begins a folder's upload in parts: tar starts in the browser, unpacking into the folder each part as it arrives. Send the parts in order by offset (writeFolderUpload), then commitFolderUpload; an upload no call names for 10 minutes is ended. A paused browser is woken first.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload begun: its parts go to it in order, then its commit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUpload"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_begin_folder_upload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderUploadBegin"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/files/archive/uploads/{upload}": {
      "put": {
        "operationId": "browsers.writeFolderUpload",
        "summary": "Sends the request's bytes, a part of the archive at its offset, into tar's input as they arrive, of any size, and returns the bytes received in all once tar took them. A part past them is refused 409 `upload_incomplete`, naming them: send the parts in order.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Where the part starts in the archive: at most the bytes received so far. Bytes before them were taken already and are skipped, so a part sent again is never unpacked twice.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload's part taken.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadReceived"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_folder_upload",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/files/archive/uploads/{upload}:commit": {
      "post": {
        "operationId": "browsers.commitFolderUpload",
        "summary": "Ends a folder upload's input and returns once tar has ended, as an exec returns once its command has: the folder, or 400 `invalid_archive` with what tar said. Sent again, it returns how tar ended. An upload no call has named for 10 minutes since its last part or commit is ended.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_commit_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/browsers/{id}/files/archive/uploads/{upload}:abort": {
      "post": {
        "operationId": "browsers.abortFolderUpload",
        "summary": "Stops a folder upload's tar; what it unpacked so far stays.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload ended unfinished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadAborted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_abort_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/browsers/{id}/files:mkdir": {
      "post": {
        "operationId": "browsers.mkdir",
        "summary": "Makes a directory, and its parents unless parents is false. One there already is success, created false.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A directory made.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMade"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_mkdir",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMkdir"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/files:rename": {
      "post": {
        "operationId": "browsers.rename",
        "summary": "Moves a file, a link or a directory; refused 409 when something is at its new path, unless overwrite. With sha256 or size, a file written in parts is put in place once whole: its writes ended, then only a file of that size with every byte written and whose bytes hash to it moves; refused 409 `upload_incomplete` or `checksum_mismatch`, nothing moved. With sha256, it is safe to send again: once moved, it returns the same answer while `from` is gone and `to` holds those bytes.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRenamed"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_rename",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRename"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/files:link": {
      "post": {
        "operationId": "browsers.link",
        "summary": "Makes an expiring address for one file that anyone may open with no API key, from a browser, curl or another service: GET downloads it (Range works, so videos play and downloads resume; archive: true downloads a folder as .tar.gz), PUT with the raw body uploads it (up to maxBytes, written whole; Content-Length required). The link acts as the key that made it: an upload link needs write, and the link ends with its key, with revokeLinks or with its browser. A paused browser is woken for it unless wake is false. A port it serves is shared by a preview (previews.create), not a link.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLink"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileLinkCreate"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/files:revokeLinks": {
      "post": {
        "operationId": "browsers.revokeLinks",
        "summary": "Ends every file link made for a browser so far; links made after work.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's file links ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLinksRevoked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_revoke_links"
      }
    },
    "/v2/browsers/{id}/network": {
      "get": {
        "operationId": "browsers.getNetwork",
        "summary": "Returns where a browser may connect out.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get_network",
        "x-idempotent": true
      },
      "put": {
        "operationId": "browsers.setNetwork",
        "summary": "Replaces where a browser may connect out, for its next connection and within a second for its open ones: those the new rules refuse are cut.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:network",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_set_network",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkRules"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/metrics": {
      "get": {
        "operationId": "browsers.metrics",
        "summary": "Returns a browser's CPU, memory, disks and pressure, as its host reads them from the browser's own cgroup over a fifth of a second: never a call into the browser, so it does not wake a paused one nor keep one from its idle pause. One that is not running has no reading.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "The window: `15m`, `1h`, `6h`, `24h`, `7d` or `30d`.",
            "schema": {
              "type": "string",
              "enum": [
                "15m",
                "1h",
                "6h",
                "24h",
                "7d",
                "30d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxMetrics"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_metrics",
        "x-idempotent": true
      }
    },
    "/v2/browsers/{id}:fork": {
      "post": {
        "operationId": "browsers.fork",
        "summary": "Copies a browser as it is now, memory and disk, into `count` copies of its own, each running on its host. Asked again with the same Idempotency-Key, it returns the same copies.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:fork",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The copies a fork made, each running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_fork",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForkRequest"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}:snapshot": {
      "post": {
        "operationId": "browsers.snapshot",
        "summary": "Keeps a browser's memory and disk as they are now, a snapshot to start browsers from; with `image`, its disk alone as that image's next version. The browser runs on. Asked again with the same Idempotency-Key, it returns the same snapshot.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:snapshot",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_snapshot",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SnapshotRequest"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}:update": {
      "post": {
        "operationId": "browsers.update",
        "summary": "Changes its name, labels, idle pause, maxCost, autoWake, lifetime, delete protection, environment or sizes; each field left out stays as it is. A lifetime (`deleteAfterSeconds`) sent again before its end moves the end to that many seconds from now; 0 takes it off. A lifetime is refused (409 `delete_protected`) while `deleteProtection` is true. A running one holds a changed environment before this answers (a paused one's at its wake): each process it starts after the answer has it, and its running processes keep the one they started with. Its vCPUs, memory and disk grow while it runs, its commands running on. One paused or stopped is not woken for it: judged at once as a live resize is (past the vCPUs it was made with 409, over its organization's limits `quota_exceeded`), its new sizes are returned at once, and its next wake grows it to them before the call that woke it runs. A smaller size, or a machine starting or failed, is refused 409 naming why, and nothing is changed. With If-Match, made only while its revision is that one, else 412. Sent again with the same Idempotency-Key and body while it is the latest change, it returns the current state and changes nothing; the same key with a different body returns 409 idempotency_key_reused.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_update",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}/screenshot": {
      "get": {
        "operationId": "browsers.screenshot",
        "summary": "Returns what a browser's screen shows now, as `image/png` (or `image/jpeg`): its page, read and driven by the browser itself over the Chrome DevTools Protocol, whole. Refused 409 `browser_not_running` when its Chromium does not answer. A paused browser is resumed first.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`png`, or `jpeg`: smaller and quicker to send, for a model that reads it.",
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "jpeg"
              ],
              "default": "png"
            }
          },
          {
            "name": "quality",
            "in": "query",
            "required": false,
            "description": "A jpeg's quality, 1 to 100.",
            "schema": {
              "type": "integer",
              "default": 80,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_screenshot",
        "x-idempotent": true
      }
    },
    "/v2/browsers/{id}:act": {
      "post": {
        "operationId": "browsers.act",
        "summary": "Moves, clicks, drags and scrolls the mouse and types on the keyboard of a browser's screen (its page, read and driven by the browser itself over the Chrome DevTools Protocol), each step in turn as one command, and returns where the mouse is then. It stops at the first step that fails, refused 409 `act_failed` naming it; refused 409 `browser_not_running` when its Chromium does not answer. A paused browser is resumed first.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The screen once an act's steps ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Acted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_act",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActRequest"
              }
            }
          }
        }
      }
    },
    "/v2/browsers/{id}:runCode": {
      "post": {
        "operationId": "browsers.runCode",
        "summary": "Runs a cell of Python in a browser as a notebook does, in a Jupyter kernel it keeps running for the cell's `context`: variables, imports and functions stay for the next cell. Returns what it printed, its values and displays (text, HTML, images such as charts), and its exception with its traceback. The context's kernel starts on its first cell. A cell past `timeoutSeconds` is interrupted and its context kept. Refused 409 `kernel_not_installed` when the image has no ipykernel. A paused browser is resumed first.",
        "tags": [
          "browsers"
        ],
        "x-action": "browsers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A cell that ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeRun"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_run_code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunCode"
              }
            }
          }
        }
      }
    },
    "/v2/desktops": {
      "post": {
        "operationId": "desktops.create",
        "summary": "Creates a desktop. Asked again with the same Idempotency-Key, it returns the same desktop.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "desktops.list",
        "summary": "Lists the project's desktops, newest first.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:list",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only the desktop of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Sandbox.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sandbox"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list",
        "x-idempotent": true
      }
    },
    "/v2/desktops/{id}": {
      "get": {
        "operationId": "desktops.get",
        "summary": "Returns a desktop.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "desktops.delete",
        "summary": "Deletes a desktop, its memory and its disk.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_delete"
      }
    },
    "/v2/desktops/{id}:pause": {
      "post": {
        "operationId": "desktops.pause",
        "summary": "Pauses a desktop with its memory and disk kept. A call to it resumes it.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_pause"
      }
    },
    "/v2/desktops/{id}:resume": {
      "post": {
        "operationId": "desktops.resume",
        "summary": "Resumes a paused desktop where it was, its memory and processes as they were.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:wake",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resume"
      }
    },
    "/v2/desktops/{id}:exec": {
      "post": {
        "operationId": "desktops.exec",
        "summary": "Runs a command as a process and returns it once it ended, with its output; with wait false, at once, while it runs. A paused desktop is resumed first. Asked again with the same Idempotency-Key, it runs nothing more: it returns the first run's process, waiting for its end while it runs.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "An error: timeout.",
            "x-error-codes": [
              "timeout"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_exec",
        "x-idempotent": true,
        "x-runs": {
          "field": "timeoutSeconds"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecRequest"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/files": {
      "get": {
        "operationId": "desktops.read",
        "summary": "Returns a file's bytes.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_read",
        "x-idempotent": true
      },
      "put": {
        "operationId": "desktops.write",
        "summary": "Writes the request's bytes to a file as they come, of any size (Content-Length required), its folders made: the file whole when they all came, or as it was. With offset, they are written into it in place.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Its mode, in octal (`644`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Write the bytes into the file in place from this byte, keeping the bytes before and after them (the file is made when there is none); one that fails part way may leave its range written in part, so send it again. Parts of one file may be written so at once and in any order: write them to a new path, then rename it with its size and sha256 to put it in place whole.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "The bytes' SHA-256 in hex: refused 409 `checksum_mismatch`, the file as it was, when they differ. Not with offset.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file written.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write",
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/processes/{process}/output": {
      "get": {
        "operationId": "desktops.processOutput",
        "summary": "Returns a process's output after a cursor, and the cursor to read on from. The latest 1 MiB is kept; truncated says when the cursor fell behind.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Output after this byte.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "required": false,
            "description": "Seconds to wait for output past the cursor or its exit, at most 8.",
            "schema": {
              "type": "number",
              "maximum": 8,
              "minimum": 0
            }
          },
          {
            "name": "maxBytes",
            "in": "query",
            "required": false,
            "description": "At most this many bytes.",
            "schema": {
              "type": "integer",
              "default": 65536,
              "minimum": 4096,
              "maximum": 196608
            }
          },
          {
            "name": "follow",
            "in": "query",
            "required": false,
            "description": "Answer as NDJSON events from the cursor until it exits (stdout, stderr, truncated, exit; continue with the cursor to follow on from), as `Accept: application/x-ndjson` does.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process's output after a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessOutput"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_process_output",
        "x-idempotent": true
      }
    },
    "/v2/desktops/{id}/processes/{process}:write": {
      "post": {
        "operationId": "desktops.writeProcess",
        "summary": "Sends input to a process started with stdinOpen or a pty, and returns how much of its input it has taken.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Input a process took.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_process",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessInput"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/processes/{process}:signal": {
      "post": {
        "operationId": "desktops.signalProcess",
        "summary": "Sends a signal to a process and its group; a process that ended is not signalled, so a retry is safe.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_signal_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessSignal"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/processes/{process}:resize": {
      "post": {
        "operationId": "desktops.resizeProcess",
        "summary": "Resizes the terminal of a process started with a pty (its window's columns and rows, which the process is told by SIGWINCH), and returns the process; refused 409 for a process without one. A process that ended is left as it is, so a retry is safe.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resize_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Terminal"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/processes": {
      "get": {
        "operationId": "desktops.listProcesses",
        "summary": "Lists a desktop's processes, newest first: those running and those that ended lately.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's processes, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_processes",
        "x-idempotent": true
      }
    },
    "/v2/desktops/{id}/files:remove": {
      "post": {
        "operationId": "desktops.remove",
        "summary": "Removes a file, a link or a directory (recursive for one with contents). One missing is success, removed false.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRemoved"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_remove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemove"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/files/stat": {
      "get": {
        "operationId": "desktops.stat",
        "summary": "Returns what is at a path: a file, a directory or a link, or nothing (exists false). With sha256=true, a file's SHA-256 too.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "Also return a file's SHA-256, read from its bytes: to check a file you put in place (files:rename with sha256) is whole.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A path in a machine: what is there, if anything.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInfo"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_stat",
        "x-idempotent": true
      }
    },
    "/v2/desktops/{id}/files/list": {
      "get": {
        "operationId": "desktops.listFiles",
        "summary": "Lists a directory's entries in path order, to a depth.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "The directory.",
            "schema": {
              "type": "string",
              "default": "/workspace"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "How deep to list.",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many entries.",
            "schema": {
              "type": "integer",
              "default": 2000,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "hidden",
            "in": "query",
            "required": false,
            "description": "List entries whose names start with a dot.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "glob",
            "in": "query",
            "required": false,
            "description": "Only entries whose path relative to the directory matches: `*` within a name, `**` across folders, `?` one character, `{a,b}` either (`**/*.py`); at most 512 characters, 32 wildcards and 64 texts in braces. The listing then reaches as deep as the glob does (10 folders for `**`) unless depth says, and is searched past its first 2,000 entries, up to 50,000.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "What a directory holds, in path order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_files",
        "x-idempotent": true
      }
    },
    "/v2/desktops/{id}/files/archive": {
      "get": {
        "operationId": "desktops.downloadFolder",
        "summary": "Returns a folder as a tar archive (`application/x-tar`, or `application/gzip` with gzip), packed by tar in the desktop as it streams, of any size; its entries are relative to the folder (`./a.txt`). A folder that fails part way (a file it may not read, or one that changes as it is read) ends as an archive every tar reader refuses, never as a short one that reads whole. At most 4 at once in a desktop. A paused desktop is woken first.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gzip",
            "in": "query",
            "required": false,
            "description": "Compress the archive with gzip.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who packs it: `runtime` or `root`; the desktop's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "required": false,
            "description": "Paths in the folder to leave out, relative to it and comma-separated (`node_modules,.cache`): plain names, no wildcards, at most 32.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_download_folder",
        "x-idempotent": true
      },
      "put": {
        "operationId": "desktops.uploadFolder",
        "summary": "Unpacks the request's tar archive (gzip-compressed or not, told by its first bytes) into a folder, made with its parents, by tar in the desktop as the bytes arrive, of any size, nothing of it kept on disk but what tar writes; returns once tar has ended, or 400 `invalid_archive` with what tar said. A paused desktop is woken first.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`: made with its parents.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who unpacks it: `runtime` or `root`; the desktop's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_upload_folder",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/files/archive/uploads": {
      "post": {
        "operationId": "desktops.beginFolderUpload",
        "summary": "Begins a folder's upload in parts: tar starts in the desktop, unpacking into the folder each part as it arrives. Send the parts in order by offset (writeFolderUpload), then commitFolderUpload; an upload no call names for 10 minutes is ended. A paused desktop is woken first.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload begun: its parts go to it in order, then its commit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUpload"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_begin_folder_upload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderUploadBegin"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/files/archive/uploads/{upload}": {
      "put": {
        "operationId": "desktops.writeFolderUpload",
        "summary": "Sends the request's bytes, a part of the archive at its offset, into tar's input as they arrive, of any size, and returns the bytes received in all once tar took them. A part past them is refused 409 `upload_incomplete`, naming them: send the parts in order.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Where the part starts in the archive: at most the bytes received so far. Bytes before them were taken already and are skipped, so a part sent again is never unpacked twice.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload's part taken.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadReceived"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_folder_upload",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/files/archive/uploads/{upload}:commit": {
      "post": {
        "operationId": "desktops.commitFolderUpload",
        "summary": "Ends a folder upload's input and returns once tar has ended, as an exec returns once its command has: the folder, or 400 `invalid_archive` with what tar said. Sent again, it returns how tar ended. An upload no call has named for 10 minutes since its last part or commit is ended.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_commit_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/desktops/{id}/files/archive/uploads/{upload}:abort": {
      "post": {
        "operationId": "desktops.abortFolderUpload",
        "summary": "Stops a folder upload's tar; what it unpacked so far stays.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload ended unfinished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadAborted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_abort_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/desktops/{id}/files:mkdir": {
      "post": {
        "operationId": "desktops.mkdir",
        "summary": "Makes a directory, and its parents unless parents is false. One there already is success, created false.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A directory made.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMade"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_mkdir",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMkdir"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/files:rename": {
      "post": {
        "operationId": "desktops.rename",
        "summary": "Moves a file, a link or a directory; refused 409 when something is at its new path, unless overwrite. With sha256 or size, a file written in parts is put in place once whole: its writes ended, then only a file of that size with every byte written and whose bytes hash to it moves; refused 409 `upload_incomplete` or `checksum_mismatch`, nothing moved. With sha256, it is safe to send again: once moved, it returns the same answer while `from` is gone and `to` holds those bytes.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRenamed"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_rename",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRename"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/files:link": {
      "post": {
        "operationId": "desktops.link",
        "summary": "Makes an expiring address for one file that anyone may open with no API key, from a browser, curl or another service: GET downloads it (Range works, so videos play and downloads resume; archive: true downloads a folder as .tar.gz), PUT with the raw body uploads it (up to maxBytes, written whole; Content-Length required). The link acts as the key that made it: an upload link needs write, and the link ends with its key, with revokeLinks or with its desktop. A paused desktop is woken for it unless wake is false. A port it serves is shared by a preview (previews.create), not a link.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLink"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileLinkCreate"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/files:revokeLinks": {
      "post": {
        "operationId": "desktops.revokeLinks",
        "summary": "Ends every file link made for a desktop so far; links made after work.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's file links ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLinksRevoked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_revoke_links"
      }
    },
    "/v2/desktops/{id}/network": {
      "get": {
        "operationId": "desktops.getNetwork",
        "summary": "Returns where a desktop may connect out.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get_network",
        "x-idempotent": true
      },
      "put": {
        "operationId": "desktops.setNetwork",
        "summary": "Replaces where a desktop may connect out, for its next connection and within a second for its open ones: those the new rules refuse are cut.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:network",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_set_network",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkRules"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/metrics": {
      "get": {
        "operationId": "desktops.metrics",
        "summary": "Returns a desktop's CPU, memory, disks and pressure, as its host reads them from the desktop's own cgroup over a fifth of a second: never a call into the desktop, so it does not wake a paused one nor keep one from its idle pause. One that is not running has no reading.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "The window: `15m`, `1h`, `6h`, `24h`, `7d` or `30d`.",
            "schema": {
              "type": "string",
              "enum": [
                "15m",
                "1h",
                "6h",
                "24h",
                "7d",
                "30d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxMetrics"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_metrics",
        "x-idempotent": true
      }
    },
    "/v2/desktops/{id}:fork": {
      "post": {
        "operationId": "desktops.fork",
        "summary": "Copies a desktop as it is now, memory and disk, into `count` copies of its own, each running on its host. Asked again with the same Idempotency-Key, it returns the same copies.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:fork",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The copies a fork made, each running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_fork",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForkRequest"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}:snapshot": {
      "post": {
        "operationId": "desktops.snapshot",
        "summary": "Keeps a desktop's memory and disk as they are now, a snapshot to start desktops from; with `image`, its disk alone as that image's next version. The desktop runs on. Asked again with the same Idempotency-Key, it returns the same snapshot.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:snapshot",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_snapshot",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SnapshotRequest"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}:update": {
      "post": {
        "operationId": "desktops.update",
        "summary": "Changes its name, labels, idle pause, maxCost, autoWake, lifetime, delete protection, environment or sizes; each field left out stays as it is. A lifetime (`deleteAfterSeconds`) sent again before its end moves the end to that many seconds from now; 0 takes it off. A lifetime is refused (409 `delete_protected`) while `deleteProtection` is true. A running one holds a changed environment before this answers (a paused one's at its wake): each process it starts after the answer has it, and its running processes keep the one they started with. Its vCPUs, memory and disk grow while it runs, its commands running on. One paused or stopped is not woken for it: judged at once as a live resize is (past the vCPUs it was made with 409, over its organization's limits `quota_exceeded`), its new sizes are returned at once, and its next wake grows it to them before the call that woke it runs. A smaller size, or a machine starting or failed, is refused 409 naming why, and nothing is changed. With If-Match, made only while its revision is that one, else 412. Sent again with the same Idempotency-Key and body while it is the latest change, it returns the current state and changes nothing; the same key with a different body returns 409 idempotency_key_reused.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_update",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}/screenshot": {
      "get": {
        "operationId": "desktops.screenshot",
        "summary": "Returns what a desktop's screen shows now, as `image/png` (or `image/jpeg`): its X display `:1`, whole. Refused 409 `display_not_running` when no display runs. A paused desktop is resumed first.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`png`, or `jpeg`: smaller and quicker to send, for a model that reads it.",
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "jpeg"
              ],
              "default": "png"
            }
          },
          {
            "name": "quality",
            "in": "query",
            "required": false,
            "description": "A jpeg's quality, 1 to 100.",
            "schema": {
              "type": "integer",
              "default": 80,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_screenshot",
        "x-idempotent": true
      }
    },
    "/v2/desktops/{id}:act": {
      "post": {
        "operationId": "desktops.act",
        "summary": "Moves, clicks, drags and scrolls the mouse and types on the keyboard of a desktop's screen (its X display `:1`), each step in turn as one command, and returns where the mouse is then. It stops at the first step that fails, refused 409 `act_failed` naming it; refused 409 `display_not_running` when no display runs. A paused desktop is resumed first.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The screen once an act's steps ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Acted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_act",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActRequest"
              }
            }
          }
        }
      }
    },
    "/v2/desktops/{id}:runCode": {
      "post": {
        "operationId": "desktops.runCode",
        "summary": "Runs a cell of Python in a desktop as a notebook does, in a Jupyter kernel it keeps running for the cell's `context`: variables, imports and functions stay for the next cell. Returns what it printed, its values and displays (text, HTML, images such as charts), and its exception with its traceback. The context's kernel starts on its first cell. A cell past `timeoutSeconds` is interrupted and its context kept. Refused 409 `kernel_not_installed` when the image has no ipykernel. A paused desktop is resumed first.",
        "tags": [
          "desktops"
        ],
        "x-action": "desktops:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A cell that ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeRun"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_run_code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunCode"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks": {
      "post": {
        "operationId": "notebooks.create",
        "summary": "Creates a notebook. Asked again with the same Idempotency-Key, it returns the same notebook.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "notebooks.list",
        "summary": "Lists the project's notebooks, newest first.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:list",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only the notebook of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Sandbox.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sandbox"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list",
        "x-idempotent": true
      }
    },
    "/v2/notebooks/{id}": {
      "get": {
        "operationId": "notebooks.get",
        "summary": "Returns a notebook.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "notebooks.delete",
        "summary": "Deletes a notebook, its memory and its disk.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_delete"
      }
    },
    "/v2/notebooks/{id}:pause": {
      "post": {
        "operationId": "notebooks.pause",
        "summary": "Pauses a notebook with its memory and disk kept. A call to it resumes it.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_pause"
      }
    },
    "/v2/notebooks/{id}:resume": {
      "post": {
        "operationId": "notebooks.resume",
        "summary": "Resumes a paused notebook where it was, its memory and processes as they were.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:wake",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resume"
      }
    },
    "/v2/notebooks/{id}:exec": {
      "post": {
        "operationId": "notebooks.exec",
        "summary": "Runs a command as a process and returns it once it ended, with its output; with wait false, at once, while it runs. A paused notebook is resumed first. Asked again with the same Idempotency-Key, it runs nothing more: it returns the first run's process, waiting for its end while it runs.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "An error: timeout.",
            "x-error-codes": [
              "timeout"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_exec",
        "x-idempotent": true,
        "x-runs": {
          "field": "timeoutSeconds"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecRequest"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/files": {
      "get": {
        "operationId": "notebooks.read",
        "summary": "Returns a file's bytes.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_read",
        "x-idempotent": true
      },
      "put": {
        "operationId": "notebooks.write",
        "summary": "Writes the request's bytes to a file as they come, of any size (Content-Length required), its folders made: the file whole when they all came, or as it was. With offset, they are written into it in place.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Its mode, in octal (`644`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Write the bytes into the file in place from this byte, keeping the bytes before and after them (the file is made when there is none); one that fails part way may leave its range written in part, so send it again. Parts of one file may be written so at once and in any order: write them to a new path, then rename it with its size and sha256 to put it in place whole.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "The bytes' SHA-256 in hex: refused 409 `checksum_mismatch`, the file as it was, when they differ. Not with offset.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file written.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write",
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/processes/{process}/output": {
      "get": {
        "operationId": "notebooks.processOutput",
        "summary": "Returns a process's output after a cursor, and the cursor to read on from. The latest 1 MiB is kept; truncated says when the cursor fell behind.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Output after this byte.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "required": false,
            "description": "Seconds to wait for output past the cursor or its exit, at most 8.",
            "schema": {
              "type": "number",
              "maximum": 8,
              "minimum": 0
            }
          },
          {
            "name": "maxBytes",
            "in": "query",
            "required": false,
            "description": "At most this many bytes.",
            "schema": {
              "type": "integer",
              "default": 65536,
              "minimum": 4096,
              "maximum": 196608
            }
          },
          {
            "name": "follow",
            "in": "query",
            "required": false,
            "description": "Answer as NDJSON events from the cursor until it exits (stdout, stderr, truncated, exit; continue with the cursor to follow on from), as `Accept: application/x-ndjson` does.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process's output after a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessOutput"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_process_output",
        "x-idempotent": true
      }
    },
    "/v2/notebooks/{id}/processes/{process}:write": {
      "post": {
        "operationId": "notebooks.writeProcess",
        "summary": "Sends input to a process started with stdinOpen or a pty, and returns how much of its input it has taken.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Input a process took.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_process",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessInput"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/processes/{process}:signal": {
      "post": {
        "operationId": "notebooks.signalProcess",
        "summary": "Sends a signal to a process and its group; a process that ended is not signalled, so a retry is safe.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_signal_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessSignal"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/processes/{process}:resize": {
      "post": {
        "operationId": "notebooks.resizeProcess",
        "summary": "Resizes the terminal of a process started with a pty (its window's columns and rows, which the process is told by SIGWINCH), and returns the process; refused 409 for a process without one. A process that ended is left as it is, so a retry is safe.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resize_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Terminal"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/processes": {
      "get": {
        "operationId": "notebooks.listProcesses",
        "summary": "Lists a notebook's processes, newest first: those running and those that ended lately.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's processes, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_processes",
        "x-idempotent": true
      }
    },
    "/v2/notebooks/{id}/files:remove": {
      "post": {
        "operationId": "notebooks.remove",
        "summary": "Removes a file, a link or a directory (recursive for one with contents). One missing is success, removed false.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRemoved"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_remove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemove"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/files/stat": {
      "get": {
        "operationId": "notebooks.stat",
        "summary": "Returns what is at a path: a file, a directory or a link, or nothing (exists false). With sha256=true, a file's SHA-256 too.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "Also return a file's SHA-256, read from its bytes: to check a file you put in place (files:rename with sha256) is whole.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A path in a machine: what is there, if anything.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInfo"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_stat",
        "x-idempotent": true
      }
    },
    "/v2/notebooks/{id}/files/list": {
      "get": {
        "operationId": "notebooks.listFiles",
        "summary": "Lists a directory's entries in path order, to a depth.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "The directory.",
            "schema": {
              "type": "string",
              "default": "/workspace"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "How deep to list.",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many entries.",
            "schema": {
              "type": "integer",
              "default": 2000,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "hidden",
            "in": "query",
            "required": false,
            "description": "List entries whose names start with a dot.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "glob",
            "in": "query",
            "required": false,
            "description": "Only entries whose path relative to the directory matches: `*` within a name, `**` across folders, `?` one character, `{a,b}` either (`**/*.py`); at most 512 characters, 32 wildcards and 64 texts in braces. The listing then reaches as deep as the glob does (10 folders for `**`) unless depth says, and is searched past its first 2,000 entries, up to 50,000.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "What a directory holds, in path order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_files",
        "x-idempotent": true
      }
    },
    "/v2/notebooks/{id}/files/archive": {
      "get": {
        "operationId": "notebooks.downloadFolder",
        "summary": "Returns a folder as a tar archive (`application/x-tar`, or `application/gzip` with gzip), packed by tar in the notebook as it streams, of any size; its entries are relative to the folder (`./a.txt`). A folder that fails part way (a file it may not read, or one that changes as it is read) ends as an archive every tar reader refuses, never as a short one that reads whole. At most 4 at once in a notebook. A paused notebook is woken first.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gzip",
            "in": "query",
            "required": false,
            "description": "Compress the archive with gzip.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who packs it: `runtime` or `root`; the notebook's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "required": false,
            "description": "Paths in the folder to leave out, relative to it and comma-separated (`node_modules,.cache`): plain names, no wildcards, at most 32.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_download_folder",
        "x-idempotent": true
      },
      "put": {
        "operationId": "notebooks.uploadFolder",
        "summary": "Unpacks the request's tar archive (gzip-compressed or not, told by its first bytes) into a folder, made with its parents, by tar in the notebook as the bytes arrive, of any size, nothing of it kept on disk but what tar writes; returns once tar has ended, or 400 `invalid_archive` with what tar said. A paused notebook is woken first.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`: made with its parents.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who unpacks it: `runtime` or `root`; the notebook's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_upload_folder",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/files/archive/uploads": {
      "post": {
        "operationId": "notebooks.beginFolderUpload",
        "summary": "Begins a folder's upload in parts: tar starts in the notebook, unpacking into the folder each part as it arrives. Send the parts in order by offset (writeFolderUpload), then commitFolderUpload; an upload no call names for 10 minutes is ended. A paused notebook is woken first.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload begun: its parts go to it in order, then its commit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUpload"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_begin_folder_upload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderUploadBegin"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/files/archive/uploads/{upload}": {
      "put": {
        "operationId": "notebooks.writeFolderUpload",
        "summary": "Sends the request's bytes, a part of the archive at its offset, into tar's input as they arrive, of any size, and returns the bytes received in all once tar took them. A part past them is refused 409 `upload_incomplete`, naming them: send the parts in order.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Where the part starts in the archive: at most the bytes received so far. Bytes before them were taken already and are skipped, so a part sent again is never unpacked twice.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload's part taken.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadReceived"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_folder_upload",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/files/archive/uploads/{upload}:commit": {
      "post": {
        "operationId": "notebooks.commitFolderUpload",
        "summary": "Ends a folder upload's input and returns once tar has ended, as an exec returns once its command has: the folder, or 400 `invalid_archive` with what tar said. Sent again, it returns how tar ended. An upload no call has named for 10 minutes since its last part or commit is ended.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_commit_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/notebooks/{id}/files/archive/uploads/{upload}:abort": {
      "post": {
        "operationId": "notebooks.abortFolderUpload",
        "summary": "Stops a folder upload's tar; what it unpacked so far stays.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload ended unfinished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadAborted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_abort_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/notebooks/{id}/files:mkdir": {
      "post": {
        "operationId": "notebooks.mkdir",
        "summary": "Makes a directory, and its parents unless parents is false. One there already is success, created false.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A directory made.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMade"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_mkdir",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMkdir"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/files:rename": {
      "post": {
        "operationId": "notebooks.rename",
        "summary": "Moves a file, a link or a directory; refused 409 when something is at its new path, unless overwrite. With sha256 or size, a file written in parts is put in place once whole: its writes ended, then only a file of that size with every byte written and whose bytes hash to it moves; refused 409 `upload_incomplete` or `checksum_mismatch`, nothing moved. With sha256, it is safe to send again: once moved, it returns the same answer while `from` is gone and `to` holds those bytes.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRenamed"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_rename",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRename"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/files:link": {
      "post": {
        "operationId": "notebooks.link",
        "summary": "Makes an expiring address for one file that anyone may open with no API key, from a browser, curl or another service: GET downloads it (Range works, so videos play and downloads resume; archive: true downloads a folder as .tar.gz), PUT with the raw body uploads it (up to maxBytes, written whole; Content-Length required). The link acts as the key that made it: an upload link needs write, and the link ends with its key, with revokeLinks or with its notebook. A paused notebook is woken for it unless wake is false. A port it serves is shared by a preview (previews.create), not a link.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLink"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileLinkCreate"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/files:revokeLinks": {
      "post": {
        "operationId": "notebooks.revokeLinks",
        "summary": "Ends every file link made for a notebook so far; links made after work.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's file links ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLinksRevoked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_revoke_links"
      }
    },
    "/v2/notebooks/{id}/network": {
      "get": {
        "operationId": "notebooks.getNetwork",
        "summary": "Returns where a notebook may connect out.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get_network",
        "x-idempotent": true
      },
      "put": {
        "operationId": "notebooks.setNetwork",
        "summary": "Replaces where a notebook may connect out, for its next connection and within a second for its open ones: those the new rules refuse are cut.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:network",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_set_network",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkRules"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/metrics": {
      "get": {
        "operationId": "notebooks.metrics",
        "summary": "Returns a notebook's CPU, memory, disks and pressure, as its host reads them from the notebook's own cgroup over a fifth of a second: never a call into the notebook, so it does not wake a paused one nor keep one from its idle pause. One that is not running has no reading.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "The window: `15m`, `1h`, `6h`, `24h`, `7d` or `30d`.",
            "schema": {
              "type": "string",
              "enum": [
                "15m",
                "1h",
                "6h",
                "24h",
                "7d",
                "30d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxMetrics"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_metrics",
        "x-idempotent": true
      }
    },
    "/v2/notebooks/{id}:fork": {
      "post": {
        "operationId": "notebooks.fork",
        "summary": "Copies a notebook as it is now, memory and disk, into `count` copies of its own, each running on its host. Asked again with the same Idempotency-Key, it returns the same copies.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:fork",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The copies a fork made, each running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_fork",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForkRequest"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}:snapshot": {
      "post": {
        "operationId": "notebooks.snapshot",
        "summary": "Keeps a notebook's memory and disk as they are now, a snapshot to start notebooks from; with `image`, its disk alone as that image's next version. The notebook runs on. Asked again with the same Idempotency-Key, it returns the same snapshot.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:snapshot",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_snapshot",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SnapshotRequest"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}:update": {
      "post": {
        "operationId": "notebooks.update",
        "summary": "Changes its name, labels, idle pause, maxCost, autoWake, lifetime, delete protection, environment or sizes; each field left out stays as it is. A lifetime (`deleteAfterSeconds`) sent again before its end moves the end to that many seconds from now; 0 takes it off. A lifetime is refused (409 `delete_protected`) while `deleteProtection` is true. A running one holds a changed environment before this answers (a paused one's at its wake): each process it starts after the answer has it, and its running processes keep the one they started with. Its vCPUs, memory and disk grow while it runs, its commands running on. One paused or stopped is not woken for it: judged at once as a live resize is (past the vCPUs it was made with 409, over its organization's limits `quota_exceeded`), its new sizes are returned at once, and its next wake grows it to them before the call that woke it runs. A smaller size, or a machine starting or failed, is refused 409 naming why, and nothing is changed. With If-Match, made only while its revision is that one, else 412. Sent again with the same Idempotency-Key and body while it is the latest change, it returns the current state and changes nothing; the same key with a different body returns 409 idempotency_key_reused.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_update",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}/screenshot": {
      "get": {
        "operationId": "notebooks.screenshot",
        "summary": "Returns what a notebook's screen shows now, as `image/png` (or `image/jpeg`): its X display `:1`, whole. Refused 409 `display_not_running` when no display runs. A paused notebook is resumed first.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`png`, or `jpeg`: smaller and quicker to send, for a model that reads it.",
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "jpeg"
              ],
              "default": "png"
            }
          },
          {
            "name": "quality",
            "in": "query",
            "required": false,
            "description": "A jpeg's quality, 1 to 100.",
            "schema": {
              "type": "integer",
              "default": 80,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_screenshot",
        "x-idempotent": true
      }
    },
    "/v2/notebooks/{id}:act": {
      "post": {
        "operationId": "notebooks.act",
        "summary": "Moves, clicks, drags and scrolls the mouse and types on the keyboard of a notebook's screen (its X display `:1`), each step in turn as one command, and returns where the mouse is then. It stops at the first step that fails, refused 409 `act_failed` naming it; refused 409 `display_not_running` when no display runs. A paused notebook is resumed first.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The screen once an act's steps ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Acted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_act",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActRequest"
              }
            }
          }
        }
      }
    },
    "/v2/notebooks/{id}:runCode": {
      "post": {
        "operationId": "notebooks.runCode",
        "summary": "Runs a cell of Python in a notebook as a notebook does, in a Jupyter kernel it keeps running for the cell's `context`: variables, imports and functions stay for the next cell. Returns what it printed, its values and displays (text, HTML, images such as charts), and its exception with its traceback. The context's kernel starts on its first cell. A cell past `timeoutSeconds` is interrupted and its context kept. Refused 409 `kernel_not_installed` when the image has no ipykernel. A paused notebook is resumed first.",
        "tags": [
          "notebooks"
        ],
        "x-action": "notebooks:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A cell that ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeRun"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_run_code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunCode"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces": {
      "post": {
        "operationId": "workspaces.create",
        "summary": "Creates a workspace. Asked again with the same Idempotency-Key, it returns the same workspace.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "workspaces.list",
        "summary": "Lists the project's workspaces, newest first.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:list",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only the workspace of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Sandbox.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sandbox"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list",
        "x-idempotent": true
      }
    },
    "/v2/workspaces/{id}": {
      "get": {
        "operationId": "workspaces.get",
        "summary": "Returns a workspace.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "workspaces.delete",
        "summary": "Deletes a workspace, its memory and its disk.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_delete"
      }
    },
    "/v2/workspaces/{id}:pause": {
      "post": {
        "operationId": "workspaces.pause",
        "summary": "Pauses a workspace with its memory and disk kept. A call to it resumes it.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_pause"
      }
    },
    "/v2/workspaces/{id}:resume": {
      "post": {
        "operationId": "workspaces.resume",
        "summary": "Resumes a paused workspace where it was, its memory and processes as they were.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:wake",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resume"
      }
    },
    "/v2/workspaces/{id}:exec": {
      "post": {
        "operationId": "workspaces.exec",
        "summary": "Runs a command as a process and returns it once it ended, with its output; with wait false, at once, while it runs. A paused workspace is resumed first. Asked again with the same Idempotency-Key, it runs nothing more: it returns the first run's process, waiting for its end while it runs.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "An error: timeout.",
            "x-error-codes": [
              "timeout"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_exec",
        "x-idempotent": true,
        "x-runs": {
          "field": "timeoutSeconds"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecRequest"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/files": {
      "get": {
        "operationId": "workspaces.read",
        "summary": "Returns a file's bytes.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_read",
        "x-idempotent": true
      },
      "put": {
        "operationId": "workspaces.write",
        "summary": "Writes the request's bytes to a file as they come, of any size (Content-Length required), its folders made: the file whole when they all came, or as it was. With offset, they are written into it in place.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Its mode, in octal (`644`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Write the bytes into the file in place from this byte, keeping the bytes before and after them (the file is made when there is none); one that fails part way may leave its range written in part, so send it again. Parts of one file may be written so at once and in any order: write them to a new path, then rename it with its size and sha256 to put it in place whole.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "The bytes' SHA-256 in hex: refused 409 `checksum_mismatch`, the file as it was, when they differ. Not with offset.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file written.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write",
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/processes/{process}/output": {
      "get": {
        "operationId": "workspaces.processOutput",
        "summary": "Returns a process's output after a cursor, and the cursor to read on from. The latest 1 MiB is kept; truncated says when the cursor fell behind.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Output after this byte.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "required": false,
            "description": "Seconds to wait for output past the cursor or its exit, at most 8.",
            "schema": {
              "type": "number",
              "maximum": 8,
              "minimum": 0
            }
          },
          {
            "name": "maxBytes",
            "in": "query",
            "required": false,
            "description": "At most this many bytes.",
            "schema": {
              "type": "integer",
              "default": 65536,
              "minimum": 4096,
              "maximum": 196608
            }
          },
          {
            "name": "follow",
            "in": "query",
            "required": false,
            "description": "Answer as NDJSON events from the cursor until it exits (stdout, stderr, truncated, exit; continue with the cursor to follow on from), as `Accept: application/x-ndjson` does.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process's output after a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessOutput"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_process_output",
        "x-idempotent": true
      }
    },
    "/v2/workspaces/{id}/processes/{process}:write": {
      "post": {
        "operationId": "workspaces.writeProcess",
        "summary": "Sends input to a process started with stdinOpen or a pty, and returns how much of its input it has taken.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Input a process took.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_process",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessInput"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/processes/{process}:signal": {
      "post": {
        "operationId": "workspaces.signalProcess",
        "summary": "Sends a signal to a process and its group; a process that ended is not signalled, so a retry is safe.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_signal_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessSignal"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/processes/{process}:resize": {
      "post": {
        "operationId": "workspaces.resizeProcess",
        "summary": "Resizes the terminal of a process started with a pty (its window's columns and rows, which the process is told by SIGWINCH), and returns the process; refused 409 for a process without one. A process that ended is left as it is, so a retry is safe.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resize_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Terminal"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/processes": {
      "get": {
        "operationId": "workspaces.listProcesses",
        "summary": "Lists a workspace's processes, newest first: those running and those that ended lately.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's processes, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_processes",
        "x-idempotent": true
      }
    },
    "/v2/workspaces/{id}/files:remove": {
      "post": {
        "operationId": "workspaces.remove",
        "summary": "Removes a file, a link or a directory (recursive for one with contents). One missing is success, removed false.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRemoved"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_remove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemove"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/files/stat": {
      "get": {
        "operationId": "workspaces.stat",
        "summary": "Returns what is at a path: a file, a directory or a link, or nothing (exists false). With sha256=true, a file's SHA-256 too.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "Also return a file's SHA-256, read from its bytes: to check a file you put in place (files:rename with sha256) is whole.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A path in a machine: what is there, if anything.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInfo"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_stat",
        "x-idempotent": true
      }
    },
    "/v2/workspaces/{id}/files/list": {
      "get": {
        "operationId": "workspaces.listFiles",
        "summary": "Lists a directory's entries in path order, to a depth.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "The directory.",
            "schema": {
              "type": "string",
              "default": "/workspace"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "How deep to list.",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many entries.",
            "schema": {
              "type": "integer",
              "default": 2000,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "hidden",
            "in": "query",
            "required": false,
            "description": "List entries whose names start with a dot.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "glob",
            "in": "query",
            "required": false,
            "description": "Only entries whose path relative to the directory matches: `*` within a name, `**` across folders, `?` one character, `{a,b}` either (`**/*.py`); at most 512 characters, 32 wildcards and 64 texts in braces. The listing then reaches as deep as the glob does (10 folders for `**`) unless depth says, and is searched past its first 2,000 entries, up to 50,000.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "What a directory holds, in path order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_files",
        "x-idempotent": true
      }
    },
    "/v2/workspaces/{id}/files/archive": {
      "get": {
        "operationId": "workspaces.downloadFolder",
        "summary": "Returns a folder as a tar archive (`application/x-tar`, or `application/gzip` with gzip), packed by tar in the workspace as it streams, of any size; its entries are relative to the folder (`./a.txt`). A folder that fails part way (a file it may not read, or one that changes as it is read) ends as an archive every tar reader refuses, never as a short one that reads whole. At most 4 at once in a workspace. A paused workspace is woken first.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gzip",
            "in": "query",
            "required": false,
            "description": "Compress the archive with gzip.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who packs it: `runtime` or `root`; the workspace's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "required": false,
            "description": "Paths in the folder to leave out, relative to it and comma-separated (`node_modules,.cache`): plain names, no wildcards, at most 32.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_download_folder",
        "x-idempotent": true
      },
      "put": {
        "operationId": "workspaces.uploadFolder",
        "summary": "Unpacks the request's tar archive (gzip-compressed or not, told by its first bytes) into a folder, made with its parents, by tar in the workspace as the bytes arrive, of any size, nothing of it kept on disk but what tar writes; returns once tar has ended, or 400 `invalid_archive` with what tar said. A paused workspace is woken first.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`: made with its parents.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who unpacks it: `runtime` or `root`; the workspace's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_upload_folder",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/files/archive/uploads": {
      "post": {
        "operationId": "workspaces.beginFolderUpload",
        "summary": "Begins a folder's upload in parts: tar starts in the workspace, unpacking into the folder each part as it arrives. Send the parts in order by offset (writeFolderUpload), then commitFolderUpload; an upload no call names for 10 minutes is ended. A paused workspace is woken first.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload begun: its parts go to it in order, then its commit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUpload"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_begin_folder_upload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderUploadBegin"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/files/archive/uploads/{upload}": {
      "put": {
        "operationId": "workspaces.writeFolderUpload",
        "summary": "Sends the request's bytes, a part of the archive at its offset, into tar's input as they arrive, of any size, and returns the bytes received in all once tar took them. A part past them is refused 409 `upload_incomplete`, naming them: send the parts in order.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Where the part starts in the archive: at most the bytes received so far. Bytes before them were taken already and are skipped, so a part sent again is never unpacked twice.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload's part taken.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadReceived"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_folder_upload",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/files/archive/uploads/{upload}:commit": {
      "post": {
        "operationId": "workspaces.commitFolderUpload",
        "summary": "Ends a folder upload's input and returns once tar has ended, as an exec returns once its command has: the folder, or 400 `invalid_archive` with what tar said. Sent again, it returns how tar ended. An upload no call has named for 10 minutes since its last part or commit is ended.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_commit_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/workspaces/{id}/files/archive/uploads/{upload}:abort": {
      "post": {
        "operationId": "workspaces.abortFolderUpload",
        "summary": "Stops a folder upload's tar; what it unpacked so far stays.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload ended unfinished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadAborted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_abort_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/workspaces/{id}/files:mkdir": {
      "post": {
        "operationId": "workspaces.mkdir",
        "summary": "Makes a directory, and its parents unless parents is false. One there already is success, created false.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A directory made.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMade"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_mkdir",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMkdir"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/files:rename": {
      "post": {
        "operationId": "workspaces.rename",
        "summary": "Moves a file, a link or a directory; refused 409 when something is at its new path, unless overwrite. With sha256 or size, a file written in parts is put in place once whole: its writes ended, then only a file of that size with every byte written and whose bytes hash to it moves; refused 409 `upload_incomplete` or `checksum_mismatch`, nothing moved. With sha256, it is safe to send again: once moved, it returns the same answer while `from` is gone and `to` holds those bytes.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRenamed"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_rename",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRename"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/files:link": {
      "post": {
        "operationId": "workspaces.link",
        "summary": "Makes an expiring address for one file that anyone may open with no API key, from a browser, curl or another service: GET downloads it (Range works, so videos play and downloads resume; archive: true downloads a folder as .tar.gz), PUT with the raw body uploads it (up to maxBytes, written whole; Content-Length required). The link acts as the key that made it: an upload link needs write, and the link ends with its key, with revokeLinks or with its workspace. A paused workspace is woken for it unless wake is false. A port it serves is shared by a preview (previews.create), not a link.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLink"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileLinkCreate"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/files:revokeLinks": {
      "post": {
        "operationId": "workspaces.revokeLinks",
        "summary": "Ends every file link made for a workspace so far; links made after work.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's file links ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLinksRevoked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_revoke_links"
      }
    },
    "/v2/workspaces/{id}/network": {
      "get": {
        "operationId": "workspaces.getNetwork",
        "summary": "Returns where a workspace may connect out.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get_network",
        "x-idempotent": true
      },
      "put": {
        "operationId": "workspaces.setNetwork",
        "summary": "Replaces where a workspace may connect out, for its next connection and within a second for its open ones: those the new rules refuse are cut.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:network",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_set_network",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkRules"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/metrics": {
      "get": {
        "operationId": "workspaces.metrics",
        "summary": "Returns a workspace's CPU, memory, disks and pressure, as its host reads them from the workspace's own cgroup over a fifth of a second: never a call into the workspace, so it does not wake a paused one nor keep one from its idle pause. One that is not running has no reading.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "The window: `15m`, `1h`, `6h`, `24h`, `7d` or `30d`.",
            "schema": {
              "type": "string",
              "enum": [
                "15m",
                "1h",
                "6h",
                "24h",
                "7d",
                "30d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxMetrics"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_metrics",
        "x-idempotent": true
      }
    },
    "/v2/workspaces/{id}:fork": {
      "post": {
        "operationId": "workspaces.fork",
        "summary": "Copies a workspace as it is now, memory and disk, into `count` copies of its own, each running on its host. Asked again with the same Idempotency-Key, it returns the same copies.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:fork",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The copies a fork made, each running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_fork",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForkRequest"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}:snapshot": {
      "post": {
        "operationId": "workspaces.snapshot",
        "summary": "Keeps a workspace's memory and disk as they are now, a snapshot to start workspaces from; with `image`, its disk alone as that image's next version. The workspace runs on. Asked again with the same Idempotency-Key, it returns the same snapshot.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:snapshot",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_snapshot",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SnapshotRequest"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}:update": {
      "post": {
        "operationId": "workspaces.update",
        "summary": "Changes its name, labels, idle pause, maxCost, autoWake, lifetime, delete protection, environment or sizes; each field left out stays as it is. A lifetime (`deleteAfterSeconds`) sent again before its end moves the end to that many seconds from now; 0 takes it off. A lifetime is refused (409 `delete_protected`) while `deleteProtection` is true. A running one holds a changed environment before this answers (a paused one's at its wake): each process it starts after the answer has it, and its running processes keep the one they started with. Its vCPUs, memory and disk grow while it runs, its commands running on. One paused or stopped is not woken for it: judged at once as a live resize is (past the vCPUs it was made with 409, over its organization's limits `quota_exceeded`), its new sizes are returned at once, and its next wake grows it to them before the call that woke it runs. A smaller size, or a machine starting or failed, is refused 409 naming why, and nothing is changed. With If-Match, made only while its revision is that one, else 412. Sent again with the same Idempotency-Key and body while it is the latest change, it returns the current state and changes nothing; the same key with a different body returns 409 idempotency_key_reused.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_update",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}/screenshot": {
      "get": {
        "operationId": "workspaces.screenshot",
        "summary": "Returns what a workspace's screen shows now, as `image/png` (or `image/jpeg`): its X display `:1`, whole. Refused 409 `display_not_running` when no display runs. A paused workspace is resumed first.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`png`, or `jpeg`: smaller and quicker to send, for a model that reads it.",
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "jpeg"
              ],
              "default": "png"
            }
          },
          {
            "name": "quality",
            "in": "query",
            "required": false,
            "description": "A jpeg's quality, 1 to 100.",
            "schema": {
              "type": "integer",
              "default": 80,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_screenshot",
        "x-idempotent": true
      }
    },
    "/v2/workspaces/{id}:act": {
      "post": {
        "operationId": "workspaces.act",
        "summary": "Moves, clicks, drags and scrolls the mouse and types on the keyboard of a workspace's screen (its X display `:1`), each step in turn as one command, and returns where the mouse is then. It stops at the first step that fails, refused 409 `act_failed` naming it; refused 409 `display_not_running` when no display runs. A paused workspace is resumed first.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The screen once an act's steps ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Acted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_act",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActRequest"
              }
            }
          }
        }
      }
    },
    "/v2/workspaces/{id}:runCode": {
      "post": {
        "operationId": "workspaces.runCode",
        "summary": "Runs a cell of Python in a workspace as a notebook does, in a Jupyter kernel it keeps running for the cell's `context`: variables, imports and functions stay for the next cell. Returns what it printed, its values and displays (text, HTML, images such as charts), and its exception with its traceback. The context's kernel starts on its first cell. A cell past `timeoutSeconds` is interrupted and its context kept. Refused 409 `kernel_not_installed` when the image has no ipykernel. A paused workspace is resumed first.",
        "tags": [
          "workspaces"
        ],
        "x-action": "workspaces:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A cell that ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeRun"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_run_code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunCode"
              }
            }
          }
        }
      }
    },
    "/v2/containers": {
      "post": {
        "operationId": "containers.create",
        "summary": "Creates a container. Asked again with the same Idempotency-Key, it returns the same container.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "containers.list",
        "summary": "Lists the project's containers, newest first.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:list",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only the container of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Sandbox.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sandbox"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list",
        "x-idempotent": true
      }
    },
    "/v2/containers/{id}": {
      "get": {
        "operationId": "containers.get",
        "summary": "Returns a container.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "containers.delete",
        "summary": "Deletes a container, its memory and its disk.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_delete"
      }
    },
    "/v2/containers/{id}:pause": {
      "post": {
        "operationId": "containers.pause",
        "summary": "Pauses a container with its memory and disk kept. A call to it resumes it.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_pause"
      }
    },
    "/v2/containers/{id}:resume": {
      "post": {
        "operationId": "containers.resume",
        "summary": "Resumes a paused container where it was, its memory and processes as they were.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:wake",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resume"
      }
    },
    "/v2/containers/{id}:exec": {
      "post": {
        "operationId": "containers.exec",
        "summary": "Runs a command as a process and returns it once it ended, with its output; with wait false, at once, while it runs. A paused container is resumed first. Asked again with the same Idempotency-Key, it runs nothing more: it returns the first run's process, waiting for its end while it runs.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "An error: timeout.",
            "x-error-codes": [
              "timeout"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_exec",
        "x-idempotent": true,
        "x-runs": {
          "field": "timeoutSeconds"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecRequest"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/files": {
      "get": {
        "operationId": "containers.read",
        "summary": "Returns a file's bytes.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_read",
        "x-idempotent": true
      },
      "put": {
        "operationId": "containers.write",
        "summary": "Writes the request's bytes to a file as they come, of any size (Content-Length required), its folders made: the file whole when they all came, or as it was. With offset, they are written into it in place.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Its mode, in octal (`644`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Write the bytes into the file in place from this byte, keeping the bytes before and after them (the file is made when there is none); one that fails part way may leave its range written in part, so send it again. Parts of one file may be written so at once and in any order: write them to a new path, then rename it with its size and sha256 to put it in place whole.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "The bytes' SHA-256 in hex: refused 409 `checksum_mismatch`, the file as it was, when they differ. Not with offset.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file written.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write",
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/processes/{process}/output": {
      "get": {
        "operationId": "containers.processOutput",
        "summary": "Returns a process's output after a cursor, and the cursor to read on from. The latest 1 MiB is kept; truncated says when the cursor fell behind.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Output after this byte.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "required": false,
            "description": "Seconds to wait for output past the cursor or its exit, at most 8.",
            "schema": {
              "type": "number",
              "maximum": 8,
              "minimum": 0
            }
          },
          {
            "name": "maxBytes",
            "in": "query",
            "required": false,
            "description": "At most this many bytes.",
            "schema": {
              "type": "integer",
              "default": 65536,
              "minimum": 4096,
              "maximum": 196608
            }
          },
          {
            "name": "follow",
            "in": "query",
            "required": false,
            "description": "Answer as NDJSON events from the cursor until it exits (stdout, stderr, truncated, exit; continue with the cursor to follow on from), as `Accept: application/x-ndjson` does.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process's output after a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessOutput"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_process_output",
        "x-idempotent": true
      }
    },
    "/v2/containers/{id}/processes/{process}:write": {
      "post": {
        "operationId": "containers.writeProcess",
        "summary": "Sends input to a process started with stdinOpen or a pty, and returns how much of its input it has taken.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Input a process took.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_process",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessInput"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/processes/{process}:signal": {
      "post": {
        "operationId": "containers.signalProcess",
        "summary": "Sends a signal to a process and its group; a process that ended is not signalled, so a retry is safe.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_signal_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessSignal"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/processes/{process}:resize": {
      "post": {
        "operationId": "containers.resizeProcess",
        "summary": "Resizes the terminal of a process started with a pty (its window's columns and rows, which the process is told by SIGWINCH), and returns the process; refused 409 for a process without one. A process that ended is left as it is, so a retry is safe.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resize_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Terminal"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/processes": {
      "get": {
        "operationId": "containers.listProcesses",
        "summary": "Lists a container's processes, newest first: those running and those that ended lately.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's processes, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_processes",
        "x-idempotent": true
      }
    },
    "/v2/containers/{id}/files:remove": {
      "post": {
        "operationId": "containers.remove",
        "summary": "Removes a file, a link or a directory (recursive for one with contents). One missing is success, removed false.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRemoved"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_remove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemove"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/files/stat": {
      "get": {
        "operationId": "containers.stat",
        "summary": "Returns what is at a path: a file, a directory or a link, or nothing (exists false). With sha256=true, a file's SHA-256 too.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "Also return a file's SHA-256, read from its bytes: to check a file you put in place (files:rename with sha256) is whole.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A path in a machine: what is there, if anything.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInfo"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_stat",
        "x-idempotent": true
      }
    },
    "/v2/containers/{id}/files/list": {
      "get": {
        "operationId": "containers.listFiles",
        "summary": "Lists a directory's entries in path order, to a depth.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "The directory.",
            "schema": {
              "type": "string",
              "default": "/workspace"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "How deep to list.",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many entries.",
            "schema": {
              "type": "integer",
              "default": 2000,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "hidden",
            "in": "query",
            "required": false,
            "description": "List entries whose names start with a dot.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "glob",
            "in": "query",
            "required": false,
            "description": "Only entries whose path relative to the directory matches: `*` within a name, `**` across folders, `?` one character, `{a,b}` either (`**/*.py`); at most 512 characters, 32 wildcards and 64 texts in braces. The listing then reaches as deep as the glob does (10 folders for `**`) unless depth says, and is searched past its first 2,000 entries, up to 50,000.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "What a directory holds, in path order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_files",
        "x-idempotent": true
      }
    },
    "/v2/containers/{id}/files/archive": {
      "get": {
        "operationId": "containers.downloadFolder",
        "summary": "Returns a folder as a tar archive (`application/x-tar`, or `application/gzip` with gzip), packed by tar in the container as it streams, of any size; its entries are relative to the folder (`./a.txt`). A folder that fails part way (a file it may not read, or one that changes as it is read) ends as an archive every tar reader refuses, never as a short one that reads whole. At most 4 at once in a container. A paused container is woken first.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gzip",
            "in": "query",
            "required": false,
            "description": "Compress the archive with gzip.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who packs it: `runtime` or `root`; the container's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "required": false,
            "description": "Paths in the folder to leave out, relative to it and comma-separated (`node_modules,.cache`): plain names, no wildcards, at most 32.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_download_folder",
        "x-idempotent": true
      },
      "put": {
        "operationId": "containers.uploadFolder",
        "summary": "Unpacks the request's tar archive (gzip-compressed or not, told by its first bytes) into a folder, made with its parents, by tar in the container as the bytes arrive, of any size, nothing of it kept on disk but what tar writes; returns once tar has ended, or 400 `invalid_archive` with what tar said. A paused container is woken first.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`: made with its parents.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who unpacks it: `runtime` or `root`; the container's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_upload_folder",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/files/archive/uploads": {
      "post": {
        "operationId": "containers.beginFolderUpload",
        "summary": "Begins a folder's upload in parts: tar starts in the container, unpacking into the folder each part as it arrives. Send the parts in order by offset (writeFolderUpload), then commitFolderUpload; an upload no call names for 10 minutes is ended. A paused container is woken first.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload begun: its parts go to it in order, then its commit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUpload"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_begin_folder_upload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderUploadBegin"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/files/archive/uploads/{upload}": {
      "put": {
        "operationId": "containers.writeFolderUpload",
        "summary": "Sends the request's bytes, a part of the archive at its offset, into tar's input as they arrive, of any size, and returns the bytes received in all once tar took them. A part past them is refused 409 `upload_incomplete`, naming them: send the parts in order.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Where the part starts in the archive: at most the bytes received so far. Bytes before them were taken already and are skipped, so a part sent again is never unpacked twice.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload's part taken.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadReceived"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_folder_upload",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/files/archive/uploads/{upload}:commit": {
      "post": {
        "operationId": "containers.commitFolderUpload",
        "summary": "Ends a folder upload's input and returns once tar has ended, as an exec returns once its command has: the folder, or 400 `invalid_archive` with what tar said. Sent again, it returns how tar ended. An upload no call has named for 10 minutes since its last part or commit is ended.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_commit_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/containers/{id}/files/archive/uploads/{upload}:abort": {
      "post": {
        "operationId": "containers.abortFolderUpload",
        "summary": "Stops a folder upload's tar; what it unpacked so far stays.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload ended unfinished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadAborted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_abort_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/containers/{id}/files:mkdir": {
      "post": {
        "operationId": "containers.mkdir",
        "summary": "Makes a directory, and its parents unless parents is false. One there already is success, created false.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A directory made.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMade"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_mkdir",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMkdir"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/files:rename": {
      "post": {
        "operationId": "containers.rename",
        "summary": "Moves a file, a link or a directory; refused 409 when something is at its new path, unless overwrite. With sha256 or size, a file written in parts is put in place once whole: its writes ended, then only a file of that size with every byte written and whose bytes hash to it moves; refused 409 `upload_incomplete` or `checksum_mismatch`, nothing moved. With sha256, it is safe to send again: once moved, it returns the same answer while `from` is gone and `to` holds those bytes.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRenamed"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_rename",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRename"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/files:link": {
      "post": {
        "operationId": "containers.link",
        "summary": "Makes an expiring address for one file that anyone may open with no API key, from a browser, curl or another service: GET downloads it (Range works, so videos play and downloads resume; archive: true downloads a folder as .tar.gz), PUT with the raw body uploads it (up to maxBytes, written whole; Content-Length required). The link acts as the key that made it: an upload link needs write, and the link ends with its key, with revokeLinks or with its container. A paused container is woken for it unless wake is false. A port it serves is shared by a preview (previews.create), not a link.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLink"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileLinkCreate"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/files:revokeLinks": {
      "post": {
        "operationId": "containers.revokeLinks",
        "summary": "Ends every file link made for a container so far; links made after work.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's file links ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLinksRevoked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_revoke_links"
      }
    },
    "/v2/containers/{id}/network": {
      "get": {
        "operationId": "containers.getNetwork",
        "summary": "Returns where a container may connect out.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get_network",
        "x-idempotent": true
      },
      "put": {
        "operationId": "containers.setNetwork",
        "summary": "Replaces where a container may connect out, for its next connection and within a second for its open ones: those the new rules refuse are cut.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:network",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_set_network",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkRules"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/metrics": {
      "get": {
        "operationId": "containers.metrics",
        "summary": "Returns a container's CPU, memory, disks and pressure, as its host reads them from the container's own cgroup over a fifth of a second: never a call into the container, so it does not wake a paused one nor keep one from its idle pause. One that is not running has no reading.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "The window: `15m`, `1h`, `6h`, `24h`, `7d` or `30d`.",
            "schema": {
              "type": "string",
              "enum": [
                "15m",
                "1h",
                "6h",
                "24h",
                "7d",
                "30d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxMetrics"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_metrics",
        "x-idempotent": true
      }
    },
    "/v2/containers/{id}:fork": {
      "post": {
        "operationId": "containers.fork",
        "summary": "Copies a container as it is now, memory and disk, into `count` copies of its own, each running on its host. Asked again with the same Idempotency-Key, it returns the same copies.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:fork",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The copies a fork made, each running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_fork",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForkRequest"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}:snapshot": {
      "post": {
        "operationId": "containers.snapshot",
        "summary": "Keeps a container's memory and disk as they are now, a snapshot to start containers from; with `image`, its disk alone as that image's next version. The container runs on. Asked again with the same Idempotency-Key, it returns the same snapshot.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:snapshot",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_snapshot",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SnapshotRequest"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}:update": {
      "post": {
        "operationId": "containers.update",
        "summary": "Changes its name, labels, idle pause, maxCost, autoWake, lifetime, delete protection, environment or sizes; each field left out stays as it is. A lifetime (`deleteAfterSeconds`) sent again before its end moves the end to that many seconds from now; 0 takes it off. A lifetime is refused (409 `delete_protected`) while `deleteProtection` is true. A running one holds a changed environment before this answers (a paused one's at its wake): each process it starts after the answer has it, and its running processes keep the one they started with. Its vCPUs, memory and disk grow while it runs, its commands running on. One paused or stopped is not woken for it: judged at once as a live resize is (past the vCPUs it was made with 409, over its organization's limits `quota_exceeded`), its new sizes are returned at once, and its next wake grows it to them before the call that woke it runs. A smaller size, or a machine starting or failed, is refused 409 naming why, and nothing is changed. With If-Match, made only while its revision is that one, else 412. Sent again with the same Idempotency-Key and body while it is the latest change, it returns the current state and changes nothing; the same key with a different body returns 409 idempotency_key_reused.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_update",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}/screenshot": {
      "get": {
        "operationId": "containers.screenshot",
        "summary": "Returns what a container's screen shows now, as `image/png` (or `image/jpeg`): its X display `:1`, whole. Refused 409 `display_not_running` when no display runs. A paused container is resumed first.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`png`, or `jpeg`: smaller and quicker to send, for a model that reads it.",
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "jpeg"
              ],
              "default": "png"
            }
          },
          {
            "name": "quality",
            "in": "query",
            "required": false,
            "description": "A jpeg's quality, 1 to 100.",
            "schema": {
              "type": "integer",
              "default": 80,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_screenshot",
        "x-idempotent": true
      }
    },
    "/v2/containers/{id}:act": {
      "post": {
        "operationId": "containers.act",
        "summary": "Moves, clicks, drags and scrolls the mouse and types on the keyboard of a container's screen (its X display `:1`), each step in turn as one command, and returns where the mouse is then. It stops at the first step that fails, refused 409 `act_failed` naming it; refused 409 `display_not_running` when no display runs. A paused container is resumed first.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The screen once an act's steps ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Acted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_act",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActRequest"
              }
            }
          }
        }
      }
    },
    "/v2/containers/{id}:runCode": {
      "post": {
        "operationId": "containers.runCode",
        "summary": "Runs a cell of Python in a container as a notebook does, in a Jupyter kernel it keeps running for the cell's `context`: variables, imports and functions stay for the next cell. Returns what it printed, its values and displays (text, HTML, images such as charts), and its exception with its traceback. The context's kernel starts on its first cell. A cell past `timeoutSeconds` is interrupted and its context kept. Refused 409 `kernel_not_installed` when the image has no ipykernel. A paused container is resumed first.",
        "tags": [
          "containers"
        ],
        "x-action": "containers:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A cell that ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeRun"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_run_code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunCode"
              }
            }
          }
        }
      }
    },
    "/v2/builds": {
      "post": {
        "operationId": "builds.create",
        "summary": "Creates a build. Asked again with the same Idempotency-Key, it returns the same build.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "builds.list",
        "summary": "Lists the project's builds, newest first.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:list",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only the build of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Sandbox.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sandbox"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list",
        "x-idempotent": true
      }
    },
    "/v2/builds/{id}": {
      "get": {
        "operationId": "builds.get",
        "summary": "Returns a build.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "builds.delete",
        "summary": "Deletes a build, its memory and its disk.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_delete"
      }
    },
    "/v2/builds/{id}:pause": {
      "post": {
        "operationId": "builds.pause",
        "summary": "Pauses a build with its memory and disk kept. A call to it resumes it.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_pause"
      }
    },
    "/v2/builds/{id}:resume": {
      "post": {
        "operationId": "builds.resume",
        "summary": "Resumes a paused build where it was, its memory and processes as they were.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:wake",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resume"
      }
    },
    "/v2/builds/{id}:exec": {
      "post": {
        "operationId": "builds.exec",
        "summary": "Runs a command as a process and returns it once it ended, with its output; with wait false, at once, while it runs. A paused build is resumed first. Asked again with the same Idempotency-Key, it runs nothing more: it returns the first run's process, waiting for its end while it runs.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "An error: timeout.",
            "x-error-codes": [
              "timeout"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_exec",
        "x-idempotent": true,
        "x-runs": {
          "field": "timeoutSeconds"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecRequest"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/files": {
      "get": {
        "operationId": "builds.read",
        "summary": "Returns a file's bytes.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_read",
        "x-idempotent": true
      },
      "put": {
        "operationId": "builds.write",
        "summary": "Writes the request's bytes to a file as they come, of any size (Content-Length required), its folders made: the file whole when they all came, or as it was. With offset, they are written into it in place.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Its mode, in octal (`644`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Write the bytes into the file in place from this byte, keeping the bytes before and after them (the file is made when there is none); one that fails part way may leave its range written in part, so send it again. Parts of one file may be written so at once and in any order: write them to a new path, then rename it with its size and sha256 to put it in place whole.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "The bytes' SHA-256 in hex: refused 409 `checksum_mismatch`, the file as it was, when they differ. Not with offset.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file written.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write",
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/processes/{process}/output": {
      "get": {
        "operationId": "builds.processOutput",
        "summary": "Returns a process's output after a cursor, and the cursor to read on from. The latest 1 MiB is kept; truncated says when the cursor fell behind.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Output after this byte.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "required": false,
            "description": "Seconds to wait for output past the cursor or its exit, at most 8.",
            "schema": {
              "type": "number",
              "maximum": 8,
              "minimum": 0
            }
          },
          {
            "name": "maxBytes",
            "in": "query",
            "required": false,
            "description": "At most this many bytes.",
            "schema": {
              "type": "integer",
              "default": 65536,
              "minimum": 4096,
              "maximum": 196608
            }
          },
          {
            "name": "follow",
            "in": "query",
            "required": false,
            "description": "Answer as NDJSON events from the cursor until it exits (stdout, stderr, truncated, exit; continue with the cursor to follow on from), as `Accept: application/x-ndjson` does.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process's output after a cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessOutput"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/ExecEvent"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_process_output",
        "x-idempotent": true
      }
    },
    "/v2/builds/{id}/processes/{process}:write": {
      "post": {
        "operationId": "builds.writeProcess",
        "summary": "Sends input to a process started with stdinOpen or a pty, and returns how much of its input it has taken.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Input a process took.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessWritten"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_process",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessInput"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/processes/{process}:signal": {
      "post": {
        "operationId": "builds.signalProcess",
        "summary": "Sends a signal to a process and its group; a process that ended is not signalled, so a retry is safe.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_signal_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessSignal"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/processes/{process}:resize": {
      "post": {
        "operationId": "builds.resizeProcess",
        "summary": "Resizes the terminal of a process started with a pty (its window's columns and rows, which the process is told by SIGWINCH), and returns the process; refused 409 for a process without one. A process that ended is left as it is, so a retry is safe.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "process",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Process"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_resize_process",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Terminal"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/processes": {
      "get": {
        "operationId": "builds.listProcesses",
        "summary": "Lists a build's processes, newest first: those running and those that ended lately.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's processes, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_processes",
        "x-idempotent": true
      }
    },
    "/v2/builds/{id}/files:remove": {
      "post": {
        "operationId": "builds.remove",
        "summary": "Removes a file, a link or a directory (recursive for one with contents). One missing is success, removed false.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRemoved"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_remove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemove"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/files/stat": {
      "get": {
        "operationId": "builds.stat",
        "summary": "Returns what is at a path: a file, a directory or a link, or nothing (exists false). With sha256=true, a file's SHA-256 too.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The file's path in the machine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": false,
            "description": "Also return a file's SHA-256, read from its bytes: to check a file you put in place (files:rename with sha256) is whole.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A path in a machine: what is there, if anything.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInfo"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_stat",
        "x-idempotent": true
      }
    },
    "/v2/builds/{id}/files/list": {
      "get": {
        "operationId": "builds.listFiles",
        "summary": "Lists a directory's entries in path order, to a depth.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "The directory.",
            "schema": {
              "type": "string",
              "default": "/workspace"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "description": "How deep to list.",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many entries.",
            "schema": {
              "type": "integer",
              "default": 2000,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "hidden",
            "in": "query",
            "required": false,
            "description": "List entries whose names start with a dot.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "glob",
            "in": "query",
            "required": false,
            "description": "Only entries whose path relative to the directory matches: `*` within a name, `**` across folders, `?` one character, `{a,b}` either (`**/*.py`); at most 512 characters, 32 wildcards and 64 texts in braces. The listing then reaches as deep as the glob does (10 folders for `**`) unless depth says, and is searched past its first 2,000 entries, up to 50,000.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "What a directory holds, in path order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileList"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_list_files",
        "x-idempotent": true
      }
    },
    "/v2/builds/{id}/files/archive": {
      "get": {
        "operationId": "builds.downloadFolder",
        "summary": "Returns a folder as a tar archive (`application/x-tar`, or `application/gzip` with gzip), packed by tar in the build as it streams, of any size; its entries are relative to the folder (`./a.txt`). A folder that fails part way (a file it may not read, or one that changes as it is read) ends as an archive every tar reader refuses, never as a short one that reads whole. At most 4 at once in a build. A paused build is woken first.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gzip",
            "in": "query",
            "required": false,
            "description": "Compress the archive with gzip.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who packs it: `runtime` or `root`; the build's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "required": false,
            "description": "Paths in the folder to leave out, relative to it and comma-separated (`node_modules,.cache`): plain names, no wildcards, at most 32.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_download_folder",
        "x-idempotent": true
      },
      "put": {
        "operationId": "builds.uploadFolder",
        "summary": "Unpacks the request's tar archive (gzip-compressed or not, told by its first bytes) into a folder, made with its parents, by tar in the build as the bytes arrive, of any size, nothing of it kept on disk but what tar writes; returns once tar has ended, or 400 `invalid_archive` with what tar said. A paused build is woken first.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "description": "The folder, absolute, such as `/workspace/app`: made with its parents.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "required": false,
            "description": "Who unpacks it: `runtime` or `root`; the build's `user` when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "runtime",
                "root"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_upload_folder",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/files/archive/uploads": {
      "post": {
        "operationId": "builds.beginFolderUpload",
        "summary": "Begins a folder's upload in parts: tar starts in the build, unpacking into the folder each part as it arrives. Send the parts in order by offset (writeFolderUpload), then commitFolderUpload; an upload no call names for 10 minutes is ended. A paused build is woken first.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload begun: its parts go to it in order, then its commit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUpload"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_begin_folder_upload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderUploadBegin"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/files/archive/uploads/{upload}": {
      "put": {
        "operationId": "builds.writeFolderUpload",
        "summary": "Sends the request's bytes, a part of the archive at its offset, into tar's input as they arrive, of any size, and returns the bytes received in all once tar took them. A part past them is refused 409 `upload_incomplete`, naming them: send the parts in order.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Where the part starts in the archive: at most the bytes received so far. Bytes before them were taken already and are skipped, so a part sent again is never unpacked twice.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload's part taken.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadReceived"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_write_folder_upload",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/files/archive/uploads/{upload}:commit": {
      "post": {
        "operationId": "builds.commitFolderUpload",
        "summary": "Ends a folder upload's input and returns once tar has ended, as an exec returns once its command has: the folder, or 400 `invalid_archive` with what tar said. Sent again, it returns how tar ended. An upload no call has named for 10 minutes since its last part or commit is ended.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder unpacked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUnpacked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_commit_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/builds/{id}/files/archive/uploads/{upload}:abort": {
      "post": {
        "operationId": "builds.abortFolderUpload",
        "summary": "Stops a folder upload's tar; what it unpacked so far stays.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A folder upload ended unfinished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderUploadAborted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_abort_folder_upload",
        "x-idempotent": true
      }
    },
    "/v2/builds/{id}/files:mkdir": {
      "post": {
        "operationId": "builds.mkdir",
        "summary": "Makes a directory, and its parents unless parents is false. One there already is success, created false.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A directory made.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMade"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_mkdir",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMkdir"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/files:rename": {
      "post": {
        "operationId": "builds.rename",
        "summary": "Moves a file, a link or a directory; refused 409 when something is at its new path, unless overwrite. With sha256 or size, a file written in parts is put in place once whole: its writes ended, then only a file of that size with every byte written and whose bytes hash to it moves; refused 409 `upload_incomplete` or `checksum_mismatch`, nothing moved. With sha256, it is safe to send again: once moved, it returns the same answer while `from` is gone and `to` holds those bytes.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file, a link or a directory moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRenamed"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_rename",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRename"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/files:link": {
      "post": {
        "operationId": "builds.link",
        "summary": "Makes an expiring address for one file that anyone may open with no API key, from a browser, curl or another service: GET downloads it (Range works, so videos play and downloads resume; archive: true downloads a folder as .tar.gz), PUT with the raw body uploads it (up to maxBytes, written whole; Content-Length required). The link acts as the key that made it: an upload link needs write, and the link ends with its key, with revokeLinks or with its build. A paused build is woken for it unless wake is false. A port it serves is shared by a preview (previews.create), not a link.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A file link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLink"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileLinkCreate"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/files:revokeLinks": {
      "post": {
        "operationId": "builds.revokeLinks",
        "summary": "Ends every file link made for a build so far; links made after work.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's file links ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLinksRevoked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_revoke_links"
      }
    },
    "/v2/builds/{id}/network": {
      "get": {
        "operationId": "builds.getNetwork",
        "summary": "Returns where a build may connect out.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_get_network",
        "x-idempotent": true
      },
      "put": {
        "operationId": "builds.setNetwork",
        "summary": "Replaces where a build may connect out, for its next connection and within a second for its open ones: those the new rules refuse are cut.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:network",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Where a machine may connect out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxNetwork"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_set_network",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkRules"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/metrics": {
      "get": {
        "operationId": "builds.metrics",
        "summary": "Returns a build's CPU, memory, disks and pressure, as its host reads them from the build's own cgroup over a fifth of a second: never a call into the build, so it does not wake a paused one nor keep one from its idle pause. One that is not running has no reading.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "The window: `15m`, `1h`, `6h`, `24h`, `7d` or `30d`.",
            "schema": {
              "type": "string",
              "enum": [
                "15m",
                "1h",
                "6h",
                "24h",
                "7d",
                "30d"
              ],
              "default": "1h"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine's metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxMetrics"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_metrics",
        "x-idempotent": true
      }
    },
    "/v2/builds/{id}:fork": {
      "post": {
        "operationId": "builds.fork",
        "summary": "Copies a build as it is now, memory and disk, into `count` copies of its own, each running on its host. Asked again with the same Idempotency-Key, it returns the same copies.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:fork",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The copies a fork made, each running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forked"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_fork",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForkRequest"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}:snapshot": {
      "post": {
        "operationId": "builds.snapshot",
        "summary": "Keeps a build's memory and disk as they are now, a snapshot to start builds from; with `image`, its disk alone as that image's next version. The build runs on. Asked again with the same Idempotency-Key, it returns the same snapshot.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:snapshot",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_snapshot",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SnapshotRequest"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}:update": {
      "post": {
        "operationId": "builds.update",
        "summary": "Changes its name, labels, idle pause, maxCost, autoWake, lifetime, delete protection, environment or sizes; each field left out stays as it is. A lifetime (`deleteAfterSeconds`) sent again before its end moves the end to that many seconds from now; 0 takes it off. A lifetime is refused (409 `delete_protected`) while `deleteProtection` is true. A running one holds a changed environment before this answers (a paused one's at its wake): each process it starts after the answer has it, and its running processes keep the one they started with. Its vCPUs, memory and disk grow while it runs, its commands running on. One paused or stopped is not woken for it: judged at once as a live resize is (past the vCPUs it was made with 409, over its organization's limits `quota_exceeded`), its new sizes are returned at once, and its next wake grows it to them before the call that woke it runs. A smaller size, or a machine starting or failed, is refused 409 naming why, and nothing is changed. With If-Match, made only while its revision is that one, else 412. Sent again with the same Idempotency-Key and body while it is the latest change, it returns the current state and changes nothing; the same key with a different body returns 409 idempotency_key_reused.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sandbox"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_update",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}/screenshot": {
      "get": {
        "operationId": "builds.screenshot",
        "summary": "Returns what a build's screen shows now, as `image/png` (or `image/jpeg`): its X display `:1`, whole. Refused 409 `display_not_running` when no display runs. A paused build is resumed first.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`png`, or `jpeg`: smaller and quicker to send, for a model that reads it.",
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "jpeg"
              ],
              "default": "png"
            }
          },
          {
            "name": "quality",
            "in": "query",
            "required": false,
            "description": "A jpeg's quality, 1 to 100.",
            "schema": {
              "type": "integer",
              "default": 80,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Its bytes.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_screenshot",
        "x-idempotent": true
      }
    },
    "/v2/builds/{id}:act": {
      "post": {
        "operationId": "builds.act",
        "summary": "Moves, clicks, drags and scrolls the mouse and types on the keyboard of a build's screen (its X display `:1`), each step in turn as one command, and returns where the mouse is then. It stops at the first step that fails, refused 409 `act_failed` naming it; refused 409 `display_not_running` when no display runs. A paused build is resumed first.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The screen once an act's steps ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Acted"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_act",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActRequest"
              }
            }
          }
        }
      }
    },
    "/v2/builds/{id}:runCode": {
      "post": {
        "operationId": "builds.runCode",
        "summary": "Runs a cell of Python in a build as a notebook does, in a Jupyter kernel it keeps running for the cell's `context`: variables, imports and functions stay for the next cell. Returns what it printed, its values and displays (text, HTML, images such as charts), and its exception with its traceback. The context's kernel starts on its first cell. A cell past `timeoutSeconds` is interrupted and its context kept. Refused 409 `kernel_not_installed` when the image has no ipykernel. A paused build is resumed first.",
        "tags": [
          "builds"
        ],
        "x-action": "builds:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A cell that ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeRun"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_machines_run_code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunCode"
              }
            }
          }
        }
      }
    },
    "/v2/jobs": {
      "post": {
        "operationId": "jobs.create",
        "summary": "Creates a job. Its first run is made at its schedule's first time. Asked again with the same Idempotency-Key, it returns the same job.",
        "tags": [
          "jobs"
        ],
        "x-action": "jobs:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A job.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_jobs_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "jobs.list",
        "summary": "Lists the project's jobs, newest first.",
        "tags": [
          "jobs"
        ],
        "x-action": "jobs:list",
        "parameters": [
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Job.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Job"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_jobs_list",
        "x-idempotent": true
      }
    },
    "/v2/jobs/{id}": {
      "get": {
        "operationId": "jobs.get",
        "summary": "Returns a job.",
        "tags": [
          "jobs"
        ],
        "x-action": "jobs:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A job.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_jobs_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "jobs.delete",
        "summary": "Deletes a job: no run is made from then on, and a run in flight is ended. Its runs' records stay readable for 7 days.",
        "tags": [
          "jobs"
        ],
        "x-action": "jobs:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A job.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_jobs_delete",
        "x-idempotent": true
      }
    },
    "/v2/jobs/{id}:pause": {
      "post": {
        "operationId": "jobs.pause",
        "summary": "Pauses a job: no run is made at its times until it is resumed. A run in flight runs to its end.",
        "tags": [
          "jobs"
        ],
        "x-action": "jobs:pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A job.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_jobs_pause",
        "x-idempotent": true
      }
    },
    "/v2/jobs/{id}:resume": {
      "post": {
        "operationId": "jobs.resume",
        "summary": "Resumes a paused job: its next run is made at its schedule's next time from now.",
        "tags": [
          "jobs"
        ],
        "x-action": "jobs:wake",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A job.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_jobs_resume",
        "x-idempotent": true
      }
    },
    "/v2/jobs/{id}:update": {
      "post": {
        "operationId": "jobs.update",
        "summary": "Changes a job's settings: each one named replaces its own, the rest are kept. Runs made from then on use them; one in flight runs as it was made. A new schedule's next run is at its next time from now.",
        "tags": [
          "jobs"
        ],
        "x-action": "jobs:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A job.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_jobs_update",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobSettings"
              }
            }
          }
        }
      }
    },
    "/v2/jobs/{id}:run": {
      "post": {
        "operationId": "jobs.run",
        "summary": "Makes a run now, beside its schedule; a paused job stays paused. Refused 409 while a run of it is in flight. Asked again with the same Idempotency-Key, it makes nothing more.",
        "tags": [
          "jobs"
        ],
        "x-action": "jobs:exec",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A job.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_jobs_run",
        "x-idempotent": true
      }
    },
    "/v2/job-runs": {
      "get": {
        "operationId": "jobRuns.list",
        "summary": "Lists a job's runs, oldest first unless `order` is `newest`, deleted ones included while their records are kept.",
        "tags": [
          "jobRuns"
        ],
        "x-action": "jobRuns:list",
        "parameters": [
          {
            "name": "job",
            "in": "query",
            "required": true,
            "description": "Its job, by ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "description": "`newest` first, or `oldest` first.",
            "schema": {
              "type": "string",
              "enum": [
                "oldest",
                "newest"
              ],
              "default": "oldest"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of JobRun.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/JobRun"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_job_runs_list",
        "x-idempotent": true
      }
    },
    "/v2/job-runs/{id}": {
      "get": {
        "operationId": "jobRuns.get",
        "summary": "Returns a run.",
        "tags": [
          "jobRuns"
        ],
        "x-action": "jobRuns:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "One run of a job: a machine made at one of its times, deleted when its command ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobRun"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_job_runs_get",
        "x-idempotent": true
      }
    },
    "/v2/job-runs/{id}/output": {
      "get": {
        "operationId": "jobRuns.output",
        "summary": "Returns a run's output after a cursor, stdout and stderr together in the order written, and the cursor to read on from. Its last 256 KiB are kept; truncated says when the cursor fell before them.",
        "tags": [
          "jobRuns"
        ],
        "x-action": "jobRuns:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID, or its name in the project.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Output after this byte.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "maxBytes",
            "in": "query",
            "required": false,
            "description": "At most this many bytes.",
            "schema": {
              "type": "integer",
              "default": 65536,
              "minimum": 1,
              "maximum": 262144
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A run's output, stdout and stderr together in the order written, after a cursor: its last 256 KiB are kept.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobRunOutput"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_job_runs_output",
        "x-idempotent": true
      }
    },
    "/v2/snapshots": {
      "get": {
        "operationId": "snapshots.list",
        "summary": "Lists the project's snapshots, newest first.",
        "tags": [
          "snapshots"
        ],
        "x-action": "snapshots:list",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only those of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "sandbox",
            "in": "query",
            "required": false,
            "description": "Only those taken of this machine, by its ID; a deleted one's snapshots too.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "volume",
            "in": "query",
            "required": false,
            "description": "Only those taken of this volume, by its ID; a deleted one's snapshots too.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Stored.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Stored"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_snapshots_list",
        "x-idempotent": true
      }
    },
    "/v2/snapshots/{id}": {
      "get": {
        "operationId": "snapshots.get",
        "summary": "Returns a snapshot.",
        "tags": [
          "snapshots"
        ],
        "x-action": "snapshots:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_snapshots_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "snapshots.delete",
        "summary": "Deletes a snapshot, its memory and its disk.",
        "tags": [
          "snapshots"
        ],
        "x-action": "snapshots:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_snapshots_delete"
      }
    },
    "/v2/snapshots/{id}:update": {
      "post": {
        "operationId": "snapshots.update",
        "summary": "Changes its lifetime (`deleteAfterSeconds`) or delete protection (`deleteProtection`). A lifetime sent again before its end moves the end to that many seconds from now; 0 takes it off. At its end Runtime deletes it as its delete does: final, and it can't be undone. A lifetime and protection are never set together (409 `delete_protected`). Each field left out stays as it is.",
        "tags": [
          "snapshots"
        ],
        "x-action": "snapshots:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_snapshots_update",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StoredUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/images/{id}": {
      "get": {
        "operationId": "images.get",
        "summary": "Returns an image, by its ID, its name (its newest version) or one of its tags (`name:tag`).",
        "tags": [
          "images"
        ],
        "x-action": "images:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_images_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "images.delete",
        "summary": "Deletes an image version. Machines already started from it keep running. One an App boots from is refused with image_in_use (409) naming the App.",
        "tags": [
          "images"
        ],
        "x-action": "images:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_images_delete"
      }
    },
    "/v2/images": {
      "get": {
        "operationId": "images.list",
        "summary": "Lists the project's images, newest first.",
        "tags": [
          "images"
        ],
        "x-action": "images:list",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only those of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Stored.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Stored"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_images_list",
        "x-idempotent": true
      },
      "post": {
        "operationId": "images.create",
        "summary": "Builds an image from an OCI image or a Dockerfile on a machine of its own, and returns it at once, `making`: `ready` once built, else `failed` with `error`. Each build of a name is its next version. Asked again with the same Idempotency-Key, it returns the same one.",
        "tags": [
          "images"
        ],
        "x-action": "images:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_images_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageCreate"
              }
            }
          }
        }
      }
    },
    "/v2/images/context:missing": {
      "post": {
        "operationId": "images.missing",
        "summary": "Returns which chunks of a build context still need uploading. The chunks it holds count as used, so they are kept for the build that names them: a chunk is kept 24 hours after its last use, and an organization's build context holds at most 200 MiB.",
        "tags": [
          "images"
        ],
        "x-action": "images:write",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Which chunks of a build's context still need uploading.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextMissing"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_images_missing",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContextAsked"
              }
            }
          }
        }
      }
    },
    "/v2/images/context/{digest}": {
      "put": {
        "operationId": "images.put",
        "summary": "Uploads one chunk of a build context: the request's bytes, 1 byte to 1 MiB, named by their SHA-256. Asked again, it stores nothing more.",
        "tags": [
          "images"
        ],
        "x-action": "images:write",
        "parameters": [
          {
            "name": "digest",
            "in": "path",
            "required": true,
            "description": "Its digest.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "An error: too_large.",
            "x-error-codes": [
              "too_large"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A chunk of a build's context, uploaded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChunkStored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_images_put",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v2/images/{id}/logs": {
      "get": {
        "operationId": "images.logs",
        "summary": "Returns an image's build log after a line, as the build writes it and once it has ended.",
        "tags": [
          "images"
        ],
        "x-action": "images:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Lines after this one.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many lines.",
            "schema": {
              "type": "integer",
              "default": 1000,
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "follow",
            "in": "query",
            "required": false,
            "description": "Answer as NDJSON events until the build ends: `line` for each, then `done` with the image, or `continue` with the `after` to follow on from; as `Accept: application/x-ndjson` does.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "An image's build log after a line.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageLogs"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_images_logs",
        "x-idempotent": true
      }
    },
    "/v2/images/{id}:update": {
      "post": {
        "operationId": "images.update",
        "summary": "Changes its lifetime (`deleteAfterSeconds`) or delete protection (`deleteProtection`). A lifetime sent again before its end moves the end to that many seconds from now; 0 takes it off. At its end Runtime deletes it as its delete does: final, and it can't be undone. A lifetime and protection are never set together (409 `delete_protected`). Each field left out stays as it is.",
        "tags": [
          "images"
        ],
        "x-action": "images:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_images_update",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StoredUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/volumes": {
      "post": {
        "operationId": "volumes.create",
        "summary": "Creates an empty volume. Asked again with the same Idempotency-Key, it returns the same one.",
        "tags": [
          "volumes"
        ],
        "x-action": "volumes:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_volumes_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VolumeCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "volumes.list",
        "summary": "Lists the project's volumes, newest first.",
        "tags": [
          "volumes"
        ],
        "x-action": "volumes:list",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only those of this name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Only those in these states, comma-separated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "description": "Only those with every label given (repeat it for several): key:value, or a key for any value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Stored.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Stored"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_volumes_list",
        "x-idempotent": true
      }
    },
    "/v2/volumes/{id}": {
      "get": {
        "operationId": "volumes.get",
        "summary": "Returns a volume.",
        "tags": [
          "volumes"
        ],
        "x-action": "volumes:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_volumes_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "volumes.delete",
        "summary": "Deletes a volume and what it holds. One attached to a machine is refused: delete the machine first. Its snapshots are kept until each is deleted.",
        "tags": [
          "volumes"
        ],
        "x-action": "volumes:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_volumes_delete"
      }
    },
    "/v2/volumes/{id}:snapshot": {
      "post": {
        "operationId": "volumes.snapshot",
        "summary": "Keeps the volume's disk as it is now, a snapshot to restore as a new volume (`from`); one attached to a running machine is taken as it runs, consistent as after a power cut. It returns the snapshot at once, `making` until its copy is off-site, then `ready`. One never attached holds nothing to keep (409). Asked again with the same Idempotency-Key, it returns the same snapshot.",
        "tags": [
          "volumes"
        ],
        "x-action": "volumes:create",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_volumes_snapshot",
        "x-idempotent": true
      }
    },
    "/v2/volumes/{id}:update": {
      "post": {
        "operationId": "volumes.update",
        "summary": "Changes its lifetime (`deleteAfterSeconds`), delete protection (`deleteProtection`) or snapshot schedule (`snapshotSchedule`). A lifetime sent again before its end moves the end to that many seconds from now; 0 takes it off. At its end Runtime deletes it as its delete does: final, and it can't be undone. A lifetime and protection are never set together (409 `delete_protected`). A schedule sent replaces the one it has, its first snapshot `everySeconds` from now; `everySeconds` 0 turns it off, and the snapshots it made are kept. Each field left out stays as it is.",
        "tags": [
          "volumes"
        ],
        "x-action": "volumes:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Stored data: a snapshot, an image or a volume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stored"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_volumes_update",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VolumeUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/sessions": {
      "post": {
        "operationId": "sessions.create",
        "summary": "Makes a session for one machine the caller reaches and returns its token this once. The token reads the machine, runs its commands and processes, reads and writes its files and signs its previews' links, and nothing else; it acts as the caller, lives `expiresInSeconds` (an hour unless asked, a day at most), never past the caller's key, and ends when that key is revoked. The API answers CORS for its calls, so a web page can make them. Sent again with the same Idempotency-Key and body, it makes none and returns 409 `conflict` with the session it made in `details.made`, without its token; with another body, 409 `idempotency_key_reused`.",
        "tags": [
          "sessions"
        ],
        "x-action": "sessions:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A session just made, with its token: shown this once, never again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionCreated"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_sessions_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionCreate"
              }
            }
          }
        }
      }
    },
    "/v2/sessions/{id}": {
      "delete": {
        "operationId": "sessions.delete",
        "summary": "Ends a session now: its next call is refused. Its maker ends its own; an owner or an admin, any of the organization's. Ended already, it returns 404.",
        "tags": [
          "sessions"
        ],
        "x-action": "sessions:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A session: a token for one machine, for a frontend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_sessions_delete",
        "x-idempotent": true
      }
    },
    "/v2/keys": {
      "get": {
        "operationId": "keys.list",
        "summary": "Lists the organization's live keys, newest first, without their secrets: every key for an owner or an admin, the caller's own otherwise.",
        "tags": [
          "keys"
        ],
        "x-action": "keys:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Key"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_keys_list",
        "x-idempotent": true
      },
      "post": {
        "operationId": "keys.create",
        "summary": "Makes a key that acts as the caller, or as one of the organization's agents for the caller, and returns its secret this once. With `userCode` or `authorization`, the key goes to the device or OAuth client that asked for it instead, which collects it once from `/v2/oauth/token`. A key made with a key works until its own end, never past that key's: it lives on when that key is revoked, so a key is rotated by making its next with it.",
        "tags": [
          "keys"
        ],
        "x-action": "keys:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A key just made, with its secret: shown this once, never again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyCreated"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_keys_create",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KeyCreate"
              }
            }
          }
        }
      }
    },
    "/v2/keys/{id}:assume": {
      "post": {
        "operationId": "keys.assume",
        "summary": "Makes a key for one GitHub Actions job from a key whose `github` admits it, and returns its secret this once. The job's OpenID Connect token, asked for with audience `withruntime.com` (`permissions: id-token: write`), is the call's bearer token: no API key is sent. The new key acts as the trusted key does, with its project and actions, makes no keys, and works for an hour; what it spends counts toward the trusted key's spendCap.",
        "tags": [
          "keys"
        ],
        "x-action": "keys:assume",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A key just made, with its secret: shown this once, never again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyCreated"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_keys_assume"
      }
    },
    "/v2/keys/{id}:update": {
      "post": {
        "operationId": "keys.update",
        "summary": "Renames a key, or sets or removes its caps (`maxCost`, `spendCap`); its secret stays as it is. A cap is never set above that of a key it was made with, nor above the caller's own key's, so a key never raises its own caps. An owner or an admin changes any key of the organization; everyone else, their own.",
        "tags": [
          "keys"
        ],
        "x-action": "keys:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "An API key, without its secret.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Key"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_keys_update",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KeyUpdate"
              }
            }
          }
        }
      }
    },
    "/v2/keys/{id}": {
      "delete": {
        "operationId": "keys.delete",
        "summary": "Revokes a key: refused from its next call, with the hand-off tokens made from it; a key made with it works on. An owner or an admin revokes any key of the organization; everyone else, their own. Revoked again, it returns 404.",
        "tags": [
          "keys"
        ],
        "x-action": "keys:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "An API key, without its secret.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Key"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_keys_delete",
        "x-idempotent": true
      }
    },
    "/v2/projects": {
      "get": {
        "operationId": "projects.list",
        "summary": "Lists the organization's projects, the default first, then by name.",
        "tags": [
          "projects"
        ],
        "x-action": "projects:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Project.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Project"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_projects_list",
        "x-idempotent": true
      },
      "post": {
        "operationId": "projects.create",
        "summary": "Creates a project, with its own limits when given. A name another project has returns 409; a limit above its organization's returns 400 `limit_above_org`. Asked again with the same Idempotency-Key, it returns the same one.",
        "tags": [
          "projects"
        ],
        "x-action": "projects:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A project: where machines, storage, addresses and keys sit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_projects_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectCreate"
              }
            }
          }
        }
      }
    },
    "/v2/projects/{id}": {
      "get": {
        "operationId": "projects.get",
        "summary": "Returns one by its ID. Another organization's, one deleted, or one past the key's reach returns 404.",
        "tags": [
          "projects"
        ],
        "x-action": "projects:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A project: where machines, storage, addresses and keys sit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_projects_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "projects.delete",
        "summary": "Deletes a project and frees its name, with the grants, keys and invitations held to it. The caller needs `grants:delete` as well, as the grants go with it. The default project, or one that still holds a machine, storage or an address, returns 409. Deleted again, it returns 404.",
        "tags": [
          "projects"
        ],
        "x-action": "projects:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A project: where machines, storage, addresses and keys sit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_projects_delete",
        "x-idempotent": true
      }
    },
    "/v2/projects/{id}:limits": {
      "post": {
        "operationId": "projects.limits",
        "summary": "Sets a project's own limits: each of its organization's plan limits set lower for it alone, by the price card's names. The whole set: a limit left out is its organization's again. One above its organization's returns 400 `limit_above_org`, naming the limit and both figures. Each start in the project is held to its limits and its organization's.",
        "tags": [
          "projects"
        ],
        "x-action": "projects:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A project: where machines, storage, addresses and keys sit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_projects_limits",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectLimitsSet"
              }
            }
          }
        }
      }
    },
    "/v2/projects/{id}:update": {
      "post": {
        "operationId": "projects.update",
        "summary": "Renames a project; what is in it stays as it is. A name another project has returns 409.",
        "tags": [
          "projects"
        ],
        "x-action": "projects:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A project: where machines, storage, addresses and keys sit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_projects_update",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Rename"
              }
            }
          }
        }
      }
    },
    "/v2/identities": {
      "get": {
        "operationId": "identities.list",
        "summary": "Lists the organization's agents and CI pipelines, by name.",
        "tags": [
          "identities"
        ],
        "x-action": "identities:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Identity.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Identity"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_identities_list",
        "x-idempotent": true
      }
    },
    "/v2/identities/{id}": {
      "get": {
        "operationId": "identities.get",
        "summary": "Returns one by its ID. Another organization's, one deleted, or one past the key's reach returns 404.",
        "tags": [
          "identities"
        ],
        "x-action": "identities:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "An agent or CI pipeline: who a key acts as, besides a person.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Identity"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_identities_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "identities.delete",
        "summary": "Deletes an agent or CI pipeline and frees its name, with its grants and keys: refused from their next call. The caller needs `grants:delete` as well, as the grants go with it. What it made stays. Deleted again, it returns 404.",
        "tags": [
          "identities"
        ],
        "x-action": "identities:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "An agent or CI pipeline: who a key acts as, besides a person.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Identity"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_identities_delete",
        "x-idempotent": true
      }
    },
    "/v2/identities/{id}:update": {
      "post": {
        "operationId": "identities.update",
        "summary": "Renames an agent or CI pipeline; its keys and grants stay as they are. A name another of its kind has returns 409.",
        "tags": [
          "identities"
        ],
        "x-action": "identities:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "An agent or CI pipeline: who a key acts as, besides a person.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Identity"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_identities_update",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Rename"
              }
            }
          }
        }
      }
    },
    "/v2/roles": {
      "get": {
        "operationId": "roles.list",
        "summary": "Lists the organization's own roles, by name.",
        "tags": [
          "roles"
        ],
        "x-action": "roles:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Role.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Role"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_roles_list",
        "x-idempotent": true
      }
    },
    "/v2/roles/{id}": {
      "get": {
        "operationId": "roles.get",
        "summary": "Returns one by its ID. Another organization's, one deleted, or one past the key's reach returns 404.",
        "tags": [
          "roles"
        ],
        "x-action": "roles:get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "One of the organization's own roles: the actions a grant of it allows.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_roles_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "roles.delete",
        "summary": "Deletes a role and frees its name, with the grants and invitations that give it. The caller needs `grants:delete` as well, as the grants go with it. A role that a deny grant gives returns 409: a deny is lifted only by deleting that grant. Deleted again, it returns 404.",
        "tags": [
          "roles"
        ],
        "x-action": "roles:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "One of the organization's own roles: the actions a grant of it allows.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_roles_delete",
        "x-idempotent": true
      }
    },
    "/v2/roles/{id}:actions": {
      "post": {
        "operationId": "roles.actions",
        "summary": "Adds actions to a role and removes actions from it, in place, and returns the role. Every key and grant that gives the role has the new actions from its next call; no key's secret changes. Only an owner or an admin may change a role's actions, and only to add actions the caller may perform itself across the whole organization: any other caller or action returns 403. An action no call has returns 400. A role Runtime manages (its name starts with `runtime.`) returns 409, as does a removal from a role that a deny grant gives (a deny is lifted only by deleting that grant; an addition is allowed), a removal that would leave the role with no actions, or one that removes an action the role still holds through a wildcard such as `images:*`. Adding an action the role already holds, or removing one it does not hold, changes nothing, so the call is safe to retry. Each change is one audit log entry, `roles:actions`, whose reason lists the actions added and removed.",
        "tags": [
          "roles"
        ],
        "x-action": "roles:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "One of the organization's own roles: the actions a grant of it allows.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_roles_actions",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleActionsChange"
              }
            }
          }
        }
      }
    },
    "/v2/roles/{id}:update": {
      "post": {
        "operationId": "roles.update",
        "summary": "Renames a role; its actions and its grants stay as they are. A built-in role's name, or another role's, returns 409.",
        "tags": [
          "roles"
        ],
        "x-action": "roles:update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "One of the organization's own roles: the actions a grant of it allows.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_roles_update",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Rename"
              }
            }
          }
        }
      }
    },
    "/v2/audit": {
      "get": {
        "operationId": "audit.list",
        "summary": "Lists the organization's audit log, newest first, paginated: each write and each refused call, over the days the plan keeps (365 on Scale). On other plans it returns 403.",
        "tags": [
          "audit"
        ],
        "x-action": "audit:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "action",
            "in": "query",
            "required": false,
            "description": "Only lines of this action (`keys:create`), or of every action of a product (`keys:`).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of AuditLine.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AuditLine"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_audit_list",
        "x-idempotent": true
      }
    },
    "/v2/me": {
      "get": {
        "operationId": "me.get",
        "summary": "Returns who the key is: the agent it acts as, its organization, plan, project and the role that admits it.",
        "tags": [
          "me"
        ],
        "x-action": "me:get",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Who is calling: the key, the agent it is, the org it acts for, and what admits it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_me_get",
        "x-idempotent": true
      }
    },
    "/v2/usage": {
      "get": {
        "operationId": "usage.get",
        "summary": "Returns the organization's credit and charges (everything credited and spent, what is left, and this month's use and charges by meter), its plan, and every limit it is held to with what it uses of each now; with key, that key's spend.",
        "tags": [
          "usage"
        ],
        "x-action": "usage:get",
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "required": false,
            "description": "One key's spend too, by its ID: a key the caller may see (its own holder's, or any for an owner or admin); any other is 404.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "by",
            "in": "query",
            "required": false,
            "description": "Splits too (repeat it for both): `hour`, what each product used each hour (`hours`); `key`, what each key used this month (`keys`).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "meter",
            "in": "query",
            "required": false,
            "description": "With `by=hour`, only this meter's use (`traffic-out`, `cpu`, ...): each hour by what used it, with its `quantity`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "With `by=hour`, only the hours from this one on (UTC, RFC 3339), never before the month began or 7 days ago, whichever is earlier.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "What the org has used and has left, at the card's prices.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Usage"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_usage_get",
        "x-idempotent": true
      }
    },
    "/v2/usage/export": {
      "get": {
        "operationId": "usage.export",
        "summary": "Returns the organization's measured usage in a time range, of every resource or only those named: each meter of each machine's, disk's or address's hour, what it used and its price at the card, oldest first, paginated. Each line settles at its hour's end and is final once finalThrough reaches it, so closed hours can be read while resources run.",
        "tags": [
          "usage"
        ],
        "x-action": "usage:list",
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": true,
            "description": "The range's first moment, inclusive (UTC, RFC 3339).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": true,
            "description": "The range's end, exclusive (UTC, RFC 3339).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "by",
            "in": "query",
            "required": false,
            "description": "What the range selects lines by: `hour`, each line's hour's start, or `settled`, its settledAt (its hour's end), of hours that have ended. Ranges by `settled`, each from the last one's end to no later than `finalThrough`, read every line once, final.",
            "schema": {
              "type": "string",
              "default": "hour"
            }
          },
          {
            "name": "resourceId",
            "in": "query",
            "required": false,
            "description": "Only the usage of these resources (repeat it for several, up to 100): each line's `resourceId`, such as a machine's ID.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many machine-hours.",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 500
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "The organization's measured usage in a time range, oldest hour first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageExport"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_usage_export",
        "x-idempotent": true
      }
    },
    "/v2/sandboxes/{id}/previews": {
      "post": {
        "operationId": "previews.create",
        "summary": "Shares a port of a machine at an HTTPS address and returns its url and, for a private one, a token; or changes its visibility and sites when it is shared. Asked again, the same preview.",
        "tags": [
          "previews"
        ],
        "x-action": "previews:create",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A preview.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Preview"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_previews_create",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreviewCreate"
              }
            }
          }
        }
      }
    },
    "/v2/previews": {
      "get": {
        "operationId": "previews.list",
        "summary": "Lists a machine's previews, lowest port first.",
        "tags": [
          "previews"
        ],
        "x-action": "previews:list",
        "parameters": [
          {
            "name": "sandboxId",
            "in": "query",
            "required": true,
            "description": "The machine whose previews to list.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Preview.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Preview"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_previews_list",
        "x-idempotent": true
      }
    },
    "/v2/previews/{name}": {
      "get": {
        "operationId": "previews.get",
        "summary": "Returns a preview; `sign` returns one with a token.",
        "tags": [
          "previews"
        ],
        "x-action": "previews:get",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "description": "Its ID or its host name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A preview.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Preview"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_previews_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "previews.delete",
        "summary": "Stops sharing a port.",
        "tags": [
          "previews"
        ],
        "x-action": "previews:delete",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "description": "Its ID or its host name.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A preview.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Preview"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_previews_delete"
      }
    },
    "/v2/previews/{name}:sign": {
      "post": {
        "operationId": "previews.sign",
        "summary": "Returns a private preview with a new token; tokens signed before keep their own expiry.",
        "tags": [
          "previews"
        ],
        "x-action": "previews:sign",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "description": "Its ID or its host name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ttlSeconds",
            "in": "query",
            "required": false,
            "description": "The token's lifetime in seconds, from 60 until the calling key's own end (a year at most); a day when omitted, or the key's end when that is sooner.",
            "schema": {
              "type": "integer",
              "default": 86400,
              "minimum": 60,
              "maximum": 31536000
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A preview.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Preview"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_previews_sign"
      }
    },
    "/v2/previews/{name}:rotate": {
      "post": {
        "operationId": "previews.rotate",
        "summary": "Refuses every token signed for a preview so far, and returns a new one.",
        "tags": [
          "previews"
        ],
        "x-action": "previews:create",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "description": "Its ID or its host name.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A preview.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Preview"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_previews_rotate"
      }
    },
    "/v2/domains": {
      "post": {
        "operationId": "domains.create",
        "summary": "Adds a hostname to serve a machine's port, checks its TXT record, and returns the DNS records to set. Asked again with another machine or port, it points the name there.",
        "tags": [
          "domains"
        ],
        "x-action": "domains:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A custom domain: your own hostname serving a machine's port.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Domain"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_domains_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "domains.list",
        "summary": "Lists the org's custom domains, by hostname.",
        "tags": [
          "domains"
        ],
        "x-action": "domains:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Domain.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Domain"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_domains_list",
        "x-idempotent": true
      }
    },
    "/v2/domains/{hostname}": {
      "get": {
        "operationId": "domains.get",
        "summary": "Returns a custom domain and the DNS records it needs.",
        "tags": [
          "domains"
        ],
        "x-action": "domains:get",
        "parameters": [
          {
            "name": "hostname",
            "in": "path",
            "required": true,
            "description": "Its host name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "description": "Seconds to wait, at most 60, for its state to differ from `ifState`; it answers once it does, or as it is when the wait ends.",
            "schema": {
              "type": "number",
              "maximum": 60,
              "minimum": 0
            }
          },
          {
            "name": "ifState",
            "in": "query",
            "required": false,
            "description": "The state the caller last read, which `wait` waits for it to leave.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A custom domain: your own hostname serving a machine's port.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Domain"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_domains_get",
        "x-idempotent": true
      },
      "delete": {
        "operationId": "domains.delete",
        "summary": "Stops serving the hostname. Remove its DNS records too.",
        "tags": [
          "domains"
        ],
        "x-action": "domains:delete",
        "parameters": [
          {
            "name": "hostname",
            "in": "path",
            "required": true,
            "description": "Its host name.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A custom domain: your own hostname serving a machine's port.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Domain"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_domains_delete",
        "x-idempotent": true
      }
    },
    "/v2/domains/{hostname}:verify": {
      "post": {
        "operationId": "domains.verify",
        "summary": "Checks the TXT record now; the name is served once it matches.",
        "tags": [
          "domains"
        ],
        "x-action": "domains:create",
        "parameters": [
          {
            "name": "hostname",
            "in": "path",
            "required": true,
            "description": "Its host name.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A custom domain: your own hostname serving a machine's port.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Domain"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_domains_verify",
        "x-idempotent": true
      }
    },
    "/v2/ports": {
      "post": {
        "operationId": "ports.create",
        "summary": "Opens a public TCP port to a port of a machine: raw TCP, carried as it is. The public port is assigned from a pool of 10,000; returns 409 when every one is in use. Asked again for the same machine and port, it returns the same public port.",
        "tags": [
          "ports"
        ],
        "x-action": "ports:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A public TCP port: raw TCP from a public address and port to a port of a machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Port"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_ports_create",
        "x-idempotent": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PortCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "ports.list",
        "summary": "Lists the org's public TCP ports, or one machine's, by `connect`.",
        "tags": [
          "ports"
        ],
        "x-action": "ports:list",
        "parameters": [
          {
            "name": "sandboxId",
            "in": "query",
            "required": false,
            "description": "Only this machine's ports.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Port.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Port"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_ports_list",
        "x-idempotent": true
      }
    },
    "/v2/ports/{id}": {
      "delete": {
        "operationId": "ports.delete",
        "summary": "Closes a public TCP port and the connections through it.",
        "tags": [
          "ports"
        ],
        "x-action": "ports:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A public TCP port: raw TCP from a public address and port to a port of a machine.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Port"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_ports_delete",
        "x-idempotent": true
      }
    },
    "/v2/egress-ips": {
      "get": {
        "operationId": "egressIps.list",
        "summary": "Deprecated: always answers an empty page, as static egress IPs are no longer offered.",
        "tags": [
          "egressIps"
        ],
        "x-action": "egressIps:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of EgressIp.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EgressIp"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_egress_ips_list",
        "x-idempotent": true
      }
    },
    "/v2/tunnels": {
      "get": {
        "operationId": "tunnels.list",
        "summary": "Lists the org's WireGuard tunnels.",
        "tags": [
          "tunnels"
        ],
        "x-action": "tunnels:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Tunnel.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Tunnel"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_tunnels_list",
        "x-idempotent": true
      }
    },
    "/v2/networks": {
      "get": {
        "operationId": "networks.list",
        "summary": "Lists the org's private networks, by name.",
        "tags": [
          "networks"
        ],
        "x-action": "networks:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Network.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Network"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_networks_list",
        "x-idempotent": true
      }
    },
    "/v2/webhooks": {
      "post": {
        "operationId": "webhooks.create",
        "summary": "Makes a webhook, returning its signing secret this once.",
        "tags": [
          "webhooks"
        ],
        "x-action": "webhooks:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A webhook: a signed POST to your URL for each event it names.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_webhooks_create",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "webhooks.list",
        "summary": "Lists the org's, oldest first.",
        "tags": [
          "webhooks"
        ],
        "x-action": "webhooks:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Webhook.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Webhook"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_webhooks_list",
        "x-idempotent": true
      }
    },
    "/v2/webhooks/{id}": {
      "delete": {
        "operationId": "webhooks.delete",
        "summary": "Deletes it: nothing more is sent to it.",
        "tags": [
          "webhooks"
        ],
        "x-action": "webhooks:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A webhook: a signed POST to your URL for each event it names.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_webhooks_delete",
        "x-idempotent": true
      }
    },
    "/v2/events": {
      "get": {
        "operationId": "events.list",
        "summary": "Lists the organization's lifecycle events of the last 14 days, newest first, paginated: each one a webhook is sent, with the same `id` and `type`.",
        "tags": [
          "events"
        ],
        "x-action": "events:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Only events of this type (`sandbox.created`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceId",
            "in": "query",
            "required": false,
            "description": "Only the events of this resource, by its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Event.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Event"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_events_list",
        "x-idempotent": true
      }
    },
    "/v2/otel": {
      "post": {
        "operationId": "otel.create",
        "summary": "Makes an OpenTelemetry export.",
        "tags": [
          "otel"
        ],
        "x-action": "otel:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "An OpenTelemetry export: the events as OTLP logs, POSTed to `<endpoint>/v1/logs`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Export"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_otel_create",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "otel.list",
        "summary": "Lists the org's, oldest first.",
        "tags": [
          "otel"
        ],
        "x-action": "otel:list",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Where the page starts: a page's `next`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The most items the page holds.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A page of Export.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Export"
                      }
                    },
                    "next": {
                      "type": "string",
                      "description": "Where the next page starts, as the next call's cursor; none on the last page."
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_otel_list",
        "x-idempotent": true
      }
    },
    "/v2/otel/{id}": {
      "delete": {
        "operationId": "otel.delete",
        "summary": "Deletes it: nothing more is sent to it.",
        "tags": [
          "otel"
        ],
        "x-action": "otel:delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Its ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden.",
            "x-error-codes": [
              "forbidden"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "An error: not_found.",
            "x-error-codes": [
              "not_found"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: conflict.",
            "x-error-codes": [
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable.",
            "x-error-codes": [
              "unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "An OpenTelemetry export: the events as OTLP logs, POSTed to `<endpoint>/v1/logs`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Export"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_otel_delete",
        "x-idempotent": true
      }
    },
    "/v2/feedback": {
      "post": {
        "operationId": "feedback.create",
        "summary": "Sends a report to Runtime's team. Quote the requestId of an error you hit; never send credentials, private files or user data.",
        "tags": [
          "feedback"
        ],
        "x-action": "feedback:create",
        "parameters": [],
        "responses": {
          "400": {
            "description": "An error: invalid_request.",
            "x-error-codes": [
              "invalid_request"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An error: unauthorized.",
            "x-error-codes": [
              "unauthorized"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "An error: forbidden, limit_exceeded.",
            "x-error-codes": [
              "forbidden",
              "limit_exceeded"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An error: already_exists, conflict.",
            "x-error-codes": [
              "already_exists",
              "conflict"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "An error: rate_limited.",
            "x-error-codes": [
              "rate_limited"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An error: internal.",
            "x-error-codes": [
              "internal"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "An error: unavailable, capacity_unavailable.",
            "x-error-codes": [
              "unavailable",
              "capacity_unavailable"
            ],
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "A report as it was received.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Feedback"
                }
              }
            }
          }
        },
        "x-mcp-tool": "runtime_feedback_create",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FeedbackCreate"
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "MachineStart": {
        "type": "object",
        "description": "A command a machine starts at every fresh boot.",
        "properties": {
          "cmd": {
            "oneOf": [
              {
                "type": "string",
                "minLength": 1,
                "description": "Run by bash -lc, or sh -lc in an image without bash."
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "minItems": 1,
                "description": "The program and its arguments, run without a shell."
              }
            ],
            "description": "The command: text, run by `bash -lc` (`sh -lc` in an image without bash), or the program and its arguments as a list, run without a shell."
          },
          "cwd": {
            "type": "string",
            "description": "The directory it runs in; the user's home when omitted."
          },
          "env": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Environment variables to add."
          },
          "readyPort": {
            "type": "integer",
            "description": "A port it listens on once ready: a create answers once something listens there.",
            "minimum": 1,
            "maximum": 65535
          },
          "readyCommand": {
            "type": "string",
            "description": "A shell command that exits 0 once it is ready, run by `/bin/sh -c` in `cwd` until it does: a create answers once it has."
          },
          "readyTimeoutSeconds": {
            "type": "integer",
            "description": "How long a create waits for `readyPort` or `readyCommand`, 1 to 300 seconds: 60 when omitted.",
            "minimum": 1,
            "maximum": 300
          }
        },
        "required": [
          "cmd"
        ]
      },
      "VolumeMount": {
        "type": "object",
        "description": "A volume a machine attaches at its create, mounted read-write in it, one machine at a time; detached when the machine is deleted.",
        "properties": {
          "volume": {
            "type": "string",
            "description": "The volume, by name or ID, in the machine's project."
          },
          "path": {
            "type": "string",
            "description": "Where it is mounted, such as `/data`: an absolute path, not under `/proc`, `/sys`, `/dev`, `/etc`, `/usr`, `/bin`, `/sbin`, `/lib` or `/boot`."
          }
        },
        "required": [
          "volume",
          "path"
        ]
      },
      "SandboxRun": {
        "type": "object",
        "description": "A command a machine runs once it starts: when it ends, the machine stops.",
        "properties": {
          "cmd": {
            "oneOf": [
              {
                "type": "string",
                "minLength": 1,
                "description": "Run by bash -lc, or sh -lc in an image without bash."
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "minItems": 1,
                "description": "The program and its arguments, run without a shell."
              }
            ],
            "description": "The command: text, run by `bash -lc` (`sh -lc` in an image without bash), or the program and its arguments as a list, run without a shell."
          },
          "cwd": {
            "type": "string",
            "description": "The directory it runs in; the user's home when omitted."
          },
          "env": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Environment variables to add."
          },
          "timeoutSeconds": {
            "type": "number",
            "description": "Seconds it may run before it is stopped (`1.5` for 1,500 ms); no limit when omitted or 0.",
            "minimum": 0
          }
        },
        "required": [
          "cmd"
        ]
      },
      "NetworkRules": {
        "type": "object",
        "description": "Where a machine may connect out, past the walls every machine has.",
        "properties": {
          "allowOutbound": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The only places it may reach, each a host, `*.` and a name for every name under it, an address or a CIDR (`[` and `]` around an IPv6 address), every port when it names none; `:port` for that port alone, on a host name for a port beyond 80 and 443, which go together. `*` is every public host. Every public host when omitted; nothing when empty."
          },
          "denyOutbound": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Places it may never reach, written as in allowOutbound with no port: a deny wins over every allow."
          }
        }
      },
      "SandboxSettings": {
        "type": "object",
        "description": "A machine's settings: what a create sets on it.",
        "properties": {
          "vcpu": {
            "type": "integer",
            "description": "Its vCPUs, at least every plan's least (a smaller number is taken as it); its product's default when omitted.",
            "minimum": 2
          },
          "memoryGB": {
            "type": "number",
            "description": "Its memory in GB (1 GB is 1,024 MiB); a fraction is taken to the MiB (`1.5`). Its product's default when omitted.",
            "minimum": 1
          },
          "diskGB": {
            "type": "number",
            "description": "Its disk in GB (1 GB is 1,024 MiB), to the MiB. When omitted, its product's default or its image's size, whichever is larger.",
            "minimum": 1
          },
          "image": {
            "type": "string",
            "description": "The image it boots, by name (its newest version), `name:version` or ID; Runtime's default image when omitted."
          },
          "secrets": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The secrets it may get, by name, at most 64: only those of them whose scope admits it; [] none; every one whose scope admits it when omitted. A name with no secret yet takes effect once that secret is created. An update changes it; a fork or a copy of a snapshot keeps it.",
            "maxItems": 64
          },
          "start": {
            "$ref": "#/components/schemas/MachineStart"
          },
          "user": {
            "type": "string",
            "enum": [
              "runtime",
              "root"
            ],
            "description": "Who every command, process, terminal and code run in it runs as when the call names no `user`: `runtime` (uid 1000, with passwordless sudo) or `root`. Its image's when omitted, else `runtime`."
          }
        }
      },
      "SandboxCreate": {
        "type": "object",
        "description": "A machine to create.",
        "properties": {
          "vcpu": {
            "type": "integer",
            "description": "Its vCPUs, at least every plan's least (a smaller number is taken as it); its product's default when omitted.",
            "minimum": 2
          },
          "memoryGB": {
            "type": "number",
            "description": "Its memory in GB (1 GB is 1,024 MiB); a fraction is taken to the MiB (`1.5`). Its product's default when omitted.",
            "minimum": 1
          },
          "diskGB": {
            "type": "number",
            "description": "Its disk in GB (1 GB is 1,024 MiB), to the MiB. When omitted, its product's default or its image's size, whichever is larger.",
            "minimum": 1
          },
          "image": {
            "type": "string",
            "description": "The image it boots, by name (its newest version), `name:version` or ID; Runtime's default image when omitted."
          },
          "secrets": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The secrets it may get, by name, at most 64: only those of them whose scope admits it; [] none; every one whose scope admits it when omitted. A name with no secret yet takes effect once that secret is created. An update changes it; a fork or a copy of a snapshot keeps it.",
            "maxItems": 64
          },
          "start": {
            "$ref": "#/components/schemas/MachineStart"
          },
          "user": {
            "type": "string",
            "enum": [
              "runtime",
              "root"
            ],
            "description": "Who every command, process, terminal and code run in it runs as when the call names no `user`: `runtime` (uid 1000, with passwordless sudo) or `root`. Its image's when omitted, else `runtime`."
          },
          "volumes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VolumeMount"
            },
            "description": "Volumes it attaches and mounts at its create, at most one; detached when it is deleted, to attach to another."
          },
          "run": {
            "$ref": "#/components/schemas/SandboxRun"
          },
          "name": {
            "type": "string",
            "description": "Its name, unique in its project."
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Labels to find it by."
          },
          "getOrCreate": {
            "type": "boolean",
            "description": "With a name: the machine of that name when there is one, else a new one."
          },
          "maxCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most it may cost in all, in US dollars (`\"5.00\"`): once it has cost that it pauses, and starts again only once its maxCost is raised (`update`); what a key's per-request and spend caps count. When omitted under a key with a per-request or spend cap, the most that key's caps leave."
          },
          "idlePauseSeconds": {
            "type": "integer",
            "description": "Seconds with nothing happening before it pauses, 60 to 86400; 0 never; its product's default when omitted (300 for a sandbox). A fork keeps its source's, except 0: a copy never pauses only when its fork asks.",
            "minimum": 0,
            "maximum": 86400
          },
          "from": {
            "type": "string",
            "description": "What it starts as, by ID or name: a snapshot (a copy of it running, at its sizes, in its project, with its secrets) or an image (as `image` takes it). A name is a snapshot's when the project has one of that name, else an image's. Not with `image`. Running copies of a sandbox are `fork`'s."
          },
          "snapshot": {
            "type": "string",
            "description": "Deprecated: SDK 1.0.x's name for `from` with a snapshot, read as `from` ([`snapshot_is_from`]). Not with `from`."
          },
          "network": {
            "$ref": "#/components/schemas/NetworkRules"
          },
          "env": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Environment variables for every command and process in it and its start, at most 32 and 32768 bytes of names and values; values are never answered. A copy keeps them."
          },
          "autoWake": {
            "type": "boolean",
            "description": "Whether a call that reaches it paused (an exec, a file, a terminal, a preview's visitor) resumes it; true when omitted. false: such a call answers 409 sandbox_paused and it stays paused until its own `:resume`. A fork's copies keep it."
          },
          "deleteAfterSeconds": {
            "type": "integer",
            "description": "Seconds until Runtime deletes it, as its delete does: final at once, its memory and disk gone and no longer billed; it can't be undone. 0 or omitted: kept until deleted. Its owner renews it with update; a copy, snapshot or image made from it sets its own.",
            "minimum": 0,
            "maximum": 315360000
          },
          "files": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Text files to write in it before it answers, each path to its text: absolute, or under its code's folder (`/app` for an app or a function, `/site` for a site, `/workspace` for the rest); at most 256 files, and its request at most 4 MiB. An app's or a function's server is then started again, once, on them, and it answers once its port serves again, or 409 `start_failed` when it does not within 60 seconds. Binary files and big trees go by files.write and uploadFolder."
          },
          "deleteProtection": {
            "type": "boolean",
            "description": "Whether its delete is refused (409 `delete_protected`) until an update turns this off; false when omitted. Not with `deleteAfterSeconds`. While true, its time limit pauses it instead of deleting it; only its organization's close deletes it. A copy, snapshot or image made from it sets its own."
          }
        }
      },
      "MachineReady": {
        "type": "object",
        "description": "How a create's wait for its start's ready check (`start.readyPort`, `start.readyCommand`) went.",
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "ready",
              "timeout",
              "not_running"
            ],
            "description": "`ready` (the check passed), `timeout` (not within `readyTimeoutSeconds`), or `not_running` (it never ran)."
          },
          "waitedMs": {
            "type": "integer",
            "description": "How long it waited, in milliseconds."
          }
        },
        "required": [
          "state",
          "waitedMs"
        ]
      },
      "Sandbox": {
        "type": "object",
        "description": "A machine.",
        "properties": {
          "vcpu": {
            "type": "integer",
            "description": "Its vCPUs, at least every plan's least (a smaller number is taken as it); its product's default when omitted.",
            "minimum": 2
          },
          "memoryGB": {
            "type": "number",
            "description": "Its memory in GB (1 GB is 1,024 MiB); a fraction is taken to the MiB (`1.5`). Its product's default when omitted.",
            "minimum": 1
          },
          "diskGB": {
            "type": "number",
            "description": "Its disk in GB (1 GB is 1,024 MiB), to the MiB. When omitted, its product's default or its image's size, whichever is larger.",
            "minimum": 1
          },
          "image": {
            "type": "string",
            "description": "The image it boots, by name (its newest version), `name:version` or ID; Runtime's default image when omitted."
          },
          "secrets": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The secrets it may get, by name, at most 64: only those of them whose scope admits it; [] none; every one whose scope admits it when omitted. A name with no secret yet takes effect once that secret is created. An update changes it; a fork or a copy of a snapshot keeps it.",
            "maxItems": 64
          },
          "start": {
            "$ref": "#/components/schemas/MachineStart"
          },
          "user": {
            "type": "string",
            "enum": [
              "runtime",
              "root"
            ],
            "description": "Who every command, process, terminal and code run in it runs as when the call names no `user`: `runtime` (uid 1000, with passwordless sudo) or `root`. Its image's when omitted, else `runtime`."
          },
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "sandbox",
              "function",
              "app",
              "site",
              "ci",
              "browser",
              "desktop",
              "notebook",
              "workspace",
              "container",
              "build",
              "agent.session"
            ],
            "description": "Its product's kind: `sandbox` for a sandbox, `app` for an app, and so on."
          },
          "name": {
            "type": "string",
            "description": "Its name, unique in its project."
          },
          "state": {
            "type": "string",
            "enum": [
              "starting",
              "running",
              "paused",
              "deleted",
              "error"
            ],
            "description": "Where it is."
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Its labels."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was deleted: a delete's answer alone."
          },
          "revision": {
            "type": "integer",
            "description": "Its revision, changed by every change to it: what an update's If-Match names."
          },
          "idlePauseSeconds": {
            "type": "integer",
            "description": "Seconds with nothing happening before it pauses; 0 never.",
            "default": 300
          },
          "maxCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most it may cost in all, in US dollars; none when it has no such cap."
          },
          "autoWake": {
            "type": "boolean",
            "description": "Whether a call that reaches it paused resumes it; false: only its own resume does, and such a call answers 409 sandbox_paused.",
            "default": true
          },
          "exitCode": {
            "type": "integer",
            "description": "Its run's exit code, once its run ended; none for one a signal or its timeout ended."
          },
          "endedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When its run ended."
          },
          "pausedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When its pause began (or its run ended), while it is paused."
          },
          "ready": {
            "$ref": "#/components/schemas/MachineReady"
          },
          "url": {
            "type": "string",
            "description": "For a machine that serves a port of its own (an app, a site or a function on 8080, a container on its image's, a notebook on 8888, a workspace on 8080, a desktop on 6080, a browser's DevTools on 9222): a link that opens it, answered by its create, get and update, none for a key that may not share its ports. It works for 10 minutes; a browser that opens it is given a cookie for that address for a day and sent on to the address without it, so no history keeps a link that still opens it. Another port is shared with previews.create."
          },
          "deleteAt": {
            "type": "string",
            "format": "date-time",
            "description": "When Runtime deletes it (`deleteAfterSeconds`), finally: it can't be undone, as its delete can't; none: kept until deleted."
          },
          "deleteProtection": {
            "type": "boolean",
            "description": "Whether its delete is refused (409 `delete_protected`) until an update turns this off."
          }
        },
        "required": [
          "id",
          "object",
          "state",
          "labels"
        ]
      },
      "Terminal": {
        "type": "object",
        "description": "A terminal's size.",
        "properties": {
          "cols": {
            "type": "integer",
            "description": "Its columns.",
            "minimum": 1,
            "maximum": 65535
          },
          "rows": {
            "type": "integer",
            "description": "Its rows.",
            "minimum": 1,
            "maximum": 65535
          }
        },
        "required": [
          "cols",
          "rows"
        ]
      },
      "ExecRequest": {
        "type": "object",
        "description": "A command to run: to its end, or started and answered at once (`wait: false`).",
        "properties": {
          "cmd": {
            "oneOf": [
              {
                "type": "string",
                "minLength": 1,
                "description": "Run by bash -lc, or sh -lc in an image without bash."
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "minItems": 1,
                "description": "The program and its arguments, run without a shell."
              }
            ],
            "description": "The command: text, run by `bash -lc` (`sh -lc` in an image without bash; `\"npm test\"`), or a list, the program and its arguments run without a shell (`[\"npm\", \"test\"]`)."
          },
          "cwd": {
            "type": "string",
            "description": "The directory it runs in; the user's home when omitted."
          },
          "env": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Environment variables to add."
          },
          "stdin": {
            "type": "string",
            "contentEncoding": "base64",
            "description": "Bytes sent to its standard input."
          },
          "timeoutSeconds": {
            "type": "number",
            "description": "Seconds it may run before it is stopped (`1.5` for 1,500 ms); it runs to its end when omitted or 0.",
            "minimum": 0
          },
          "stream": {
            "type": "boolean",
            "description": "Answer as NDJSON events while it runs (start, stdout, stderr, exit), as `Accept: application/x-ndjson` does."
          },
          "wait": {
            "type": "boolean",
            "description": "Wait for it to end and return it with its output. False returns it at once, running: read its output with processes.output, send it input with processes.write and signals with processes.signal.",
            "default": true
          },
          "stdinOpen": {
            "type": "boolean",
            "description": "Keep its standard input open for processes.write; not with stdin, and not with a wait for its end."
          },
          "outputEncoding": {
            "type": "string",
            "enum": [
              "utf8",
              "base64"
            ],
            "description": "How processes.output answers its output.",
            "default": "utf8"
          },
          "pty": {
            "$ref": "#/components/schemas/Terminal"
          },
          "user": {
            "type": "string",
            "enum": [
              "runtime",
              "root"
            ],
            "description": "Who it runs as: `runtime` (uid 1000, with passwordless sudo) or `root`; the machine's `user` when omitted."
          }
        },
        "required": [
          "cmd"
        ]
      },
      "Process": {
        "type": "object",
        "description": "A process.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "process"
            ],
            "description": "Always `process`."
          },
          "state": {
            "type": "string",
            "enum": [
              "running",
              "exited",
              "killed",
              "timed_out"
            ],
            "description": "Where it is."
          },
          "exitCode": {
            "type": "integer",
            "description": "Its exit code once it exited; negative when a signal ended it."
          },
          "command": {
            "type": "string",
            "description": "The command it runs."
          },
          "cwd": {
            "type": "string",
            "description": "The directory it runs in."
          },
          "pty": {
            "type": "boolean",
            "description": "It runs on a terminal."
          },
          "stdinOpen": {
            "type": "boolean",
            "description": "Its standard input is open for processes.write."
          },
          "stdinOffset": {
            "type": "integer",
            "description": "Bytes of input it has taken."
          },
          "outputEncoding": {
            "type": "string",
            "enum": [
              "utf8",
              "base64"
            ],
            "description": "How its output is answered."
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it started."
          },
          "endedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it ended."
          },
          "timeoutSeconds": {
            "type": "number",
            "description": "Seconds it may run before it is killed."
          },
          "outputBytes": {
            "type": "integer",
            "description": "Bytes of output it has written: the cursor past its last."
          },
          "firstOffset": {
            "type": "integer",
            "description": "The oldest byte of its output still kept."
          },
          "stdout": {
            "type": "string",
            "description": "What it wrote to standard output, as UTF-8: given once an exec waited for its end."
          },
          "stderr": {
            "type": "string",
            "description": "What it wrote to standard error, as UTF-8: given once an exec waited for its end."
          },
          "stdoutTruncated": {
            "type": "boolean",
            "description": "stdout holds only part of what it wrote (its first 1 MiB)."
          },
          "stderrTruncated": {
            "type": "boolean",
            "description": "stderr holds only part of what it wrote (its first 1 MiB)."
          },
          "durationSeconds": {
            "type": "number",
            "description": "How long it ran, in seconds, to the millisecond, once it ended."
          }
        },
        "required": [
          "id",
          "object",
          "state",
          "command",
          "pty",
          "stdinOpen",
          "stdinOffset",
          "outputEncoding",
          "startedAt",
          "outputBytes",
          "firstOffset"
        ]
      },
      "ExecEventError": {
        "type": "object",
        "description": "A failed read of an exec's events: the error the API would have answered, and where to follow on from.",
        "properties": {
          "code": {
            "type": "string",
            "description": "The error's code."
          },
          "message": {
            "type": "string",
            "description": "What went wrong."
          },
          "status": {
            "type": "integer",
            "description": "The status the API answered."
          },
          "processId": {
            "type": "string",
            "description": "The process."
          },
          "cursor": {
            "type": "integer",
            "description": "The cursor to follow its output on from (processes.output)."
          }
        },
        "required": [
          "code"
        ]
      },
      "ExecEvent": {
        "type": "object",
        "description": "One event of an exec asked for its events (`stream: true`, or `Accept: application/x-ndjson`), one JSON object a line: `start`, then `stdout` and `stderr` as the output comes, `truncated` when output was dropped before it was read, and `exit`; or `continue` (follow on with processes.output from `cursor`) or `error`.",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "start",
              "stdout",
              "stderr",
              "truncated",
              "exit",
              "continue",
              "error"
            ],
            "description": "`start`, `stdout`, `stderr`, `truncated`, `exit`, `continue` or `error`."
          },
          "processId": {
            "type": "string",
            "description": "The process: `start` and `continue`."
          },
          "replayed": {
            "type": "boolean",
            "description": "`start`: this Idempotency-Key ran it before, and these are that run's events again."
          },
          "data": {
            "type": "string",
            "description": "`stdout` and `stderr`: the output, as text."
          },
          "base64": {
            "type": "string",
            "description": "`stdout` and `stderr`: the output's bytes, in base64, with outputEncoding `base64`."
          },
          "offset": {
            "type": "integer",
            "description": "`stdout` and `stderr`: where in the process's output these bytes start."
          },
          "droppedBytes": {
            "type": "integer",
            "description": "`truncated`: how many bytes were dropped."
          },
          "resumeAt": {
            "type": "integer",
            "description": "`truncated`: where the output read on from."
          },
          "exitCode": {
            "type": "integer",
            "description": "`exit`: its exit code."
          },
          "state": {
            "type": "string",
            "enum": [
              "running",
              "exited",
              "killed",
              "timed_out"
            ],
            "description": "`exit`: how it ended."
          },
          "timedOut": {
            "type": "boolean",
            "description": "`exit`: it was stopped at its timeout."
          },
          "durationSeconds": {
            "type": "number",
            "description": "`exit`: how long it ran."
          },
          "cursor": {
            "type": "integer",
            "description": "`continue`: the cursor to follow its output on from (processes.output)."
          },
          "error": {
            "$ref": "#/components/schemas/ExecEventError"
          }
        },
        "required": [
          "type"
        ]
      },
      "FileWritten": {
        "type": "object",
        "description": "A file written.",
        "properties": {
          "path": {
            "type": "string",
            "description": "Its path."
          },
          "size": {
            "type": "integer",
            "description": "Its size in bytes, after the write."
          },
          "sha256": {
            "type": "string",
            "description": "Its SHA-256 in hex: given for a file written whole."
          },
          "offset": {
            "type": "integer",
            "description": "Where the bytes were written: given for a write at an offset."
          }
        },
        "required": [
          "path",
          "size"
        ]
      },
      "OutputChunk": {
        "type": "object",
        "description": "Some of a process's output.",
        "properties": {
          "offset": {
            "type": "integer",
            "description": "Where it starts in the process's output."
          },
          "stream": {
            "type": "string",
            "enum": [
              "stdout",
              "stderr"
            ],
            "description": "The stream it was written to."
          },
          "text": {
            "type": "string",
            "description": "It, as text."
          },
          "base64": {
            "type": "string",
            "contentEncoding": "base64",
            "description": "It, as bytes, when the process answers base64."
          }
        },
        "required": [
          "offset",
          "stream",
          "text"
        ]
      },
      "ProcessOutput": {
        "type": "object",
        "description": "A process's output after a cursor.",
        "properties": {
          "chunks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OutputChunk"
            },
            "description": "The output, in the order it was written."
          },
          "nextCursor": {
            "type": "integer",
            "description": "The cursor to read on from."
          },
          "truncated": {
            "type": "boolean",
            "description": "Output past the cursor was dropped before it was read."
          },
          "droppedBytes": {
            "type": "integer",
            "description": "How many bytes were dropped."
          },
          "process": {
            "$ref": "#/components/schemas/Process"
          }
        },
        "required": [
          "chunks",
          "nextCursor",
          "truncated",
          "droppedBytes"
        ]
      },
      "ProcessInput": {
        "type": "object",
        "description": "Input to send a process.",
        "properties": {
          "data": {
            "type": "string",
            "contentEncoding": "base64",
            "description": "The bytes."
          },
          "offset": {
            "type": "integer",
            "description": "Bytes of input sent before these (its stdinOffset): a resend is then never taken twice. They go after every other write when omitted."
          },
          "eof": {
            "type": "boolean",
            "description": "Close its input after these (^D on a terminal)."
          }
        }
      },
      "ProcessWritten": {
        "type": "object",
        "description": "Input a process took.",
        "properties": {
          "offset": {
            "type": "integer",
            "description": "Bytes of input it has taken in all."
          },
          "process": {
            "$ref": "#/components/schemas/Process"
          }
        },
        "required": [
          "offset"
        ]
      },
      "ProcessSignal": {
        "type": "object",
        "description": "A signal to send a process and its group.",
        "properties": {
          "signal": {
            "type": "string",
            "enum": [
              "SIGINT",
              "SIGTERM",
              "SIGHUP",
              "SIGQUIT",
              "SIGUSR1",
              "SIGUSR2",
              "SIGKILL"
            ],
            "description": "The signal; SIGTERM when omitted."
          }
        }
      },
      "ProcessList": {
        "type": "object",
        "description": "A machine's processes, newest first.",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Process"
            },
            "description": "Each process."
          }
        },
        "required": [
          "items"
        ]
      },
      "FileRemove": {
        "type": "object",
        "description": "A file, a link or a directory to remove.",
        "properties": {
          "path": {
            "type": "string",
            "description": "Its path."
          },
          "recursive": {
            "type": "boolean",
            "description": "A directory with its contents; refused for a directory with contents when omitted."
          }
        },
        "required": [
          "path"
        ]
      },
      "FileRemoved": {
        "type": "object",
        "description": "A file, a link or a directory removed.",
        "properties": {
          "path": {
            "type": "string",
            "description": "Its path."
          },
          "removed": {
            "type": "boolean",
            "description": "It was there and is removed; false when it was missing."
          }
        },
        "required": [
          "path",
          "removed"
        ]
      },
      "FileInfo": {
        "type": "object",
        "description": "A path in a machine: what is there, if anything.",
        "properties": {
          "path": {
            "type": "string",
            "description": "Its path."
          },
          "exists": {
            "type": "boolean",
            "description": "Something is there."
          },
          "name": {
            "type": "string",
            "description": "Its last part."
          },
          "type": {
            "type": "string",
            "enum": [
              "file",
              "directory",
              "symlink",
              "other"
            ],
            "description": "What it is: `file`, `directory`, `symlink` or `other`."
          },
          "size": {
            "type": "integer",
            "description": "Its size in bytes."
          },
          "mode": {
            "type": "string",
            "description": "Its permissions, in octal (`0644`)."
          },
          "modifiedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it last changed."
          },
          "uid": {
            "type": "integer",
            "description": "Its owner's user ID."
          },
          "gid": {
            "type": "integer",
            "description": "Its group's ID."
          },
          "symlinkTarget": {
            "type": "string",
            "description": "Where a link points."
          },
          "sha256": {
            "type": "string",
            "description": "A file's SHA-256 in hex, read from its bytes: given when asked (`sha256=true`)."
          }
        },
        "required": [
          "path",
          "exists"
        ]
      },
      "FileList": {
        "type": "object",
        "description": "What a directory holds, in path order.",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FileInfo"
            },
            "description": "Each entry."
          },
          "truncated": {
            "type": "boolean",
            "description": "There were more entries than limit."
          }
        },
        "required": [
          "items",
          "truncated"
        ]
      },
      "FolderUnpacked": {
        "type": "object",
        "description": "A folder unpacked.",
        "properties": {
          "path": {
            "type": "string",
            "description": "The folder."
          },
          "received": {
            "type": "integer",
            "description": "The archive's bytes tar took."
          }
        },
        "required": [
          "path",
          "received"
        ]
      },
      "FolderUploadBegin": {
        "type": "object",
        "description": "A folder upload to begin: a tar archive sent in parts, unpacked into a folder as they arrive.",
        "properties": {
          "path": {
            "type": "string",
            "description": "The folder, absolute and plain, such as `/workspace/app`: made with its parents."
          },
          "gzip": {
            "type": "boolean",
            "description": "The archive is gzip-compressed (`.tar.gz`).",
            "default": false
          },
          "user": {
            "type": "string",
            "enum": [
              "runtime",
              "root"
            ],
            "description": "Who unpacks it: `runtime` or `root`; the machine's `user` when omitted."
          }
        },
        "required": [
          "path"
        ]
      },
      "FolderUpload": {
        "type": "object",
        "description": "A folder upload begun: its parts go to it in order, then its commit.",
        "properties": {
          "uploadId": {
            "type": "string",
            "description": "Its ID, which its parts, its commit and its abort name."
          },
          "path": {
            "type": "string",
            "description": "The folder it unpacks into."
          },
          "gzip": {
            "type": "boolean",
            "description": "The archive is gzip-compressed."
          },
          "chunkBytes": {
            "type": "integer",
            "description": "The most bytes a part should carry."
          }
        },
        "required": [
          "uploadId",
          "path",
          "gzip",
          "chunkBytes"
        ]
      },
      "FolderUploadReceived": {
        "type": "object",
        "description": "A folder upload's part taken.",
        "properties": {
          "received": {
            "type": "integer",
            "description": "The archive's bytes tar has taken so far: the next part's offset."
          }
        },
        "required": [
          "received"
        ]
      },
      "FolderUploadAborted": {
        "type": "object",
        "description": "A folder upload ended unfinished.",
        "properties": {
          "aborted": {
            "type": "boolean",
            "description": "Always true: tar was stopped; what it unpacked stays."
          }
        },
        "required": [
          "aborted"
        ]
      },
      "FileMkdir": {
        "type": "object",
        "description": "A directory to make.",
        "properties": {
          "path": {
            "type": "string",
            "description": "Its path."
          },
          "parents": {
            "type": "boolean",
            "description": "Its parents are made too; true when omitted."
          }
        },
        "required": [
          "path"
        ]
      },
      "FileMade": {
        "type": "object",
        "description": "A directory made.",
        "properties": {
          "path": {
            "type": "string",
            "description": "Its path."
          },
          "created": {
            "type": "boolean",
            "description": "It was made; false when it was there already."
          }
        },
        "required": [
          "path",
          "created"
        ]
      },
      "FileRename": {
        "type": "object",
        "description": "A file, a link or a directory to move.",
        "properties": {
          "from": {
            "type": "string",
            "description": "Where it is."
          },
          "to": {
            "type": "string",
            "description": "Where it goes."
          },
          "overwrite": {
            "type": "boolean",
            "description": "Replace what is at `to`; refused 409 when something is there and this is omitted."
          },
          "sha256": {
            "type": "string",
            "description": "The file's SHA-256 in hex: only a file whose bytes hash to it moves. With it, a rename sent again after it moved returns the same answer."
          },
          "size": {
            "type": "integer",
            "description": "The file's size in bytes: only a file of this size, every byte of it written, moves.",
            "minimum": 0
          }
        },
        "required": [
          "from",
          "to"
        ]
      },
      "FileRenamed": {
        "type": "object",
        "description": "A file, a link or a directory moved.",
        "properties": {
          "from": {
            "type": "string",
            "description": "Where it was."
          },
          "to": {
            "type": "string",
            "description": "Where it is now."
          },
          "size": {
            "type": "integer",
            "description": "Its size in bytes: given for a move checked by sha256."
          },
          "sha256": {
            "type": "string",
            "description": "Its SHA-256 in hex: given for a move checked by sha256."
          }
        },
        "required": [
          "from",
          "to"
        ]
      },
      "FileLinkCreate": {
        "type": "object",
        "description": "A file link to make: an expiring address for one file of a machine (or, with `archive`, a folder) that anyone may open with no API key.",
        "properties": {
          "path": {
            "type": "string",
            "description": "The file's absolute path in the machine. For GET it must exist when the link is made."
          },
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "PUT"
            ],
            "description": "`GET` (default): a download link. `PUT`: an upload link; the request's body becomes the file."
          },
          "expiresInSeconds": {
            "type": "integer",
            "description": "How long the link works, in seconds.",
            "minimum": 60,
            "maximum": 604800,
            "default": 3600
          },
          "filename": {
            "type": "string",
            "description": "Download as this name (`Content-Disposition: attachment`). Without it a picture, video, sound or plain text shows in the browser; anything else downloads."
          },
          "maxBytes": {
            "type": "integer",
            "description": "PUT only: the largest body the link takes, in bytes; 5 GiB by default and at most.",
            "minimum": 0,
            "maximum": 5368709120
          },
          "wake": {
            "type": "boolean",
            "description": "false: a paused machine is not woken for the link, which answers 409 `sandbox_paused`. Unset or true: it is woken."
          },
          "archive": {
            "type": "boolean",
            "description": "GET only: `path` is a folder, downloaded as a `.tar.gz`.",
            "default": false
          }
        },
        "required": [
          "path"
        ]
      },
      "FileLink": {
        "type": "object",
        "description": "A file link.",
        "properties": {
          "url": {
            "type": "string",
            "description": "Its address, opened with no key: GET to download, PUT the file's bytes to upload."
          },
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "PUT"
            ],
            "description": "`GET` or `PUT`."
          },
          "path": {
            "type": "string",
            "description": "The file's path in the machine."
          },
          "sandboxId": {
            "type": "string",
            "description": "The machine."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it stops working."
          },
          "filename": {
            "type": "string",
            "description": "The name it downloads as."
          },
          "maxBytes": {
            "type": "integer",
            "description": "The largest body an upload link takes."
          },
          "archive": {
            "type": "boolean",
            "description": "It downloads a folder as a `.tar.gz`."
          }
        },
        "required": [
          "url",
          "method",
          "path",
          "sandboxId",
          "expiresAt"
        ]
      },
      "FileLinksRevoked": {
        "type": "object",
        "description": "A machine's file links ended.",
        "properties": {
          "sandboxId": {
            "type": "string",
            "description": "The machine."
          },
          "revokedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When they ended: every link made before it."
          }
        },
        "required": [
          "sandboxId",
          "revokedAt"
        ]
      },
      "SandboxNetwork": {
        "type": "object",
        "description": "Where a machine may connect out.",
        "properties": {
          "allowOutbound": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The only places it may reach, each a host, `*.` and a name for every name under it, an address or a CIDR (`[` and `]` around an IPv6 address), every port when it names none; `:port` for that port alone, on a host name for a port beyond 80 and 443, which go together. `*` is every public host. Every public host when omitted; nothing when empty."
          },
          "denyOutbound": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Places it may never reach, written as in allowOutbound with no port: a deny wins over every allow."
          },
          "id": {
            "type": "string",
            "description": "The machine's ID."
          }
        },
        "required": [
          "id"
        ]
      },
      "MetricPoint": {
        "type": "object",
        "description": "A machine's CPU and memory as its host measures them from the machine's own cgroup, never by a call into the machine, so reading them does not wake it or keep it awake. Either the current reading (over the host's last 5 seconds, with disk and pressure) or one step of a window (averaged over the time the machine ran in it).",
        "properties": {
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was read; for a step, where the step starts."
          },
          "cpuPercent": {
            "type": "number",
            "description": "Its CPU, as a percent of all its vCPUs (0 to 100)."
          },
          "cpuCores": {
            "type": "number",
            "description": "The same as a number of cores."
          },
          "cpuPeakPercent": {
            "type": "number",
            "description": "Its busiest minute, as a percent of all its vCPUs."
          },
          "cpuWaitPercent": {
            "type": "number",
            "description": "Percent of the last 10 seconds some task of it waited for a CPU."
          },
          "memoryStallPercent": {
            "type": "number",
            "description": "Percent of the last 10 seconds some task of it waited for memory."
          },
          "memoryBytes": {
            "type": "integer",
            "description": "Memory it holds, in bytes: its resident memory on its host."
          },
          "memoryPeakBytes": {
            "type": "integer",
            "description": "The most memory it has held, in bytes; for a step, its highest minute's average."
          },
          "samples": {
            "type": "integer",
            "description": "How many measures it is made of: two reads for the reading now; for a step, the minutes the host measured it in."
          },
          "diskReadBytesPerSecond": {
            "type": "number",
            "description": "Bytes its disks read a second."
          },
          "diskWriteBytesPerSecond": {
            "type": "number",
            "description": "Bytes its disks wrote a second."
          },
          "diskReadOpsPerSecond": {
            "type": "number",
            "description": "Reads its disks completed a second."
          },
          "diskWriteOpsPerSecond": {
            "type": "number",
            "description": "Writes its disks completed a second."
          }
        },
        "required": [
          "at",
          "cpuPercent",
          "memoryBytes",
          "samples"
        ]
      },
      "MetricsBase": {
        "type": "object",
        "description": "A machine's CPU and memory over a time window, in steps, and its current reading (with disk and pressure) while it runs. Steps are returned in every state, including paused and stopped. Ranges: `15m` and `1h` in 60-second steps, `6h` in 120-second steps, `24h` in 480-second steps, `7d` and `30d` in 1-hour steps. Defaults to `1h`.",
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "starting",
              "running",
              "paused",
              "deleted",
              "error"
            ],
            "description": "Its state."
          },
          "range": {
            "type": "string",
            "enum": [
              "15m",
              "1h",
              "6h",
              "24h",
              "7d",
              "30d"
            ],
            "description": "The window asked for."
          },
          "stepSeconds": {
            "type": "integer",
            "description": "The window's step, in seconds."
          },
          "since": {
            "type": "string",
            "format": "date-time",
            "description": "Where the window starts: the start of the step that holds the range's start."
          },
          "until": {
            "type": "string",
            "format": "date-time",
            "description": "Where it ends: now."
          },
          "vcpu": {
            "type": "integer",
            "description": "Its vCPUs."
          },
          "memoryLimitBytes": {
            "type": "integer",
            "description": "Its memory, in bytes."
          },
          "diskLimitBytes": {
            "type": "integer",
            "description": "Its disk, in bytes."
          },
          "latest": {
            "$ref": "#/components/schemas/MetricPoint"
          },
          "points": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetricPoint"
            },
            "description": "The window's steps, oldest first, each averaged over the time the machine ran in it. Steps in which it did not run are omitted. A minute appears about a minute after it ends; `latest` holds the current reading."
          }
        },
        "required": [
          "state",
          "range",
          "stepSeconds",
          "since",
          "until",
          "vcpu",
          "memoryLimitBytes",
          "diskLimitBytes",
          "points"
        ]
      },
      "SandboxMetrics": {
        "type": "object",
        "description": "A machine's metrics.",
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "starting",
              "running",
              "paused",
              "deleted",
              "error"
            ],
            "description": "Its state."
          },
          "range": {
            "type": "string",
            "enum": [
              "15m",
              "1h",
              "6h",
              "24h",
              "7d",
              "30d"
            ],
            "description": "The window asked for."
          },
          "stepSeconds": {
            "type": "integer",
            "description": "The window's step, in seconds."
          },
          "since": {
            "type": "string",
            "format": "date-time",
            "description": "Where the window starts: the start of the step that holds the range's start."
          },
          "until": {
            "type": "string",
            "format": "date-time",
            "description": "Where it ends: now."
          },
          "vcpu": {
            "type": "integer",
            "description": "Its vCPUs."
          },
          "memoryLimitBytes": {
            "type": "integer",
            "description": "Its memory, in bytes."
          },
          "diskLimitBytes": {
            "type": "integer",
            "description": "Its disk, in bytes."
          },
          "latest": {
            "$ref": "#/components/schemas/MetricPoint"
          },
          "points": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetricPoint"
            },
            "description": "The window's steps, oldest first, each averaged over the time the machine ran in it. Steps in which it did not run are omitted. A minute appears about a minute after it ends; `latest` holds the current reading."
          },
          "id": {
            "type": "string",
            "description": "The machine's ID."
          }
        },
        "required": [
          "state",
          "range",
          "stepSeconds",
          "since",
          "until",
          "vcpu",
          "memoryLimitBytes",
          "diskLimitBytes",
          "points",
          "id"
        ]
      },
      "ForkRequest": {
        "type": "object",
        "description": "Copies of a machine to make, as it is now.",
        "properties": {
          "count": {
            "type": "integer",
            "description": "How many.",
            "minimum": 1,
            "maximum": 100,
            "default": 1
          },
          "name": {
            "type": "string",
            "description": "Its name, for a fork of one."
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Labels each copy gets."
          },
          "secrets": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The secrets each copy gets, by name: only these, never one its source may not use; its source's when omitted.",
            "maxItems": 64
          },
          "maxCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most each may cost in all, in US dollars (`\"5.00\"`): once one has cost that it pauses, as a create's maxCost. When omitted, the least of its key's caps and its source's maxCost."
          },
          "idlePauseSeconds": {
            "type": "integer",
            "description": "Seconds with nothing happening before each copy pauses, 60 to 86400; 0 never. When omitted, its source's, unless its source never pauses (0): then its product's default, 300 for a sandbox.",
            "minimum": 0,
            "maximum": 86400
          },
          "vcpu": {
            "type": "integer",
            "description": "The vCPUs each copy runs, at most its source's; its source's when omitted. A copy with fewer has only this many CPUs online (the rest of its source's are taken offline, so `nproc` in it is this number) and is held to this many vCPUs of CPU time, which it is placed and billed by. Its memory is its source's.",
            "minimum": 2
          },
          "deleteAfterSeconds": {
            "type": "integer",
            "description": "Seconds until Runtime deletes each copy, as its delete does: final, and it can't be undone. 0 or omitted: kept until deleted; a copy never takes its source's.",
            "minimum": 0,
            "maximum": 315360000
          },
          "deleteProtection": {
            "type": "boolean",
            "description": "Whether each copy's delete is refused (409 `delete_protected`) until an update turns this off; false when omitted. Not with `deleteAfterSeconds`; a copy never takes its source's."
          }
        }
      },
      "Forked": {
        "type": "object",
        "description": "The copies a fork made, each running.",
        "properties": {
          "sandboxes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sandbox"
            },
            "description": "The copies, in the order made."
          }
        },
        "required": [
          "sandboxes"
        ]
      },
      "SnapshotRequest": {
        "type": "object",
        "description": "A snapshot of a machine to take.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Its name, unique among the project's snapshots."
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Labels to find it by."
          },
          "image": {
            "type": "string",
            "description": "Keeps its disk alone, synced, as the next version of the image of this name (`name:1`, `name:2`, ...) in place of a snapshot: an image machines are created from, each booting fresh over a disk of its own. Its memory is not kept; name is ignored."
          },
          "start": {
            "$ref": "#/components/schemas/MachineStart"
          },
          "deleteAfterSeconds": {
            "type": "integer",
            "description": "Seconds until Runtime deletes the snapshot (or, with image, that image version), as its delete does: final, and it can't be undone. 0 or omitted: kept until deleted.",
            "minimum": 0,
            "maximum": 315360000
          },
          "deleteProtection": {
            "type": "boolean",
            "description": "Whether the snapshot's (or, with image, that image version's) delete is refused (409 `delete_protected`) until an update turns this off; false when omitted. Not with `deleteAfterSeconds`."
          }
        }
      },
      "SnapshotSchedule": {
        "type": "object",
        "description": "A volume's snapshots on a timer: one every `everySeconds`, each as `:snapshot` makes one, the newest `keep` of them kept and the oldest past that deleted as its delete does. Snapshots made otherwise are never counted or deleted.",
        "properties": {
          "everySeconds": {
            "type": "integer",
            "description": "Seconds between its snapshots, 3600 (an hour) to 31536000 (a year); 0 in an update turns the schedule off. The first is this long after it is set.",
            "minimum": 0,
            "maximum": 31536000
          },
          "keep": {
            "type": "integer",
            "description": "How many of its newest scheduled snapshots are kept, 1 to 365.",
            "minimum": 1,
            "maximum": 365
          }
        },
        "required": [
          "everySeconds",
          "keep"
        ]
      },
      "Stored": {
        "type": "object",
        "description": "Stored data: a snapshot, an image or a volume.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "snapshot",
              "image",
              "volume"
            ],
            "description": "Its kind: `snapshot`, `image` or `volume`."
          },
          "name": {
            "type": "string",
            "description": "Its name, unique in its project among its kind."
          },
          "state": {
            "type": "string",
            "enum": [
              "making",
              "ready",
              "failed",
              "deleted"
            ],
            "description": "Where it is."
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Its labels."
          },
          "sizeBytes": {
            "type": "integer",
            "description": "What it was made to hold, in bytes."
          },
          "storedBytes": {
            "type": "integer",
            "description": "What it holds now, in bytes."
          },
          "parentId": {
            "type": "string",
            "description": "What it was made from (a snapshot's machine, an image's base), if anything."
          },
          "attachedTo": {
            "type": "string",
            "description": "The machine it is attached to now, if any."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          },
          "version": {
            "type": "integer",
            "description": "An image's version of its name: each build or keep of a name is its next."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "An image's tags, each `name:tag`."
          },
          "error": {
            "type": "string",
            "description": "Why an image's build failed."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was deleted: a delete's answer, its state `deleted`."
          },
          "deleteAt": {
            "type": "string",
            "format": "date-time",
            "description": "When Runtime deletes it (`deleteAfterSeconds`), finally: it can't be undone, as its delete can't; none: kept until deleted."
          },
          "deleteWaitsFor": {
            "type": "string",
            "description": "Once `deleteAt` has passed, what its delete waits for: the App that boots this image, or the machine this volume is attached to, by its ID. It is deleted as soon as that one no longer does."
          },
          "deleteProtection": {
            "type": "boolean",
            "description": "Whether its delete is refused (409 `delete_protected`) until an update turns this off."
          },
          "snapshotSchedule": {
            "$ref": "#/components/schemas/SnapshotSchedule"
          }
        },
        "required": [
          "id",
          "object",
          "state",
          "labels",
          "sizeBytes",
          "storedBytes"
        ]
      },
      "MachineUpdate": {
        "type": "object",
        "description": "A change to a machine's settings: each field left out stays as it is.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Its name, unique in its project."
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Its labels, in place of its own; those under `runtime.` are kept."
          },
          "idlePauseSeconds": {
            "type": "integer",
            "description": "Seconds with nothing happening before it pauses, 60 to 86400; 0 never. Nothing happening means no call or command running, no traffic, almost no CPU, and no outbound connection it opened still open."
          },
          "vcpu": {
            "type": "integer",
            "description": "Its vCPUs, grown while it runs; a running machine's vCPUs only grow. A number under every plan's least is taken as it.",
            "minimum": 2
          },
          "memoryGB": {
            "type": "number",
            "description": "Its memory in GB (1 GB is 1,024 MiB), grown while it runs; a running machine's memory only grows.",
            "minimum": 1
          },
          "diskGB": {
            "type": "number",
            "description": "Its disk in GB (1 GB is 1,024 MiB), grown while it runs, its file system with it; a disk only grows.",
            "minimum": 1
          },
          "user": {
            "type": "string",
            "enum": [
              "runtime",
              "root"
            ],
            "description": "Who its commands run as from now when a call names no `user`: `runtime` or `root`. Running ones keep theirs."
          },
          "env": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Environment variables to set, each over its own value, the others kept: the update answers once a running one holds the change (a paused one is given it at its wake), so each process, command and terminal it starts after the answer has them; processes already running keep the environment they started with. At most 32 variables and 32768 bytes of names and values in all, as a create's; values are never answered."
          },
          "removeEnv": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Names of environment variables to take out, the same way: gone from the next process it starts; processes already running keep them."
          },
          "maxCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most it may cost in all, in US dollars (`\"5.00\"`), in place of its own: one paused at its old maxCost wakes at its next call under a higher one."
          },
          "autoWake": {
            "type": "boolean",
            "description": "Whether a call that reaches it paused (an exec, a file, a terminal, a preview's visitor) resumes it from now. false: such a call answers 409 sandbox_paused and it stays paused until its own `:resume`."
          },
          "deleteAfterSeconds": {
            "type": "integer",
            "description": "Seconds from now until Runtime deletes it, as its delete does: final, and it can't be undone. Sent again before then, it renews it; 0 takes its end off (kept until deleted).",
            "minimum": 0,
            "maximum": 315360000
          },
          "files": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Text files to write in it before it answers, over what is there, each path to its text: absolute, or under its code's folder (`/app` for an app or a function, `/site` for a site, `/workspace` for the rest); at most 256 files, and its request at most 4 MiB. An app's or a function's server is then started again, once, on them, and it answers once its port serves again, or 409 `start_failed` when it does not within 60 seconds. Binary files and big trees go by files.write and uploadFolder."
          },
          "deleteProtection": {
            "type": "boolean",
            "description": "true refuses its delete (409 `delete_protected`) until an update sends false; while true, its time limit pauses it instead of deleting it. Not while it has a `deleteAt`, unless the same update sends `deleteAfterSeconds` 0."
          },
          "secrets": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The secrets it may get, by name, at most 64, in place of its list: only those of them whose scope admits it; [] none. A running one holds the change within 5 seconds (about 3 today): a visible secret's file in `/run/secrets` appears or is removed, and the proxy puts in or leaves out a hidden one's value.",
            "maxItems": 64
          }
        }
      },
      "Action": {
        "type": "object",
        "description": "One step of an act: a mouse move, click, drag or scroll, typed text, a key chord, or a wait.",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "move",
              "click",
              "mouseDown",
              "mouseUp",
              "drag",
              "scroll",
              "type",
              "key",
              "wait"
            ],
            "description": "What it does: `move` to `x`,`y`; `click` (at `x`,`y` when given, `count` times, with `keys` held); `mouseDown` and `mouseUp` of `button`; `drag` from `x`,`y` to `toX`,`toY`; `scroll` by `dx`,`dy` wheel clicks (at `x`,`y` when given); `type` `text`; `key` the chords in `keys`; `wait` `ms`."
          },
          "x": {
            "type": "integer",
            "description": "Pixels from the screen's left edge.",
            "minimum": 0,
            "maximum": 16384
          },
          "y": {
            "type": "integer",
            "description": "Pixels from the screen's top edge.",
            "minimum": 0,
            "maximum": 16384
          },
          "toX": {
            "type": "integer",
            "description": "A drag's end, from the left edge.",
            "minimum": 0,
            "maximum": 16384
          },
          "toY": {
            "type": "integer",
            "description": "A drag's end, from the top edge.",
            "minimum": 0,
            "maximum": 16384
          },
          "button": {
            "type": "string",
            "enum": [
              "left",
              "middle",
              "right"
            ],
            "description": "The mouse button of a click, a drag, a mouseDown or a mouseUp.",
            "default": "left"
          },
          "count": {
            "type": "integer",
            "description": "A click's count: 2 a double click, 3 a triple click.",
            "minimum": 1,
            "maximum": 3,
            "default": 1
          },
          "dx": {
            "type": "integer",
            "description": "A scroll's wheel clicks to the right (negative to the left).",
            "minimum": -100,
            "maximum": 100
          },
          "dy": {
            "type": "integer",
            "description": "A scroll's wheel clicks down (negative up).",
            "minimum": -100,
            "maximum": 100
          },
          "text": {
            "type": "string",
            "description": "The text a `type` types, as it is: any Unicode, newlines and tabs.",
            "maxLength": 8192
          },
          "keys": {
            "type": "string",
            "description": "For `key`, chords pressed in turn, space-separated, each keys joined by `+` in X keysym names (`ctrl+l`, `Return`, `ctrl+shift+t`); for `click` and `scroll`, the modifiers held during it (`shift`, `ctrl+alt`).",
            "maxLength": 1000
          },
          "ms": {
            "type": "integer",
            "description": "A wait's milliseconds.",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [
          "type"
        ]
      },
      "ActRequest": {
        "type": "object",
        "description": "Steps of the mouse and keyboard, run in order as one command.",
        "properties": {
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Action"
            },
            "description": "The steps, in order; the act stops at the first that fails.",
            "minItems": 1,
            "maxItems": 100
          }
        },
        "required": [
          "actions"
        ]
      },
      "Point": {
        "type": "object",
        "description": "A point on the screen, in pixels from its top left corner.",
        "properties": {
          "x": {
            "type": "integer",
            "description": ""
          },
          "y": {
            "type": "integer",
            "description": ""
          }
        },
        "required": [
          "x",
          "y"
        ]
      },
      "ScreenSize": {
        "type": "object",
        "description": "The screen's size, in pixels.",
        "properties": {
          "width": {
            "type": "integer",
            "description": ""
          },
          "height": {
            "type": "integer",
            "description": ""
          }
        },
        "required": [
          "width",
          "height"
        ]
      },
      "Acted": {
        "type": "object",
        "description": "The screen once an act's steps ran.",
        "properties": {
          "cursor": {
            "$ref": "#/components/schemas/Point"
          },
          "screen": {
            "$ref": "#/components/schemas/ScreenSize"
          }
        },
        "required": [
          "cursor",
          "screen"
        ]
      },
      "RunCode": {
        "type": "object",
        "description": "A cell to run.",
        "properties": {
          "code": {
            "type": "string",
            "description": "The code.",
            "maxLength": 1048576
          },
          "language": {
            "type": "string",
            "enum": [
              "python"
            ],
            "description": "Its language: `python`.",
            "default": "python"
          },
          "context": {
            "type": "string",
            "description": "The context it runs in, each its own kernel and state, started on its first cell (`a-z`, `0-9`, `-`, at most 63); `default` when omitted.",
            "minLength": 1,
            "maxLength": 63
          },
          "timeoutSeconds": {
            "type": "integer",
            "description": "Seconds it may run before it is interrupted, its context kept: 1 to 50, 45 when omitted. Run longer work as a process (exec with `wait: false`).",
            "minimum": 1,
            "maximum": 50
          }
        },
        "required": [
          "code"
        ]
      },
      "CodeResult": {
        "type": "object",
        "description": "One value a cell returned or displayed, in each form it gave.",
        "properties": {
          "main": {
            "type": "boolean",
            "description": "The cell's own value (its last expression), rather than a display."
          },
          "text": {
            "type": "string",
            "description": "As plain text (`text/plain`)."
          },
          "html": {
            "type": "string",
            "description": "As HTML (`text/html`): a table, for a DataFrame."
          },
          "markdown": {
            "type": "string",
            "description": "As Markdown (`text/markdown`)."
          },
          "json": {
            "type": "string",
            "description": "As JSON text (`application/json`)."
          },
          "png": {
            "type": "string",
            "contentEncoding": "base64",
            "description": "As a PNG image (`image/png`): a chart."
          },
          "jpeg": {
            "type": "string",
            "contentEncoding": "base64",
            "description": "As a JPEG image (`image/jpeg`)."
          },
          "svg": {
            "type": "string",
            "description": "As an SVG image (`image/svg+xml`)."
          },
          "latex": {
            "type": "string",
            "description": "As LaTeX (`text/latex`)."
          }
        },
        "required": [
          "main"
        ]
      },
      "CodeError": {
        "type": "object",
        "description": "The exception a cell raised.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Its name (`ZeroDivisionError`)."
          },
          "value": {
            "type": "string",
            "description": "Its message."
          },
          "traceback": {
            "type": "string",
            "description": "Its traceback, as text."
          }
        },
        "required": [
          "name",
          "value",
          "traceback"
        ]
      },
      "CodeRun": {
        "type": "object",
        "description": "A cell that ran.",
        "properties": {
          "context": {
            "type": "string",
            "description": "The context it ran in."
          },
          "language": {
            "type": "string",
            "enum": [
              "python"
            ],
            "description": "Its language."
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "error",
              "timeout"
            ],
            "description": "`ok`; `error`, an exception (`error`); `timeout`, interrupted at its time, its context kept."
          },
          "executionCount": {
            "type": "integer",
            "description": "Its number in its context, as a notebook counts cells."
          },
          "stdout": {
            "type": "string",
            "description": "What it printed."
          },
          "stderr": {
            "type": "string",
            "description": "What it wrote to standard error."
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodeResult"
            },
            "description": "The values it returned and displayed, in order."
          },
          "error": {
            "$ref": "#/components/schemas/CodeError"
          },
          "started": {
            "type": "boolean",
            "description": "Whether its context's kernel was started for it: its first cell, or one after the kernel ended."
          },
          "durationSeconds": {
            "type": "number",
            "description": "How long it ran, in seconds."
          }
        },
        "required": [
          "context",
          "language",
          "status",
          "stdout",
          "stderr",
          "results",
          "started",
          "durationSeconds"
        ]
      },
      "SecretScope": {
        "type": "object",
        "description": "Which machines may use a secret.",
        "properties": {
          "labelsAny": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            },
            "description": "Machines with every label of any one of these sets. Give this or `none`."
          },
          "none": {
            "type": "boolean",
            "description": "`true`: no machine. Runtime alone uses the secret: it is in no machine's requests or environment. A registry login an image import pulls with (`pullSecret`) has this scope. Give this or `labelsAny`."
          }
        }
      },
      "SecretRule": {
        "type": "object",
        "description": "Which requests to a secret's hosts may carry it.",
        "properties": {
          "methods": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only these methods (`POST`); every method when omitted."
          },
          "paths": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only these paths: exact (`/v1/chat/completions`), or a prefix ending in `/*`."
          }
        },
        "required": [
          "paths"
        ]
      },
      "SecretGit": {
        "type": "object",
        "description": "What a git push carrying a secret may update.",
        "properties": {
          "push": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The branches a push may update: 1 to 16 patterns of 12 to 256 characters, `refs/heads/` then a branch name, `*` only at the end, and `{label.<key>}` for the machine's own label right below a fixed first segment (`refs/heads/task/{label.task}`). A tag, a delete or any other ref is refused, and so is every API write that moves a ref. Opening or editing a pull request, reviewing it, and commenting on a pull request or an issue go under any rule that allows the path. Any other API write goes only when a rule names its exact path, with no `*`. A secret with no rules makes no API write."
          }
        },
        "required": [
          "push"
        ]
      },
      "SecretGraphql": {
        "type": "object",
        "description": "The GraphQL mutations a request carrying a secret may make.",
        "properties": {
          "path": {
            "type": "string",
            "description": "The GraphQL endpoint's path; `/graphql` when omitted."
          },
          "mutations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only these mutations, by name (at most 64); a request making any other is refused."
          }
        },
        "required": [
          "mutations"
        ]
      },
      "SecretApi": {
        "type": "object",
        "description": "What API calls carrying a secret may do.",
        "properties": {
          "graphql": {
            "$ref": "#/components/schemas/SecretGraphql"
          }
        }
      },
      "SecretPolicies": {
        "type": "object",
        "description": "How a secret may be used, beyond its hosts: a request carries it only when every policy it holds allows it.",
        "properties": {
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SecretRule"
            },
            "description": "Only requests one of these rules allows carry it; every request to its hosts when omitted. A set with its value and without rules removes them; one without its value keeps them, or narrows them to these."
          },
          "git": {
            "$ref": "#/components/schemas/SecretGit"
          },
          "api": {
            "$ref": "#/components/schemas/SecretApi"
          }
        }
      },
      "SecretSettings": {
        "type": "object",
        "description": "A secret's settings: what it keeps beside its sealed value.",
        "properties": {
          "visible": {
            "type": "boolean",
            "description": "The machine holds the value itself, in its environment variable from its start and in the file `/run/secrets/<envName>` (mode 0400, owned by root), which is rewritten within a second of each change and removed within a second of a delete or a scope that leaves the machine out. For values the proxy cannot put in, such as a database password or an SSH key. Changed only by a set with the value; false when omitted."
          },
          "hosts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The hosts its value goes to on HTTPS: a name, or `*.` and a name for every name under it. Required unless visible; refused when visible."
          },
          "header": {
            "type": "string",
            "description": "The header it is set in on every request to its hosts; when omitted, its placeholder is replaced in the credential headers (Authorization, x-api-key and the like). Hidden secrets only."
          },
          "format": {
            "type": "string",
            "description": "The header's value, `{value}` replaced by the secret; `{value}` when omitted. Hidden secrets only."
          },
          "envName": {
            "type": "string",
            "description": "The environment variable that holds its placeholder (or, when visible, its value) in each machine it reaches; its name when omitted. When two secrets that reach one machine name the same variable, it holds the one first by name."
          },
          "scope": {
            "$ref": "#/components/schemas/SecretScope"
          },
          "policies": {
            "$ref": "#/components/schemas/SecretPolicies"
          }
        }
      },
      "Secret": {
        "type": "object",
        "description": "A secret, without its value.",
        "properties": {
          "visible": {
            "type": "boolean",
            "description": "The machine holds the value itself, in its environment variable from its start and in the file `/run/secrets/<envName>` (mode 0400, owned by root), which is rewritten within a second of each change and removed within a second of a delete or a scope that leaves the machine out. For values the proxy cannot put in, such as a database password or an SSH key. Changed only by a set with the value; false when omitted."
          },
          "hosts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The hosts its value goes to on HTTPS: a name, or `*.` and a name for every name under it. Required unless visible; refused when visible."
          },
          "header": {
            "type": "string",
            "description": "The header it is set in on every request to its hosts; when omitted, its placeholder is replaced in the credential headers (Authorization, x-api-key and the like). Hidden secrets only."
          },
          "format": {
            "type": "string",
            "description": "The header's value, `{value}` replaced by the secret; `{value}` when omitted. Hidden secrets only."
          },
          "envName": {
            "type": "string",
            "description": "The environment variable that holds its placeholder (or, when visible, its value) in each machine it reaches; its name when omitted. When two secrets that reach one machine name the same variable, it holds the one first by name."
          },
          "scope": {
            "$ref": "#/components/schemas/SecretScope"
          },
          "policies": {
            "$ref": "#/components/schemas/SecretPolicies"
          },
          "name": {
            "type": "string",
            "description": "Its name."
          },
          "object": {
            "type": "string",
            "enum": [
              "secret"
            ],
            "description": "Always `secret`."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "deleted"
            ],
            "description": "`active` while requests carry it; `deleted` once deleted: a delete's answer."
          },
          "placeholder": {
            "type": "string",
            "description": "What a machine holds in the value's place; none when visible."
          },
          "version": {
            "type": "integer",
            "description": "Raised by each change."
          },
          "valueBytes": {
            "type": "integer",
            "description": "Its value's length in bytes."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was last changed."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was deleted: a delete's answer, its state `deleted`."
          }
        },
        "required": [
          "name",
          "object",
          "state",
          "version"
        ]
      },
      "SecretSet": {
        "type": "object",
        "description": "A secret to store or replace, or, without its value, to change.",
        "properties": {
          "visible": {
            "type": "boolean",
            "description": "The machine holds the value itself, in its environment variable from its start and in the file `/run/secrets/<envName>` (mode 0400, owned by root), which is rewritten within a second of each change and removed within a second of a delete or a scope that leaves the machine out. For values the proxy cannot put in, such as a database password or an SSH key. Changed only by a set with the value; false when omitted."
          },
          "hosts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The hosts its value goes to on HTTPS: a name, or `*.` and a name for every name under it. Required unless visible; refused when visible."
          },
          "header": {
            "type": "string",
            "description": "The header it is set in on every request to its hosts; when omitted, its placeholder is replaced in the credential headers (Authorization, x-api-key and the like). Hidden secrets only."
          },
          "format": {
            "type": "string",
            "description": "The header's value, `{value}` replaced by the secret; `{value}` when omitted. Hidden secrets only."
          },
          "envName": {
            "type": "string",
            "description": "The environment variable that holds its placeholder (or, when visible, its value) in each machine it reaches; its name when omitted. When two secrets that reach one machine name the same variable, it holds the one first by name."
          },
          "scope": {
            "$ref": "#/components/schemas/SecretScope"
          },
          "policies": {
            "$ref": "#/components/schemas/SecretPolicies"
          },
          "value": {
            "type": "string",
            "format": "password",
            "writeOnly": true,
            "description": "Its value, never answered. Hidden: 1 to 8192 visible ASCII characters and spaces, one line, since it goes into an HTTP header. Visible: 1 byte to 64 KiB of UTF-8 text with no NUL, newlines included (a PEM file, an SSH key, a service account's JSON). With it, the set stores the secret whole, as its fields say. Without it, the set changes only the hosts, `policies.rules` and scope it names, and keeps the rest: hosts and rules only narrow, since widening needs the value, and so does a visible secret's scope, whose machines hold its value; any other field is refused 400."
          },
          "expectedVersion": {
            "type": "integer",
            "description": "Replaced only from this version; 409 otherwise."
          }
        }
      },
      "CiConnect": {
        "type": "object",
        "description": "A repository to run GitHub Actions jobs on Runtime.",
        "properties": {
          "repository": {
            "type": "string",
            "description": "The GitHub repository, `owner/name`.",
            "minLength": 3,
            "maxLength": 200
          }
        },
        "required": [
          "repository"
        ]
      },
      "CiNextStep": {
        "type": "object",
        "description": "What a person does before the connect goes on: open the page, then call again.",
        "properties": {
          "url": {
            "type": "string",
            "description": "The page to open, on Runtime's site."
          },
          "message": {
            "type": "string",
            "description": "What the page asks of them."
          },
          "againSeconds": {
            "type": "integer",
            "description": "Seconds to wait before calling again."
          }
        },
        "required": [
          "url",
          "message",
          "againSeconds"
        ]
      },
      "CiPush": {
        "type": "object",
        "description": "The `runs-on` change, for the caller's own git to commit and push.",
        "properties": {
          "branch": {
            "type": "string",
            "description": "The branch to push it as."
          },
          "base": {
            "type": "string",
            "description": "The default branch it is made on."
          },
          "commit": {
            "type": "string",
            "description": "The default branch's commit it applies to, the new commit's parent."
          },
          "message": {
            "type": "string",
            "description": "The commit's message."
          },
          "patch": {
            "type": "string",
            "description": "The change, a unified diff of the workflow files against `commit` (`git apply` takes it)."
          }
        },
        "required": [
          "branch",
          "base",
          "commit",
          "message",
          "patch"
        ]
      },
      "CiPullRequest": {
        "type": "object",
        "description": "A pull request on GitHub.",
        "properties": {
          "number": {
            "type": "integer",
            "description": "Its number in the repository."
          },
          "url": {
            "type": "string",
            "description": "Its page on GitHub."
          }
        },
        "required": [
          "number",
          "url"
        ]
      },
      "CiCheck": {
        "type": "object",
        "description": "A check of the pull request, on GitHub.",
        "properties": {
          "name": {
            "type": "string",
            "description": "The job's name."
          },
          "url": {
            "type": "string",
            "description": "Its page on GitHub, with its log as it runs."
          }
        },
        "required": [
          "name",
          "url"
        ]
      },
      "CiRunsOn": {
        "type": "object",
        "description": "One `runs-on` line of a workflow.",
        "properties": {
          "file": {
            "type": "string",
            "description": "The workflow's file, from the repository's root."
          },
          "line": {
            "type": "integer",
            "description": "Its line number, from 1."
          },
          "from": {
            "type": "string",
            "description": "Its labels as written."
          },
          "to": {
            "type": "string",
            "description": "Its labels in the pull request; omitted when it is left unchanged."
          },
          "why": {
            "type": "string",
            "description": "Why it is left unchanged."
          }
        },
        "required": [
          "file",
          "line",
          "from"
        ]
      },
      "CiUsage": {
        "type": "object",
        "description": "The repository's GitHub Actions jobs over the last days, priced on GitHub and on Runtime.",
        "properties": {
          "days": {
            "type": "integer",
            "description": "The days read, up to today."
          },
          "runs": {
            "type": "integer",
            "description": "The workflow runs in those days."
          },
          "read": {
            "type": "integer",
            "description": "The runs whose jobs were read: the newest, when there were more than are read."
          },
          "minutes": {
            "type": "integer",
            "description": "Minutes GitHub billed for the jobs this pull request moves (each job rounded up to a minute), counted over the runs read and scaled to every run."
          },
          "githubCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "What those minutes cost on GitHub, at its published per-minute rates."
          },
          "runtimeCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "What they cost on Runtime, by the second, at its per-vCPU-minute rate for each runner's size."
          },
          "otherMinutes": {
            "type": "integer",
            "description": "Minutes of jobs that stay where they run (macOS, Windows, ARM, other runners)."
          }
        },
        "required": [
          "days",
          "runs",
          "read",
          "minutes",
          "githubCost",
          "runtimeCost",
          "otherMinutes"
        ]
      },
      "CiConnection": {
        "type": "object",
        "description": "A repository's connect: where it stands, and once done, its pull request.",
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "ci_connection"
            ],
            "description": "Always `ci_connection`."
          },
          "repository": {
            "type": "string",
            "description": "The repository, `owner/name`."
          },
          "status": {
            "type": "string",
            "enum": [
              "needs_card",
              "needs_install",
              "needs_authorization",
              "needs_push",
              "opened",
              "up_to_date"
            ],
            "description": "Where it stands: `needs_card`, `needs_install` or `needs_authorization` until a person acts at `next.url`; `needs_push` until the caller's git pushes `push`; then `opened`, or `up_to_date` when nothing is left to change."
          },
          "message": {
            "type": "string",
            "description": "What it tells a person, with the links they open."
          },
          "next": {
            "$ref": "#/components/schemas/CiNextStep"
          },
          "push": {
            "$ref": "#/components/schemas/CiPush"
          },
          "pullRequest": {
            "$ref": "#/components/schemas/CiPullRequest"
          },
          "check": {
            "$ref": "#/components/schemas/CiCheck"
          },
          "changed": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CiRunsOn"
            },
            "description": "Each line the pull request changes."
          },
          "unchanged": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CiRunsOn"
            },
            "description": "Each `runs-on` line it leaves as it is, and why."
          },
          "usage": {
            "$ref": "#/components/schemas/CiUsage"
          }
        },
        "required": [
          "object",
          "repository",
          "status",
          "message",
          "changed",
          "unchanged"
        ]
      },
      "JobSchedule": {
        "type": "object",
        "description": "When a job runs: once, at `at`; or at each time of its `cron` in its `timezone`. One of the two.",
        "properties": {
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "The one time it runs."
          },
          "cron": {
            "type": "string",
            "description": "A cron expression of five fields (minute, hour, day of month, month, day of week), as cron reads them, or `@hourly`, `@daily`, `@weekly`, `@monthly` or `@yearly`."
          },
          "timezone": {
            "type": "string",
            "description": "The IANA timezone its cron's times are in (`America/Denver`), daylight saving included; UTC when omitted."
          }
        }
      },
      "JobRetry": {
        "type": "object",
        "description": "How a failed run is run again: a run that ends with an exit code other than 0, or at its timeout.",
        "properties": {
          "maxAttempts": {
            "type": "integer",
            "description": "Attempts in all for one time, the first included; 1 (no retry) when omitted.",
            "minimum": 1,
            "maximum": 10,
            "default": 1
          },
          "backoffSeconds": {
            "type": "integer",
            "description": "Seconds from a failed attempt's end to the next.",
            "minimum": 0,
            "maximum": 86400,
            "default": 30
          }
        }
      },
      "JobSecrets": {
        "type": "object",
        "description": "Which of its org's secrets each run gets, and under which variables.",
        "properties": {
          "only": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The secrets each run gets in their own variables, by name: only those of them whose scope admits it; [] none.",
            "maxItems": 64
          },
          "env": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Variables each holding the value of one of the org's visible secrets whose scope admits the run, by the secret's name, `only` or not: `{\"WEBSITE_TOKEN\": \"CRON_SECRET\"}`."
          }
        }
      },
      "JobSettings": {
        "type": "object",
        "description": "A job's settings: what each of its runs is made with.",
        "properties": {
          "schedule": {
            "$ref": "#/components/schemas/JobSchedule"
          },
          "run": {
            "$ref": "#/components/schemas/SandboxRun"
          },
          "retry": {
            "$ref": "#/components/schemas/JobRetry"
          },
          "secrets": {
            "$ref": "#/components/schemas/JobSecrets"
          },
          "vcpu": {
            "type": "integer",
            "description": "Each run's vCPUs, at least every plan's least (a smaller number is taken as it); a job's default (2) when omitted.",
            "minimum": 2
          },
          "memoryGB": {
            "type": "number",
            "description": "Each run's memory in GB (1 GB is 1,024 MiB); a fraction is taken to the MiB (`0.5`). A job's default (1) when omitted.",
            "minimum": 1
          },
          "diskGB": {
            "type": "number",
            "description": "Each run's disk in GB, to the MiB, over a fresh copy of its image. When omitted, a job's default (4) or its image's size, whichever is larger.",
            "minimum": 1
          },
          "image": {
            "type": "string",
            "description": "The image each run boots, by name (its newest version), `name:version` or ID; Runtime's default image when omitted."
          },
          "user": {
            "type": "string",
            "enum": [
              "runtime",
              "root"
            ],
            "description": "Who its command runs as: `runtime` (uid 1000, with passwordless sudo) or `root`. Its image's when omitted, else `runtime`."
          },
          "volumes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VolumeMount"
            },
            "description": "Volumes each run attaches and mounts, at most one, in the job's project; a run waits while another machine holds it."
          },
          "maxCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most one run may cost, in US dollars (`\"0.50\"`): a run pauses once it has cost that, as a machine at its maxCost does."
          }
        }
      },
      "JobCreate": {
        "type": "object",
        "description": "A job to create: its schedule and run are required.",
        "properties": {
          "schedule": {
            "$ref": "#/components/schemas/JobSchedule"
          },
          "run": {
            "$ref": "#/components/schemas/SandboxRun"
          },
          "retry": {
            "$ref": "#/components/schemas/JobRetry"
          },
          "secrets": {
            "$ref": "#/components/schemas/JobSecrets"
          },
          "vcpu": {
            "type": "integer",
            "description": "Each run's vCPUs, at least every plan's least (a smaller number is taken as it); a job's default (2) when omitted.",
            "minimum": 2
          },
          "memoryGB": {
            "type": "number",
            "description": "Each run's memory in GB (1 GB is 1,024 MiB); a fraction is taken to the MiB (`0.5`). A job's default (1) when omitted.",
            "minimum": 1
          },
          "diskGB": {
            "type": "number",
            "description": "Each run's disk in GB, to the MiB, over a fresh copy of its image. When omitted, a job's default (4) or its image's size, whichever is larger.",
            "minimum": 1
          },
          "image": {
            "type": "string",
            "description": "The image each run boots, by name (its newest version), `name:version` or ID; Runtime's default image when omitted."
          },
          "user": {
            "type": "string",
            "enum": [
              "runtime",
              "root"
            ],
            "description": "Who its command runs as: `runtime` (uid 1000, with passwordless sudo) or `root`. Its image's when omitted, else `runtime`."
          },
          "volumes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VolumeMount"
            },
            "description": "Volumes each run attaches and mounts, at most one, in the job's project; a run waits while another machine holds it."
          },
          "maxCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most one run may cost, in US dollars (`\"0.50\"`): a run pauses once it has cost that, as a machine at its maxCost does."
          },
          "name": {
            "type": "string",
            "description": "Its name, unique in its project."
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Labels to find it by; each run carries them."
          }
        }
      },
      "JobError": {
        "type": "object",
        "description": "Why a time's run was not made and will not be tried again: the answer its create got. The job waits for its next time; a run made takes it off.",
        "properties": {
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "The time whose run was not made."
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status its create was answered with."
          },
          "code": {
            "type": "string",
            "description": "The error's code, as any call's error names it."
          },
          "message": {
            "type": "string",
            "description": "What went wrong."
          },
          "requestId": {
            "type": "string",
            "description": "The create's request ID, for support."
          }
        },
        "required": [
          "at",
          "status",
          "code",
          "message"
        ]
      },
      "Job": {
        "type": "object",
        "description": "A job.",
        "properties": {
          "schedule": {
            "$ref": "#/components/schemas/JobSchedule"
          },
          "run": {
            "$ref": "#/components/schemas/SandboxRun"
          },
          "retry": {
            "$ref": "#/components/schemas/JobRetry"
          },
          "secrets": {
            "$ref": "#/components/schemas/JobSecrets"
          },
          "vcpu": {
            "type": "integer",
            "description": "Each run's vCPUs, at least every plan's least (a smaller number is taken as it); a job's default (2) when omitted.",
            "minimum": 2
          },
          "memoryGB": {
            "type": "number",
            "description": "Each run's memory in GB (1 GB is 1,024 MiB); a fraction is taken to the MiB (`0.5`). A job's default (1) when omitted.",
            "minimum": 1
          },
          "diskGB": {
            "type": "number",
            "description": "Each run's disk in GB, to the MiB, over a fresh copy of its image. When omitted, a job's default (4) or its image's size, whichever is larger.",
            "minimum": 1
          },
          "image": {
            "type": "string",
            "description": "The image each run boots, by name (its newest version), `name:version` or ID; Runtime's default image when omitted."
          },
          "user": {
            "type": "string",
            "enum": [
              "runtime",
              "root"
            ],
            "description": "Who its command runs as: `runtime` (uid 1000, with passwordless sudo) or `root`. Its image's when omitted, else `runtime`."
          },
          "volumes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VolumeMount"
            },
            "description": "Volumes each run attaches and mounts, at most one, in the job's project; a run waits while another machine holds it."
          },
          "maxCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most one run may cost, in US dollars (`\"0.50\"`): a run pauses once it has cost that, as a machine at its maxCost does."
          },
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "job"
            ],
            "description": "Always `job`."
          },
          "name": {
            "type": "string",
            "description": "Its name, unique in its project."
          },
          "state": {
            "type": "string",
            "enum": [
              "scheduled",
              "paused",
              "finished",
              "deleted"
            ],
            "description": "Where it is: `scheduled` (its runs are made at their times), `paused` (none is), `finished` (its one time ran)."
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Its labels."
          },
          "nextRunAt": {
            "type": "string",
            "format": "date-time",
            "description": "When its next run is made, or its next retry; none when paused or finished."
          },
          "lastError": {
            "$ref": "#/components/schemas/JobError"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created."
          },
          "revision": {
            "type": "integer",
            "description": "Its revision, changed by every change to it."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was deleted: a delete's answer, its state `deleted`."
          }
        },
        "required": [
          "id",
          "object",
          "state",
          "labels"
        ]
      },
      "JobRun": {
        "type": "object",
        "description": "One run of a job: a machine made at one of its times, deleted when its command ended.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "job.run"
            ],
            "description": "Always `job.run`."
          },
          "job": {
            "type": "string",
            "description": "Its job's ID."
          },
          "state": {
            "type": "string",
            "enum": [
              "starting",
              "running",
              "paused",
              "deleted",
              "error"
            ],
            "description": "Its machine's state: `starting` and `running` while it runs, `deleted` once it ended, `error` when it failed to start."
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "The time it is for: its schedule's, or when it was asked for."
          },
          "attempt": {
            "type": "integer",
            "description": "Its attempt at that time, from 1."
          },
          "manual": {
            "type": "boolean",
            "description": "Someone asked for it (`run`), rather than its schedule."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          },
          "endedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When its command ended."
          },
          "exitCode": {
            "type": "integer",
            "description": "Its command's exit code, once it ended; none for one a signal or its timeout ended, or one deleted before its end."
          },
          "succeeded": {
            "type": "boolean",
            "description": "It ended with exit code 0."
          },
          "outputBytes": {
            "type": "integer",
            "description": "How many bytes its command wrote, stdout and stderr together."
          }
        },
        "required": [
          "id",
          "object",
          "job",
          "state",
          "at",
          "attempt",
          "manual",
          "createdAt",
          "succeeded"
        ]
      },
      "JobRunOutput": {
        "type": "object",
        "description": "A run's output, stdout and stderr together in the order written, after a cursor: its last 256 KiB are kept.",
        "properties": {
          "chunks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OutputChunk"
            },
            "description": "The output, in the order it was written."
          },
          "nextCursor": {
            "type": "integer",
            "description": "The cursor to read on from."
          },
          "truncated": {
            "type": "boolean",
            "description": "Output before what is kept was dropped, past the cursor."
          },
          "complete": {
            "type": "boolean",
            "description": "The run ended and nothing is left past the next cursor."
          }
        },
        "required": [
          "chunks",
          "nextCursor",
          "truncated",
          "complete"
        ]
      },
      "StoredUpdate": {
        "type": "object",
        "description": "A change to a snapshot, an image version or a volume: each field left out stays as it is.",
        "properties": {
          "deleteAfterSeconds": {
            "type": "integer",
            "description": "Seconds from now until Runtime deletes it, as its delete does: final, and it can't be undone. Sent again before then, it renews it; 0 takes its end off (kept until deleted).",
            "minimum": 0,
            "maximum": 315360000
          },
          "deleteProtection": {
            "type": "boolean",
            "description": "true refuses its delete (409 `delete_protected`) until an update sends false. Not while it has a `deleteAt`, unless the same update sends `deleteAfterSeconds` 0."
          }
        }
      },
      "ContextAsked": {
        "type": "object",
        "description": "Chunks of a build's context, by their SHA-256.",
        "properties": {
          "digests": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "At most 10,000 SHA-256 digests, each 64 lowercase hex digits."
          }
        },
        "required": [
          "digests"
        ]
      },
      "ContextMissing": {
        "type": "object",
        "description": "Which chunks of a build's context still need uploading.",
        "properties": {
          "missing": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The digests asked for that the organization's build context does not hold, sorted, each once."
          }
        },
        "required": [
          "missing"
        ]
      },
      "ChunkStored": {
        "type": "object",
        "description": "A chunk of a build's context, uploaded.",
        "properties": {
          "sha256": {
            "type": "string",
            "description": "Its SHA-256."
          },
          "size": {
            "type": "integer",
            "description": "Its size in bytes."
          },
          "stored": {
            "type": "boolean",
            "description": "Stored by this call: false when the build context held it already."
          }
        },
        "required": [
          "sha256",
          "size",
          "stored"
        ]
      },
      "ImageFile": {
        "type": "object",
        "description": "A file of an image build's context, sent inline.",
        "properties": {
          "path": {
            "type": "string",
            "description": "Its path in the build context, which `COPY` and `ADD` read."
          },
          "content": {
            "type": "string",
            "description": "Its content: UTF-8 text, or base64 when `encoding` says so."
          },
          "encoding": {
            "type": "string",
            "enum": [
              "utf8",
              "base64"
            ],
            "description": "`utf8` (the default) or `base64`."
          },
          "mode": {
            "type": "integer",
            "description": "Its permission bits, 0 to 511 (0777 in octal).",
            "minimum": 0,
            "maximum": 511
          }
        },
        "required": [
          "path",
          "content"
        ]
      },
      "ImageRecipe": {
        "type": "object",
        "description": "An image described by its packages, files and commands, rendered into a Dockerfile: `FROM` its base, its `env`, one `RUN` each for its apt, pip and npm packages, its files, then its commands in `workdir`.",
        "properties": {
          "base": {
            "type": "string",
            "description": "The image it starts from: `runtime` (the default, Runtime's own) or an OCI image, such as `python:3.12-slim`."
          },
          "apt": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Debian packages, each `name` or `name=version`.",
            "maxItems": 500
          },
          "pip": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Python packages, each as pip takes one: `pandas`, `numpy==2.1`, `uvicorn[standard]>=0.30`.",
            "maxItems": 500
          },
          "npm": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "npm packages, installed globally: `typescript`, `@scope/tool@1`.",
            "maxItems": 500
          },
          "commands": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Shell commands, each run by `/bin/sh` in `workdir` after the packages and files.",
            "maxItems": 500
          },
          "env": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Environment set before the packages; `$NAME` names its base's."
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImageFile"
            },
            "description": "Files written into the image, each `path` absolute: at most 1 MiB in all.",
            "maxItems": 256
          },
          "workdir": {
            "type": "string",
            "description": "Where its commands run and its machines start: `/workspace` by default."
          }
        }
      },
      "ImageArchive": {
        "type": "object",
        "description": "A build context's archive: a tar (gzip allowed), cut into chunks of at most 1 MiB, each uploaded first (`images.context.put`).",
        "properties": {
          "sha256": {
            "type": "string",
            "description": "The whole archive's SHA-256, in hex."
          },
          "size": {
            "type": "integer",
            "description": "Its size in bytes.",
            "minimum": 1
          },
          "chunks": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Its chunks' SHA-256s, in order.",
            "maxItems": 200
          }
        },
        "required": [
          "sha256",
          "size",
          "chunks"
        ]
      },
      "ImageContextFile": {
        "type": "object",
        "description": "A regular file of a build context's archive.",
        "properties": {
          "path": {
            "type": "string",
            "description": "Its path in the context."
          },
          "sha256": {
            "type": "string",
            "description": "Its SHA-256, in hex."
          },
          "size": {
            "type": "integer",
            "description": "Its size in bytes."
          },
          "mode": {
            "type": "integer",
            "description": "Its permission bits."
          }
        },
        "required": [
          "path",
          "sha256",
          "size"
        ]
      },
      "ImageContext": {
        "type": "object",
        "description": "A build context uploaded as chunks: the SDKs and CLI make it from a folder and its `.dockerignore`.",
        "properties": {
          "archive": {
            "$ref": "#/components/schemas/ImageArchive"
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImageContextFile"
            },
            "description": "Every regular file in it."
          }
        },
        "required": [
          "archive",
          "files"
        ]
      },
      "ImageBuild": {
        "type": "object",
        "description": "What an image's build runs on: a machine of its own, deleted once the build ends.",
        "properties": {
          "vcpu": {
            "type": "integer",
            "description": "Its vCPUs; a build machine's default when omitted.",
            "minimum": 1,
            "maximum": 8
          },
          "memoryGB": {
            "type": "number",
            "description": "Its memory in GB; a build machine's default when omitted.",
            "minimum": 1,
            "maximum": 16
          },
          "diskGB": {
            "type": "number",
            "description": "Its disk in GB: the base image, the earlier stages and the context. A build machine's default when omitted, at least its image's size.",
            "minimum": 4,
            "maximum": 32
          },
          "timeoutSeconds": {
            "type": "integer",
            "description": "Seconds the build may run before it fails.",
            "minimum": 60,
            "maximum": 3600,
            "default": 1800
          }
        }
      },
      "ImageCreate": {
        "type": "object",
        "description": "An image to build, from exactly one of `image` and `dockerfile`.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Its name, 1 to 64 of `a-z`, `0-9`, `.`, `_` and `-`: each build of a name is its next version."
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Labels to find it by."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tags its name takes for it once it is ready; `latest` when it has a name and none is given.",
            "maxItems": 16
          },
          "image": {
            "type": "string",
            "description": "An OCI image to use as it is: `python:3.12-slim`, `ghcr.io/org/app:1`. A private one is named by its digest, `repo@sha256:<64 hex digits>`, with `pullSecret`."
          },
          "pullSecret": {
            "type": "string",
            "description": "The secret holding the registry login that pulls a private `image`: a hidden secret with header `Authorization`, format `Basic {value}`, its value the base64 of `username:token`, as its hosts the registry's token service (`auth.docker.io` for Docker Hub, the registry's own name for `ghcr.io`, `quay.io` and others), and as its scope `{\"none\": true}`, so no machine's requests carry it. Runtime's egress proxy signs in with it for this import's build machine alone, which never holds the login or a token. The caller needs the `secrets:use` permission."
          },
          "dockerfile": {
            "type": "string",
            "description": "A Dockerfile: multi-stage builds, `ARG`, `COPY --from`, heredocs. `COPY` reads `files`."
          },
          "recipe": {
            "$ref": "#/components/schemas/ImageRecipe"
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImageFile"
            },
            "description": "The Dockerfile's build context, inline: at most 1 MiB in all. Not with `context`.",
            "maxItems": 256
          },
          "context": {
            "$ref": "#/components/schemas/ImageContext"
          },
          "dockerignore": {
            "type": "string",
            "description": "The context's `.dockerignore`: what it names is never copied."
          },
          "target": {
            "type": "string",
            "description": "The stage to build instead of the last."
          },
          "buildArgs": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "The Dockerfile's `ARG` values."
          },
          "env": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Environment every machine from it starts with, over the Dockerfile's `ENV`."
          },
          "start": {
            "$ref": "#/components/schemas/MachineStart"
          },
          "build": {
            "$ref": "#/components/schemas/ImageBuild"
          },
          "deleteAfterSeconds": {
            "type": "integer",
            "description": "Seconds until Runtime deletes this version, as its delete does: final, and it can't be undone; one an App boots is deleted once none does. 0 or omitted: kept until deleted.",
            "minimum": 0,
            "maximum": 315360000
          },
          "deleteProtection": {
            "type": "boolean",
            "description": "Whether this version's delete is refused (409 `delete_protected`) until an update turns this off; false when omitted. Not with `deleteAfterSeconds`."
          }
        }
      },
      "ImageLogLine": {
        "type": "object",
        "description": "One line of an image's build log.",
        "properties": {
          "seq": {
            "type": "integer",
            "description": "Its number, from 1."
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was written."
          },
          "stream": {
            "type": "string",
            "enum": [
              "build",
              "system"
            ],
            "description": "`build` (the build's output) or `system` (Runtime's)."
          },
          "text": {
            "type": "string",
            "description": "The line, without its newline."
          }
        },
        "required": [
          "seq",
          "at",
          "stream",
          "text"
        ]
      },
      "ImageLogs": {
        "type": "object",
        "description": "An image's build log after a line.",
        "properties": {
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImageLogLine"
            },
            "description": "The lines after `after`, in order."
          },
          "nextAfter": {
            "type": "integer",
            "description": "The last line's number: send it as `after` to read on."
          },
          "state": {
            "type": "string",
            "enum": [
              "making",
              "ready",
              "failed",
              "deleted"
            ],
            "description": "The image's state."
          },
          "truncated": {
            "type": "boolean",
            "description": "Whether lines before these were dropped."
          },
          "done": {
            "type": "boolean",
            "description": "Whether the build has ended: no line comes after these."
          }
        },
        "required": [
          "lines",
          "nextAfter",
          "state",
          "truncated",
          "done"
        ]
      },
      "VolumeSettings": {
        "type": "object",
        "description": "A volume's settings.",
        "properties": {
          "snapshotSchedule": {
            "$ref": "#/components/schemas/SnapshotSchedule"
          }
        }
      },
      "VolumeCreate": {
        "type": "object",
        "description": "A volume to create: an empty disk, formatted ext4 at its first mount.",
        "properties": {
          "snapshotSchedule": {
            "$ref": "#/components/schemas/SnapshotSchedule"
          },
          "name": {
            "type": "string",
            "description": "Its name, unique in its project among volumes."
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Labels to find it by."
          },
          "sizeMiB": {
            "type": "integer",
            "description": "Its size in MiB, 64 to 409600 (400 GiB). Not with `from`, whose snapshot's size it takes."
          },
          "from": {
            "type": "string",
            "description": "A snapshot of a volume, by its ID (`ready`), to restore: the new volume holds what that volume held when the snapshot was taken, at its size. A restore is always a new volume, never an overwrite."
          },
          "deleteAfterSeconds": {
            "type": "integer",
            "description": "Seconds until Runtime deletes it and what it holds, as its delete does: final, and it can't be undone; one attached to a machine is deleted once that machine ends. 0 or omitted: kept until deleted.",
            "minimum": 0,
            "maximum": 315360000
          },
          "deleteProtection": {
            "type": "boolean",
            "description": "Whether its delete is refused (409 `delete_protected`) until an update turns this off; false when omitted. Not with `deleteAfterSeconds`."
          }
        }
      },
      "VolumeUpdate": {
        "type": "object",
        "description": "A change to a volume: each field left out stays as it is.",
        "properties": {
          "deleteAfterSeconds": {
            "type": "integer",
            "description": "Seconds from now until Runtime deletes it, as its delete does: final, and it can't be undone. Sent again before then, it renews it; 0 takes its end off (kept until deleted).",
            "minimum": 0,
            "maximum": 315360000
          },
          "deleteProtection": {
            "type": "boolean",
            "description": "true refuses its delete (409 `delete_protected`) until an update sends false. Not while it has a `deleteAt`, unless the same update sends `deleteAfterSeconds` 0."
          },
          "snapshotSchedule": {
            "$ref": "#/components/schemas/SnapshotSchedule"
          }
        }
      },
      "SessionCreate": {
        "type": "object",
        "description": "A session to make.",
        "properties": {
          "machineId": {
            "type": "string",
            "description": "The machine it reaches (a sandbox, an app, a desktop, any machine), by its ID."
          },
          "expiresInSeconds": {
            "type": "integer",
            "description": "Seconds until it stops working, 60 to 86400; 3600 when omitted. Never past the key that makes it.",
            "minimum": 60,
            "maximum": 86400
          },
          "name": {
            "type": "string",
            "description": "Its name: your own handle for it, such as the user it is for.",
            "minLength": 1,
            "maxLength": 64
          }
        },
        "required": [
          "machineId"
        ]
      },
      "Session": {
        "type": "object",
        "description": "A session: a token for one machine, for a frontend.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "session"
            ],
            "description": "Always `session`."
          },
          "machineId": {
            "type": "string",
            "description": "The machine it reaches, alone."
          },
          "name": {
            "type": "string",
            "description": "Its name, as its maker gave it."
          },
          "accountId": {
            "type": "string",
            "description": "The person it acts as or for."
          },
          "agentId": {
            "type": "string",
            "description": "The agent or CI pipeline it acts as."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "deleted"
            ],
            "description": "`active` while it works; `deleted` once ended: a delete's answer."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it stops working: its own end, or the end of the key that made it, the sooner."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When a delete ended it, or a revoke of the key that made it: a delete's answer, and a create's sent again once it ended. Omitted for one that ended at `expiresAt`."
          }
        },
        "required": [
          "id",
          "object",
          "machineId",
          "name",
          "state",
          "createdAt",
          "expiresAt"
        ]
      },
      "SessionCreated": {
        "type": "object",
        "description": "A session just made, with its token: shown this once, never again.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "session"
            ],
            "description": "Always `session`."
          },
          "machineId": {
            "type": "string",
            "description": "The machine it reaches, alone."
          },
          "name": {
            "type": "string",
            "description": "Its name, as its maker gave it."
          },
          "accountId": {
            "type": "string",
            "description": "The person it acts as or for."
          },
          "agentId": {
            "type": "string",
            "description": "The agent or CI pipeline it acts as."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "deleted"
            ],
            "description": "`active` while it works; `deleted` once ended: a delete's answer."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it stops working: its own end, or the end of the key that made it, the sooner."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When a delete ended it, or a revoke of the key that made it: a delete's answer, and a create's sent again once it ended. Omitted for one that ended at `expiresAt`."
          },
          "token": {
            "type": "string",
            "description": "The token, to send as `Authorization: Bearer <token>` from the frontend."
          }
        },
        "required": [
          "id",
          "object",
          "machineId",
          "name",
          "state",
          "createdAt",
          "expiresAt",
          "token"
        ]
      },
      "KeyGitHubTrust": {
        "type": "object",
        "description": "The GitHub Actions jobs a key trusts, as it holds them: by GitHub's own numbers.",
        "properties": {
          "repository": {
            "type": "string",
            "description": "The repository's name as GitHub gave it when the key was made: in the create's answer alone, as its name is GitHub's to change."
          },
          "repositoryId": {
            "type": "integer",
            "description": "GitHub's number for the repository, which a rename keeps."
          },
          "ownerId": {
            "type": "integer",
            "description": "GitHub's number for the account that owns it."
          },
          "workflow": {
            "type": "string",
            "description": "The workflow a job must run, as its path in the repository; any when omitted."
          },
          "ref": {
            "type": "string",
            "description": "The ref a job must run on; any when omitted."
          }
        },
        "required": [
          "repositoryId",
          "ownerId"
        ]
      },
      "Key": {
        "type": "object",
        "description": "An API key, without its secret.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "key"
            ],
            "description": "Always `key`."
          },
          "name": {
            "type": "string",
            "description": "Its name, as its maker gave it."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "deleted"
            ],
            "description": "`active` while it works; `deleted` once revoked: a delete's answer."
          },
          "accountId": {
            "type": "string",
            "description": "The person it acts as or for."
          },
          "agentId": {
            "type": "string",
            "description": "The agent or CI pipeline it acts as."
          },
          "projectId": {
            "type": "string",
            "description": "The one project it acts in; every project its holder reaches when omitted."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it stops working; never when omitted."
          },
          "lastUsedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was last used."
          },
          "maxCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most one request made with it commits, in US dollars."
          },
          "spendCap": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most the machines made with it, with those of every key made with it, may spend over spendCapWindowSeconds, in US dollars."
          },
          "spendCapWindowSeconds": {
            "type": "integer",
            "description": "The rolling window spendCap counts over, in seconds."
          },
          "spent": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "What it spent over spendCapWindowSeconds (the last 24 hours when it has no spendCap), in US dollars, as spendCap counts it: its machines' and those of every key made with it. Listed and updated keys only."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was revoked: a delete's answer, its state `deleted`."
          },
          "github": {
            "$ref": "#/components/schemas/KeyGitHubTrust"
          }
        },
        "required": [
          "id",
          "object",
          "name",
          "state",
          "createdAt"
        ]
      },
      "KeyAuthorization": {
        "type": "object",
        "description": "An OAuth client's request for a key, as `/v2/oauth/authorize` received it.",
        "properties": {
          "clientId": {
            "type": "string",
            "description": "The client's `client_id`."
          },
          "redirectUri": {
            "type": "string",
            "description": "Where the client is sent back: one of its redirect URIs."
          },
          "codeChallenge": {
            "type": "string",
            "description": "Its S256 `code_challenge`."
          },
          "state": {
            "type": "string",
            "description": "Its `state`, sent back unchanged."
          }
        },
        "required": [
          "clientId",
          "redirectUri",
          "codeChallenge"
        ]
      },
      "KeyGitHub": {
        "type": "object",
        "description": "The GitHub Actions jobs that may assume a key (`POST /v2/keys/{id}:assume`), with their workflow's OpenID Connect token.",
        "properties": {
          "repository": {
            "type": "string",
            "description": "The repository, `owner/name`: one that a GitHub account connected to the organization through Runtime's GitHub App holds. The key holds it by GitHub's own numbers for it and its owner, so a renamed repository still passes and another repository made under its old name never does."
          },
          "workflow": {
            "type": "string",
            "description": "The workflow a job must run, as its path in the repository (`.github/workflows/deploy.yml`); any of the repository's when omitted."
          },
          "ref": {
            "type": "string",
            "description": "The ref a job must run on (`refs/heads/main`); any when omitted."
          }
        },
        "required": [
          "repository"
        ]
      },
      "KeyCreate": {
        "type": "object",
        "description": "A key to make.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Its name.",
            "minLength": 1,
            "maxLength": 64
          },
          "projectId": {
            "type": "string",
            "description": "Held to this one project (Growth and up); every project its holder reaches when omitted."
          },
          "agentId": {
            "type": "string",
            "description": "One of the organization's agents or CI pipelines it acts as, for the caller; the caller itself when omitted."
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The actions it holds, each `product:action` as each call's reference page names it (`sandboxes:create`, `sandboxes:exec`), on every plan: it acts as an agent of its own granted exactly these, never more than its caller may do or spend, in every project its caller reaches (one held to one project, with projectId or by a caller that reaches one alone, starts at Growth), and its agent and role are deleted with it. Omitted, it holds every action its holder's grant allows, or, made with a key that has actions, those actions. Not with agentId."
          },
          "expiresInSeconds": {
            "type": "integer",
            "description": "Seconds until it stops working; never when omitted.",
            "minimum": 60,
            "maximum": 31536000
          },
          "maxCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most one request made with it may commit, in US dollars (`\"5.00\"`): one asking more is refused 403, and a create that names no maxCost gets this one. Made with a key that has one, at most that key's."
          },
          "spendCap": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most the machines made with it, with those of every key made with it, may spend over spendCapWindowSeconds, in US dollars, as billed: once reached, a create is refused 403 until the window passes it, and a create that names no maxCost gets what is left as its maxCost. Running machines may pass it. Made with a key that has one, at most that key's, and counted in it too."
          },
          "spendCapWindowSeconds": {
            "type": "integer",
            "description": "The rolling window spendCap counts over, in seconds; a day when omitted.",
            "minimum": 60,
            "maximum": 2592000
          },
          "userCode": {
            "type": "string",
            "description": "The code a device shows (OAuth 2.0 device flow, RFC 8628): the key goes to that device, never in this answer."
          },
          "authorization": {
            "$ref": "#/components/schemas/KeyAuthorization"
          },
          "github": {
            "$ref": "#/components/schemas/KeyGitHub"
          }
        },
        "required": [
          "name"
        ]
      },
      "KeyCreated": {
        "type": "object",
        "description": "A key just made, with its secret: shown this once, never again.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "key"
            ],
            "description": "Always `key`."
          },
          "name": {
            "type": "string",
            "description": "Its name, as its maker gave it."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "deleted"
            ],
            "description": "`active` while it works; `deleted` once revoked: a delete's answer."
          },
          "accountId": {
            "type": "string",
            "description": "The person it acts as or for."
          },
          "agentId": {
            "type": "string",
            "description": "The agent or CI pipeline it acts as."
          },
          "projectId": {
            "type": "string",
            "description": "The one project it acts in; every project its holder reaches when omitted."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it stops working; never when omitted."
          },
          "lastUsedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was last used."
          },
          "maxCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most one request made with it commits, in US dollars."
          },
          "spendCap": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most the machines made with it, with those of every key made with it, may spend over spendCapWindowSeconds, in US dollars."
          },
          "spendCapWindowSeconds": {
            "type": "integer",
            "description": "The rolling window spendCap counts over, in seconds."
          },
          "spent": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "What it spent over spendCapWindowSeconds (the last 24 hours when it has no spendCap), in US dollars, as spendCap counts it: its machines' and those of every key made with it. Listed and updated keys only."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was revoked: a delete's answer, its state `deleted`."
          },
          "github": {
            "$ref": "#/components/schemas/KeyGitHubTrust"
          },
          "secret": {
            "type": "string",
            "description": "The key itself, to send as `Authorization: Bearer <secret>`; omitted for a key a device or an OAuth client collects."
          },
          "redirectTo": {
            "type": "string",
            "description": "For an OAuth client's key: where to send the person, with the code the client exchanges for it."
          }
        },
        "required": [
          "id",
          "object",
          "name",
          "state",
          "createdAt"
        ]
      },
      "KeyUpdate": {
        "type": "object",
        "description": "A change to a key: each field left out stays as it is.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Its name.",
            "minLength": 1,
            "maxLength": 64
          },
          "maxCost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most one request made with it may commit, in US dollars (`\"5.00\"`). Never more than a key it was made with, nor than the key that changes it: a key never raises its own caps."
          },
          "spendCap": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most the machines made with it, with those of every key made with it, may spend over spendCapWindowSeconds, in US dollars, as billed. Never more than a key it was made with, nor than the key that changes it."
          },
          "spendCapWindowSeconds": {
            "type": "integer",
            "description": "The rolling window spendCap counts over, in seconds; kept when omitted, a day for a key that had no spendCap.",
            "minimum": 60,
            "maximum": 2592000
          },
          "remove": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "maxCost",
                "spendCap"
              ]
            },
            "description": "Caps to remove: `maxCost`, `spendCap`. The key is then held only by the caps of the keys it was made with and of its holder's grants."
          }
        }
      },
      "ProjectLimits": {
        "type": "object",
        "description": "A project's own limits: each of its organization's plan limits set lower for it alone, never higher, by the price card's names and in its units. A start in it is held to both. One not set is its organization's.",
        "properties": {
          "runningVcpu": {
            "type": "integer",
            "description": "The most vCPUs its machines run at once.",
            "minimum": 0
          },
          "runningMemoryGib": {
            "type": "integer",
            "description": "The most memory its machines hold at once, in GiB.",
            "minimum": 0
          },
          "machineVcpu": {
            "type": "integer",
            "description": "The most vCPUs one of its machines has.",
            "minimum": 0
          },
          "machineMemoryGib": {
            "type": "integer",
            "description": "The most memory one of its machines has, in GiB.",
            "minimum": 0
          },
          "newMachinesPerSecond": {
            "type": "integer",
            "description": "The most machines it starts a second.",
            "minimum": 0
          }
        }
      },
      "Project": {
        "type": "object",
        "description": "A project: where machines, storage, addresses and keys sit.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "project"
            ],
            "description": "Always `project`."
          },
          "name": {
            "type": "string",
            "description": "Its name, unique in the organization."
          },
          "default": {
            "type": "boolean",
            "description": "Whether it is the organization's default project, where a call that names none acts."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "deleted"
            ],
            "description": "`active`; `deleted` once deleted: a delete's answer."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was deleted: a delete's answer, its state `deleted`."
          },
          "limits": {
            "$ref": "#/components/schemas/ProjectLimits"
          }
        },
        "required": [
          "id",
          "object",
          "name",
          "default",
          "createdAt",
          "state",
          "limits"
        ]
      },
      "ProjectCreate": {
        "type": "object",
        "description": "A new project.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Its name, unique in the organization.",
            "minLength": 1,
            "maxLength": 64
          },
          "limits": {
            "$ref": "#/components/schemas/ProjectLimits"
          }
        },
        "required": [
          "name"
        ]
      },
      "ProjectLimitsSet": {
        "type": "object",
        "description": "A project's own limits, set.",
        "properties": {
          "limits": {
            "$ref": "#/components/schemas/ProjectLimits"
          }
        },
        "required": [
          "limits"
        ]
      },
      "Rename": {
        "type": "object",
        "description": "A new name; everything else stays as it is.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Its name.",
            "minLength": 1,
            "maxLength": 64
          }
        },
        "required": [
          "name"
        ]
      },
      "Identity": {
        "type": "object",
        "description": "An agent or CI pipeline: who a key acts as, besides a person.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID, a key's `agentId`."
          },
          "object": {
            "type": "string",
            "enum": [
              "identity"
            ],
            "description": "Always `identity`."
          },
          "kind": {
            "type": "string",
            "enum": [
              "agent",
              "ci"
            ],
            "description": "`agent` or `ci`."
          },
          "name": {
            "type": "string",
            "description": "Its name, unique in the organization for its kind."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "deleted"
            ],
            "description": "`active`; `deleted` once deleted: a delete's answer."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was deleted: a delete's answer, its state `deleted`."
          }
        },
        "required": [
          "id",
          "object",
          "kind",
          "name",
          "createdAt",
          "state"
        ]
      },
      "Role": {
        "type": "object",
        "description": "One of the organization's own roles: the actions a grant of it allows.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "role"
            ],
            "description": "Always `role`."
          },
          "name": {
            "type": "string",
            "description": "Its name, unique in the organization."
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The actions it holds, each `product:action`, `product:*` or `*`."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "deleted"
            ],
            "description": "`active`; `deleted` once deleted: a delete's answer."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was deleted: a delete's answer, its state `deleted`."
          }
        },
        "required": [
          "id",
          "object",
          "name",
          "actions",
          "createdAt",
          "state"
        ]
      },
      "RoleActionsChange": {
        "type": "object",
        "description": "A change to a role's actions: the actions to add and the actions to remove, in one step. Each is `product:action`, `product:*` or `*`.",
        "properties": {
          "add": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The actions to add. One the role already holds as written is left as it is.",
            "maxItems": 100
          },
          "remove": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The actions to remove, each as the role holds it. One the role does not hold is ignored.",
            "maxItems": 100
          }
        }
      },
      "AuditLine": {
        "type": "object",
        "description": "One line of the audit log: a call Access judged, allowed or refused.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "audit"
            ],
            "description": "Always `audit`."
          },
          "action": {
            "type": "string",
            "description": "What was asked (`sandboxes:create`, `keys:delete`)."
          },
          "allowed": {
            "type": "boolean",
            "description": "Whether it was allowed."
          },
          "reason": {
            "type": "string",
            "description": "Why it was refused, or what it changed, when it says."
          },
          "target": {
            "type": "string",
            "description": "What it acted on: a resource's ID, when it names one."
          },
          "accountId": {
            "type": "string",
            "description": "The person who asked, or for whom an agent asked."
          },
          "agentId": {
            "type": "string",
            "description": "The agent or CI pipeline that asked."
          },
          "keyId": {
            "type": "string",
            "description": "The key it was asked with; none for the console."
          },
          "projectId": {
            "type": "string",
            "description": "The project it acted in."
          },
          "cost": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "What it committed, in US dollars."
          },
          "address": {
            "type": "string",
            "description": "The client address it came from."
          },
          "requestId": {
            "type": "string",
            "description": "The request's ID."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was asked."
          }
        },
        "required": [
          "id",
          "object",
          "action",
          "allowed",
          "createdAt"
        ]
      },
      "Me": {
        "type": "object",
        "description": "Who is calling: the key, the agent it is, the org it acts for, and what admits it.",
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "me"
            ],
            "description": "Always `me`."
          },
          "orgId": {
            "type": "string",
            "description": "The organization the key acts for."
          },
          "orgName": {
            "type": "string",
            "description": "The organization's name, as its members see it."
          },
          "plan": {
            "type": "string",
            "description": "Its plan on the price card."
          },
          "keyId": {
            "type": "string",
            "description": "The key's ID."
          },
          "agentId": {
            "type": "string",
            "description": "Who the key acts as: an agent, a CI pipeline, a team or a person, by its ID."
          },
          "projectId": {
            "type": "string",
            "description": "The project the call acts in."
          },
          "projectName": {
            "type": "string",
            "description": "The project's name."
          },
          "role": {
            "type": "string",
            "description": "The built-in role of the grant that admits it (owner, admin, developer, viewer, billing); none for an org's own role."
          },
          "scope": {
            "type": "string",
            "enum": [
              "org",
              "project"
            ],
            "description": "What a call that names no resource reaches: `org` (the whole organization) or `project` (the key's project alone)."
          },
          "billing": {
            "type": "string",
            "enum": [
              "test",
              "trial",
              "live",
              "grace",
              "paused"
            ],
            "description": "How the organization pays: `test` (no card yet: every call that creates or changes a machine, volume or address answers 402 `card_required`), `trial`, `live`, `grace` (a payment is due; work runs until it pauses) or `paused` (work paused until paid; nothing deleted)."
          }
        },
        "required": [
          "object",
          "orgId",
          "orgName",
          "plan",
          "keyId",
          "projectId",
          "scope"
        ]
      },
      "MeterUse": {
        "type": "object",
        "description": "One meter's use and charges this month.",
        "properties": {
          "meter": {
            "type": "string",
            "description": "The card's meter (`cpu`, `memory`, `traffic-out`, ...)."
          },
          "quantity": {
            "type": "string",
            "description": "Used this month, in the meter's base unit, as an integer in text."
          },
          "unit": {
            "type": "string",
            "description": "The base unit: `core-microseconds`, `vcpu-microseconds`, `byte-seconds`, `bytes`, `calls` or `seconds`."
          },
          "charged": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "Charged this month at the card's rate, in US dollars."
          }
        },
        "required": [
          "meter",
          "quantity",
          "unit",
          "charged"
        ]
      },
      "Limit": {
        "type": "object",
        "description": "One limit the org is held to, and what it uses of it now.",
        "properties": {
          "name": {
            "type": "string",
            "description": "`running.vcpus`, `running.memory`, `machine.vcpus`, `machine.memory` or `starts.per-second`."
          },
          "unit": {
            "type": "string",
            "enum": [
              "count",
              "bytes",
              "per-second"
            ],
            "description": "What `max` and `used` count."
          },
          "max": {
            "type": "integer",
            "description": "The most it may hold; none for no limit."
          },
          "used": {
            "type": "integer",
            "description": "What it holds now."
          }
        },
        "required": [
          "name",
          "unit",
          "used"
        ]
      },
      "KeyUsage": {
        "type": "object",
        "description": "One key's spend and what its holder runs: a coordinator reads what each worker's key spent.",
        "properties": {
          "keyId": {
            "type": "string",
            "description": "The key's ID."
          },
          "name": {
            "type": "string",
            "description": "Its name."
          },
          "agentId": {
            "type": "string",
            "description": "The agent or CI pipeline it acts as."
          },
          "accountId": {
            "type": "string",
            "description": "The person it acts as or for."
          },
          "daySpent": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "What its calls committed in the last 24 hours, in US dollars, as its spend caps count it."
          },
          "periodSpent": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "What its calls committed this month (UTC), in US dollars."
          },
          "running": {
            "type": "integer",
            "description": "Its holder's machines running now."
          },
          "machines": {
            "type": "integer",
            "description": "Its holder's machines, not deleted."
          }
        },
        "required": [
          "keyId",
          "name",
          "daySpent",
          "periodSpent",
          "running",
          "machines"
        ]
      },
      "KeySpendCap": {
        "type": "object",
        "description": "The spend cap a key's creates are held to, and what is left under it.",
        "properties": {
          "cap": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The most its holder's machines may spend over windowSeconds, in US dollars."
          },
          "spent": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "What they spent over the window, in US dollars, as the cap counts it."
          },
          "remaining": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "What is left: cap less spent, never below 0. Once 0, a create is refused 403 until the window passes it."
          },
          "windowSeconds": {
            "type": "integer",
            "description": "The rolling window the cap counts over, in seconds."
          }
        },
        "required": [
          "cap",
          "spent",
          "remaining",
          "windowSeconds"
        ]
      },
      "UsageHour": {
        "type": "object",
        "description": "One product's use in one hour, at the card's prices.",
        "properties": {
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "The hour's first moment (UTC)."
          },
          "product": {
            "type": "string",
            "description": "What it was used by: the machine's kind (`sandbox`, `app`, `function`, `ci`, ...), what is kept on disk (`disk`, `volume`, `snapshot`, `image`), or `traffic`, what was sent out; `machine` or `storage` when what used it was deleted too long ago to name. With `meter`, never `traffic`: what sent it out."
          },
          "charged": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "What it costs on the price card, before any credit, in US dollars."
          },
          "quantity": {
            "type": "string",
            "description": "With `meter`: what it used of that meter in the hour, in the meter's base unit, as an integer in text."
          }
        },
        "required": [
          "at",
          "product",
          "charged"
        ]
      },
      "ProductLine": {
        "type": "object",
        "description": "One meter's part of one product's month: a quantity at the card's rate.",
        "properties": {
          "product": {
            "type": "string",
            "description": "What it was used by, as `hours` names it (`sandbox`, `disk`, `traffic`, ...)."
          },
          "meter": {
            "type": "string",
            "description": "The card's meter (`cpu`, `memory`, `traffic-out`, ...)."
          },
          "name": {
            "type": "string",
            "description": "The meter's name on the card (`CPU`, `Memory`), from `names::METERS`."
          },
          "quantity": {
            "type": "string",
            "description": "Used this month, in `unit`, as a decimal in text."
          },
          "unit": {
            "type": "string",
            "description": "What `quantity` counts: `active vCPU-hours`, `GiB-hours`, `GiB-months`, `GB`, ..."
          },
          "rate": {
            "type": "string",
            "description": "The card's price for one of `unit`, as the card writes it (`$0.03 per active vCPU-hour`)."
          },
          "charged": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "What it costs on the price card, before any credit, in US dollars."
          }
        },
        "required": [
          "product",
          "meter",
          "name",
          "quantity",
          "unit",
          "rate",
          "charged"
        ]
      },
      "KeySpend": {
        "type": "object",
        "description": "What one key, or what was made with no key, used this month.",
        "properties": {
          "keyId": {
            "type": "string",
            "description": "The key the machines and storage were made with. Omitted for what was made with no key (signed in to the console), and for `others`."
          },
          "name": {
            "type": "string",
            "description": "The key's name."
          },
          "accountId": {
            "type": "string",
            "description": "The person the key acts for, or who made it signed in to the console."
          },
          "email": {
            "type": "string",
            "description": "That person's email address."
          },
          "agentId": {
            "type": "string",
            "description": "The agent or CI pipeline the key acts as."
          },
          "source": {
            "type": "string",
            "description": "`key`: one key's. `console`: made signed in, with no key. `others`: keys the caller may not see, together. `unknown`: made by something deleted too long ago to name."
          },
          "charged": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "Charged this month at the card's rates, in US dollars."
          }
        },
        "required": [
          "source",
          "charged"
        ]
      },
      "Usage": {
        "type": "object",
        "description": "What the org has used and has left, at the card's prices.",
        "properties": {
          "orgId": {
            "type": "string",
            "description": "The organization."
          },
          "periodStart": {
            "type": "string",
            "format": "date-time",
            "description": "The month's first moment (UTC)."
          },
          "credited": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "Every credit ever added, in US dollars."
          },
          "spent": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "Every charge ever settled, in US dollars."
          },
          "available": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "What can still be spent: credited less spent, in US dollars."
          },
          "periodSpent": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "Charged this month, in US dollars."
          },
          "meters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MeterUse"
            },
            "description": "This month's use and charges by meter."
          },
          "plan": {
            "type": "string",
            "description": "Its plan on the price card."
          },
          "limits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Limit"
            },
            "description": "Every limit it is held to, with what it uses of each now: the figures a create past one is refused by."
          },
          "spendCap": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "The org's own cap on a month's charges, in US dollars."
          },
          "key": {
            "$ref": "#/components/schemas/KeyUsage"
          },
          "keySpendCap": {
            "$ref": "#/components/schemas/KeySpendCap"
          },
          "hours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageHour"
            },
            "description": "With `by=hour`: what each product used each hour, since the month began or 7 days ago, whichever is earlier (or since `since`, if later), oldest first. Only hours that cost something; with `meter`, only hours that used it."
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductLine"
            },
            "description": "With `by=hour`: what each product's month is made of, a line for each meter it used, its quantity at the card's rate. A product's lines sum to its hours since the month began (or since `since`, if later)."
          },
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KeySpend"
            },
            "description": "With `by=key`: what each key's machines and storage used this month, most first. A key the caller may not see is counted under `others`."
          }
        },
        "required": [
          "orgId",
          "periodStart",
          "credited",
          "spent",
          "available",
          "periodSpent",
          "meters",
          "plan",
          "limits"
        ]
      },
      "UsageLine": {
        "type": "object",
        "description": "One meter of one machine's, disk's or address's hour, as measured, at the card's price.",
        "properties": {
          "id": {
            "type": "string",
            "description": "The line's ID: the same line has the same ID on every read."
          },
          "subjectId": {
            "type": "string",
            "description": "The resource it was used by: a machine, a disk or an address."
          },
          "resourceId": {
            "type": "string",
            "description": "The ID its product names it by (a machine's own ID)."
          },
          "projectId": {
            "type": "string",
            "description": "Its project."
          },
          "meter": {
            "type": "string",
            "description": "The card's meter (`cpu`, `memory`, `standard`, `traffic-out`, ...)."
          },
          "startsAt": {
            "type": "string",
            "format": "date-time",
            "description": "The hour's first moment (UTC)."
          },
          "endsAt": {
            "type": "string",
            "format": "date-time",
            "description": "The hour's end."
          },
          "quantity": {
            "type": "string",
            "description": "What was used, in the meter's base unit, as an integer in text."
          },
          "unit": {
            "type": "string",
            "description": "The base unit: `core-microseconds`, `vcpu-microseconds`, `byte-seconds`, `bytes`, `calls` or `seconds`."
          },
          "chargedMicros": {
            "type": "string",
            "description": "The hour alone at the card's rate, rounded down, in integer microdollars as text."
          },
          "rateMicros": {
            "type": "string",
            "description": "The card's rate, in microdollars per priced unit, as an integer in text."
          },
          "settledAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the line settles: its hour's end (UTC). A line can change only until the page's `finalThrough` reaches it."
          },
          "final": {
            "type": "boolean",
            "description": "Whether the line is final: its `settledAt` is at or before the page's `finalThrough`, and it never changes again."
          },
          "resourceFinal": {
            "type": "boolean",
            "description": "Whether its resource is deleted and every line it will ever have is final."
          }
        },
        "required": [
          "id",
          "subjectId",
          "resourceId",
          "projectId",
          "meter",
          "startsAt",
          "endsAt",
          "quantity",
          "unit",
          "chargedMicros",
          "rateMicros",
          "settledAt",
          "final",
          "resourceFinal"
        ]
      },
      "UsageExport": {
        "type": "object",
        "description": "The organization's measured usage in a time range, oldest hour first.",
        "properties": {
          "since": {
            "type": "string",
            "format": "date-time",
            "description": "The range's first moment, inclusive (UTC)."
          },
          "until": {
            "type": "string",
            "format": "date-time",
            "description": "The range's end, exclusive (UTC)."
          },
          "finalThrough": {
            "type": "string",
            "format": "date-time",
            "description": "Every line whose `settledAt` is at or before this moment is final: all usage before it has been measured. It never moves back; a later hour stays open until its usage is measured. None: no line is final yet."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageLine"
            },
            "description": "Each meter of each resource's hour."
          },
          "next": {
            "type": "string",
            "description": "Pass as cursor, with the same range, for the next page; none on the last."
          },
          "cursor": {
            "type": "string",
            "description": "The cursor this page was asked from; none on the first page."
          }
        },
        "required": [
          "since",
          "until",
          "items"
        ]
      },
      "PreviewCreate": {
        "type": "object",
        "description": "A preview of the machine its path names to create, or its visibility and sites to change.",
        "properties": {
          "port": {
            "type": "integer",
            "description": "The port inside the machine.",
            "minimum": 1,
            "maximum": 65535
          },
          "visibility": {
            "type": "string",
            "enum": [
              "private",
              "public"
            ],
            "description": "`private` (default): a token is needed. `public`: anyone with the address."
          },
          "embedOrigins": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The sites that may show it in an iframe; omitted on one that exists, kept as it is; empty for any site."
          },
          "ttlSeconds": {
            "type": "integer",
            "description": "The token's lifetime in seconds, from 60 until the calling key's own end (a year at most); a day when omitted, or the key's end when that is sooner.",
            "minimum": 60,
            "maximum": 31536000,
            "default": 86400
          }
        },
        "required": [
          "port"
        ]
      },
      "Preview": {
        "type": "object",
        "description": "A preview.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "name": {
            "type": "string",
            "description": "Its hostname, `<port>-<sandbox hex>.<domain>`: its own calls (`/v2/previews/{name}`) take it or its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "preview"
            ],
            "description": "Always `preview`."
          },
          "sandboxId": {
            "type": "string",
            "description": "The machine whose port it shares."
          },
          "port": {
            "type": "integer",
            "description": "The port inside the machine."
          },
          "visibility": {
            "type": "string",
            "enum": [
              "private",
              "public"
            ],
            "description": "`private` or `public`."
          },
          "url": {
            "type": "string",
            "description": "Its address. A private one also needs the token."
          },
          "state": {
            "type": "string",
            "enum": [
              "making",
              "ready",
              "deleted"
            ],
            "description": "Where it is: `ready` once every serving host routes it."
          },
          "token": {
            "type": "string",
            "description": "A token signed for this answer, for a private preview and a key that may create one: send it in the `x-runtime-preview-token` header, or open the url with `?runtime_preview_token=<token>` in a browser."
          },
          "tokenExpiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "When this answer's token stops working."
          },
          "embedOrigins": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The sites that may show it in an iframe; none for any site."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was deleted: a delete's answer, its state `deleted`."
          }
        },
        "required": [
          "id",
          "name",
          "object",
          "sandboxId",
          "port",
          "visibility",
          "url",
          "state",
          "createdAt"
        ]
      },
      "DomainCreate": {
        "type": "object",
        "description": "A custom domain to add, or to point at another machine or port.",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname, at most 253 characters."
          },
          "sandboxId": {
            "type": "string",
            "description": "The machine to serve."
          },
          "port": {
            "type": "integer",
            "description": "The port inside the machine, 1 to 65535."
          }
        },
        "required": [
          "hostname",
          "sandboxId",
          "port"
        ]
      },
      "DomainSettings": {
        "type": "object",
        "description": "A custom domain's settings, as it keeps them: the port it serves, and its proof of ownership as facts.",
        "properties": {
          "port": {
            "type": "integer",
            "description": "The port inside the machine.",
            "minimum": 1,
            "maximum": 65535
          },
          "token": {
            "type": "string",
            "description": "The token the TXT record at `_runtime-challenge.<hostname>` holds as `runtime-verify=<token>`."
          },
          "verifiedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the TXT record was last found to hold the token; none until it is."
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the TXT record was last looked up."
          },
          "checkError": {
            "type": "string",
            "description": "What the last lookup found wrong; none when it proved the name."
          }
        },
        "required": [
          "port",
          "token"
        ]
      },
      "Domain": {
        "type": "object",
        "description": "A custom domain: your own hostname serving a machine's port.",
        "properties": {
          "port": {
            "type": "integer",
            "description": "The port inside the machine.",
            "minimum": 1,
            "maximum": 65535
          },
          "token": {
            "type": "string",
            "description": "The token the TXT record at `_runtime-challenge.<hostname>` holds as `runtime-verify=<token>`."
          },
          "verifiedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the TXT record was last found to hold the token; none until it is."
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the TXT record was last looked up."
          },
          "checkError": {
            "type": "string",
            "description": "What the last lookup found wrong; none when it proved the name."
          },
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "domain"
            ],
            "description": "Always `domain`."
          },
          "hostname": {
            "type": "string",
            "description": "The hostname, lower case."
          },
          "sandboxId": {
            "type": "string",
            "description": "The machine it serves."
          },
          "state": {
            "type": "string",
            "enum": [
              "making",
              "ready",
              "deleted"
            ],
            "description": "Its state: `ready` once every serving host routes it."
          },
          "disabled": {
            "type": "boolean",
            "description": "Turned off by Runtime."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was added."
          },
          "records": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            },
            "description": "The DNS records to set: the TXT record that proves the name, and the CNAME that sends visitors here."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was deleted: a delete's answer, its state `deleted`."
          }
        },
        "required": [
          "port",
          "token",
          "id",
          "object",
          "hostname",
          "sandboxId",
          "state",
          "disabled",
          "createdAt"
        ]
      },
      "PortCreate": {
        "type": "object",
        "description": "A public TCP port to open.",
        "properties": {
          "sandboxId": {
            "type": "string",
            "description": "The machine to carry to."
          },
          "port": {
            "type": "integer",
            "description": "The port inside the machine, 1 to 65535."
          },
          "protocol": {
            "type": "string",
            "enum": [
              "tcp"
            ],
            "description": "`tcp`, the only one a public port carries: any other is refused, never made as TCP."
          }
        },
        "required": [
          "sandboxId",
          "port"
        ]
      },
      "PortSettings": {
        "type": "object",
        "description": "A public TCP port's settings, as it keeps them.",
        "properties": {
          "port": {
            "type": "integer",
            "description": "The port inside the machine.",
            "minimum": 1,
            "maximum": 65535
          }
        },
        "required": [
          "port"
        ]
      },
      "Port": {
        "type": "object",
        "description": "A public TCP port: raw TCP from a public address and port to a port of a machine.",
        "properties": {
          "port": {
            "type": "integer",
            "description": "The port inside the machine.",
            "minimum": 1,
            "maximum": 65535
          },
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "port"
            ],
            "description": "Always `port`."
          },
          "connect": {
            "type": "string",
            "description": "`address:publicPort` (`[address]:publicPort` for IPv6), for a client's host and port."
          },
          "address": {
            "type": "string",
            "description": "The public address to connect to."
          },
          "publicPort": {
            "type": "integer",
            "description": "The public port to connect to."
          },
          "sandboxId": {
            "type": "string",
            "description": "The machine it carries to."
          },
          "state": {
            "type": "string",
            "enum": [
              "making",
              "ready",
              "deleted"
            ],
            "description": "Its state: `ready` once every edge carries it."
          },
          "disabled": {
            "type": "boolean",
            "description": "Turned off by Runtime: no connection passes."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was opened."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was deleted: a delete's answer, its state `deleted`."
          }
        },
        "required": [
          "port",
          "id",
          "object",
          "connect",
          "address",
          "publicPort",
          "sandboxId",
          "state",
          "disabled",
          "createdAt"
        ]
      },
      "EgressIpSettings": {
        "type": "object",
        "description": "A static egress IP's settings, as it keeps them.",
        "properties": {
          "family": {
            "type": "integer",
            "description": "4 or 6."
          },
          "rate": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "Its monthly price when it was reserved, in US dollars (`\"5.00\"`); it does not change."
          }
        },
        "required": [
          "family",
          "rate"
        ]
      },
      "EgressIp": {
        "type": "object",
        "description": "A static egress IP: every machine of the org sends from it.",
        "properties": {
          "family": {
            "type": "integer",
            "description": "4 or 6."
          },
          "rate": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "Its monthly price when it was reserved, in US dollars (`\"5.00\"`); it does not change."
          },
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "ip"
            ],
            "description": "Always `ip`."
          },
          "address": {
            "type": "string",
            "description": "The address."
          },
          "state": {
            "type": "string",
            "enum": [
              "making",
              "ready",
              "deleted"
            ],
            "description": "Its state: `ready` once machines send from it."
          },
          "disabled": {
            "type": "boolean",
            "description": "Turned off: its machines send from the shared addresses."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was reserved."
          }
        },
        "required": [
          "family",
          "rate",
          "id",
          "object",
          "address",
          "state",
          "disabled",
          "createdAt"
        ]
      },
      "TunnelPeer": {
        "type": "object",
        "description": "One of the org's own machines or routers on a tunnel.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "name": {
            "type": "string",
            "description": "Its name, unique in the tunnel."
          },
          "publicKey": {
            "type": "string",
            "description": "Its WireGuard public key."
          },
          "address": {
            "type": "string",
            "description": "Its address in the tunnel's subnet."
          },
          "routes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The org's own ranges behind it that machines may reach."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was added."
          },
          "rotatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When its key was last replaced."
          }
        },
        "required": [
          "id",
          "name",
          "publicKey",
          "address",
          "routes",
          "createdAt"
        ]
      },
      "TunnelMember": {
        "type": "object",
        "description": "A machine's address in a tunnel's subnet.",
        "properties": {
          "sandboxId": {
            "type": "string",
            "description": "The machine."
          },
          "address": {
            "type": "string",
            "description": "Its address in the subnet."
          }
        },
        "required": [
          "sandboxId",
          "address"
        ]
      },
      "TunnelSettings": {
        "type": "object",
        "description": "A WireGuard tunnel's settings, as it keeps them; its gateway's private key is kept sealed and never answered.",
        "properties": {
          "subnet": {
            "type": "string",
            "description": "Its private IPv4 range, /16 to /24."
          },
          "gatewayAddress": {
            "type": "string",
            "description": "The gateway's address in the subnet."
          },
          "endpoint": {
            "type": "string",
            "description": "Where peers send WireGuard: address:port."
          },
          "gatewayPublicKey": {
            "type": "string",
            "description": "The gateway's WireGuard public key; none until the gateway has made its pair."
          },
          "rate": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "Its monthly price when it was made, in US dollars (`\"5.00\"`); it does not change."
          },
          "peers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TunnelPeer"
            },
            "description": "The org's machines and routers on it."
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TunnelMember"
            },
            "description": "Each machine's address in the subnet."
          }
        },
        "required": [
          "subnet",
          "gatewayAddress",
          "endpoint",
          "rate",
          "peers",
          "members"
        ]
      },
      "Tunnel": {
        "type": "object",
        "description": "A WireGuard tunnel from the org's own network into its machines.",
        "properties": {
          "subnet": {
            "type": "string",
            "description": "Its private IPv4 range, /16 to /24."
          },
          "gatewayAddress": {
            "type": "string",
            "description": "The gateway's address in the subnet."
          },
          "endpoint": {
            "type": "string",
            "description": "Where peers send WireGuard: address:port."
          },
          "gatewayPublicKey": {
            "type": "string",
            "description": "The gateway's WireGuard public key; none until the gateway has made its pair."
          },
          "rate": {
            "type": "string",
            "format": "decimal",
            "pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,9})?$",
            "description": "Its monthly price when it was made, in US dollars (`\"5.00\"`); it does not change."
          },
          "peers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TunnelPeer"
            },
            "description": "The org's machines and routers on it."
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TunnelMember"
            },
            "description": "Each machine's address in the subnet."
          },
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "tunnel"
            ],
            "description": "Always `tunnel`."
          },
          "state": {
            "type": "string",
            "enum": [
              "making",
              "ready",
              "deleted"
            ],
            "description": "Its state: `ready` once its gateway answers."
          },
          "disabled": {
            "type": "boolean",
            "description": "Turned off: no traffic passes."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          }
        },
        "required": [
          "subnet",
          "gatewayAddress",
          "endpoint",
          "rate",
          "peers",
          "members",
          "id",
          "object",
          "state",
          "disabled",
          "createdAt"
        ]
      },
      "NetworkSettings": {
        "type": "object",
        "description": "A private network's settings, as it keeps them.",
        "properties": {
          "members": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The machines in it, by ID; none for every machine of the org."
          }
        }
      },
      "Network": {
        "type": "object",
        "description": "A private network: its members reach each other at `<id>.sandbox.internal`, over TCP.",
        "properties": {
          "members": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The machines in it, by ID; none for every machine of the org."
          },
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "network"
            ],
            "description": "Always `network`."
          },
          "name": {
            "type": "string",
            "description": "Its name."
          },
          "state": {
            "type": "string",
            "enum": [
              "making",
              "ready",
              "deleted"
            ],
            "description": "Its state: `ready` once every member's host serves it."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          }
        },
        "required": [
          "id",
          "object",
          "name",
          "state",
          "createdAt"
        ]
      },
      "WebhookCreate": {
        "type": "object",
        "description": "A webhook to make.",
        "properties": {
          "url": {
            "type": "string",
            "description": "The https URL to send each event to."
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The events to send it, at most 32; `[\"*\"]` (every one) when omitted."
          }
        },
        "required": [
          "url"
        ]
      },
      "Webhook": {
        "type": "object",
        "description": "A webhook: a signed POST to your URL for each event it names.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "webhook"
            ],
            "description": "Always `webhook`."
          },
          "url": {
            "type": "string",
            "description": "The https URL each event is sent to; in a list, its origin alone (`https://host/…`)."
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The events it is sent (`sandbox.created`); `*` for every one."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "deleted"
            ],
            "description": "`active` while it is sent to; `deleted` once deleted: a delete's answer."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          },
          "secret": {
            "type": "string",
            "description": "Its signing secret (`whsec_...`): returned when it is made, and never again."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was deleted: a delete's answer, its state `deleted`."
          }
        },
        "required": [
          "id",
          "object",
          "url",
          "events",
          "state",
          "createdAt"
        ]
      },
      "Event": {
        "type": "object",
        "description": "A lifecycle event: what changed, as a webhook is sent it.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID (`evt_...`), the `runtime-webhook-id` of its webhook delivery."
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "description": "What happened (`sandbox.created`, `sandbox.paused`), a webhook's `runtime-event-type`."
          },
          "resourceId": {
            "type": "string",
            "description": "The ID of the resource it happened to."
          },
          "state": {
            "type": "string",
            "description": "The resource's state after it, when it says one."
          },
          "reason": {
            "type": "string",
            "description": "Why, when it says why (a stop's or a failure's)."
          },
          "exitCode": {
            "type": "integer",
            "description": "The exit code of a run that ended."
          },
          "pausedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the resource's pause began (or its run ended), on an event of it paused or stopped."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it happened."
          }
        },
        "required": [
          "id",
          "object",
          "type",
          "resourceId",
          "createdAt"
        ]
      },
      "ExportCreate": {
        "type": "object",
        "description": "An OpenTelemetry export to make.",
        "properties": {
          "endpoint": {
            "type": "string",
            "description": "The OTLP/HTTP endpoint's base URL (https)."
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Headers sent with each request (an API key), at most 16."
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The events to send it; `[\"*\"]` (every one) when omitted."
          }
        },
        "required": [
          "endpoint"
        ]
      },
      "Export": {
        "type": "object",
        "description": "An OpenTelemetry export: the events as OTLP logs, POSTed to `<endpoint>/v1/logs`.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "otel"
            ],
            "description": "Always `otel`."
          },
          "endpoint": {
            "type": "string",
            "description": "The OTLP/HTTP endpoint's base URL (https); in a list, its origin alone."
          },
          "headerNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The names of the headers sent with each request; their values are never shown."
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The events it is sent; `*` for every one."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "deleted"
            ],
            "description": "`active` while it is sent to; `deleted` once deleted: a delete's answer."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made."
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was deleted: a delete's answer, its state `deleted`."
          }
        },
        "required": [
          "id",
          "object",
          "endpoint",
          "headerNames",
          "events",
          "state",
          "createdAt"
        ]
      },
      "FeedbackCreate": {
        "type": "object",
        "description": "A report to send.",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "bug",
              "missing_feature",
              "competitor_gap",
              "migration_blocker",
              "docs",
              "pricing",
              "praise",
              "other"
            ],
            "description": "`bug`, `missing_feature`, `competitor_gap` (something another provider does better), `migration_blocker` (what stops a move to Runtime), `docs`, `pricing`, `praise` or `other`."
          },
          "summary": {
            "type": "string",
            "description": "One line.",
            "minLength": 1,
            "maxLength": 200
          },
          "detail": {
            "type": "string",
            "description": "What happened, what you expected, how to reproduce.",
            "maxLength": 8000
          },
          "competitor": {
            "type": "string",
            "description": "The other provider, for a gap or a migration (E2B, Daytona, Modal).",
            "maxLength": 80
          },
          "resourceId": {
            "type": "string",
            "description": "The resource it is about.",
            "maxLength": 64
          },
          "requestId": {
            "type": "string",
            "description": "The requestId of the error you are reporting.",
            "maxLength": 64
          },
          "page": {
            "type": "string",
            "description": "The page it is about, for a report from the site.",
            "maxLength": 300
          },
          "rating": {
            "type": "integer",
            "description": "A page's rating: 1 helpful, -1 not.",
            "minimum": -1,
            "maximum": 1
          },
          "contactEmail": {
            "type": "string",
            "description": "An address to reply to, for a report from someone not signed in.",
            "maxLength": 254
          },
          "context": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Anything else useful, at most 16 entries of text."
          }
        },
        "required": [
          "kind",
          "summary"
        ]
      },
      "Feedback": {
        "type": "object",
        "description": "A report as it was received.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Its ID."
          },
          "object": {
            "type": "string",
            "enum": [
              "feedback"
            ],
            "description": "Always `feedback`."
          },
          "kind": {
            "type": "string",
            "enum": [
              "bug",
              "missing_feature",
              "competitor_gap",
              "migration_blocker",
              "docs",
              "pricing",
              "praise",
              "other"
            ],
            "description": "What it is about."
          },
          "summary": {
            "type": "string",
            "description": "Its one line."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was received."
          }
        },
        "required": [
          "id",
          "object",
          "kind",
          "summary",
          "createdAt"
        ]
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "requestId",
              "hint",
              "retryable",
              "docUrl"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_request",
                  "unauthorized",
                  "payment_required",
                  "card_required",
                  "forbidden",
                  "limit_exceeded",
                  "not_found",
                  "method_not_allowed",
                  "already_exists",
                  "conflict",
                  "too_large",
                  "rate_limited",
                  "internal",
                  "not_implemented",
                  "unavailable",
                  "capacity_unavailable",
                  "timeout"
                ]
              },
              "message": {
                "type": "string"
              },
              "requestId": {
                "type": "string",
                "description": "The answer's request-id header."
              },
              "hint": {
                "type": "string",
                "description": "What to do about it."
              },
              "retryable": {
                "type": "boolean",
                "description": "The same request, sent again after Retry-After, may pass: nothing was done."
              },
              "param": {
                "type": "string",
                "description": "The request's field it is about."
              },
              "details": {
                "type": "object",
                "description": "Its case (`reason`) and the facts of it.",
                "properties": {
                  "reason": {
                    "type": "string",
                    "enum": [
                      "invalid_request",
                      "invalid_code",
                      "invalid_network_rule",
                      "system_label",
                      "invalid_archive",
                      "archive_failed",
                      "not_a_directory",
                      "is_a_directory",
                      "exec_format_error",
                      "limit_above_org",
                      "unknown_event_type",
                      "unauthorized",
                      "forbidden",
                      "payment_required",
                      "card_required",
                      "card_declined",
                      "permission_denied",
                      "org_closing",
                      "limit_not_set",
                      "not_found",
                      "route_not_found",
                      "method_not_allowed",
                      "image_not_found",
                      "file_not_found",
                      "cwd_not_found",
                      "program_not_found",
                      "process_not_found",
                      "upload_not_found",
                      "length_required",
                      "already_exists",
                      "name_taken",
                      "conflict",
                      "image_in_use",
                      "not_supported",
                      "precondition_failed",
                      "sandbox_paused",
                      "delete_protected",
                      "confirmation_required",
                      "idempotency_key_reused",
                      "version_conflict",
                      "upload_running",
                      "upload_incomplete",
                      "checksum_mismatch",
                      "blobs_missing",
                      "file_changed",
                      "display_not_running",
                      "browser_not_running",
                      "kernel_not_installed",
                      "act_failed",
                      "start_failed",
                      "root_unavailable",
                      "image_lost",
                      "archive_unavailable",
                      "directory_not_empty",
                      "stdin_closed",
                      "stdin_busy",
                      "fork_unsafe",
                      "card_on_file",
                      "no_card",
                      "not_test_mode",
                      "too_large",
                      "file_too_large",
                      "limit_exceeded",
                      "quota_exceeded",
                      "blob_store_full",
                      "process_limit",
                      "disk_full",
                      "rate_limited",
                      "starts_per_second",
                      "transfer_limit",
                      "internal",
                      "sandbox_failed",
                      "not_implemented",
                      "previews_unavailable",
                      "unavailable",
                      "image_not_ready",
                      "run_goes_on",
                      "machine_restarting",
                      "sign_in_unavailable",
                      "secrets_unavailable",
                      "billing_unavailable",
                      "capacity_unavailable",
                      "timeout"
                    ]
                  }
                }
              },
              "docUrl": {
                "type": "string",
                "format": "uri",
                "description": "Where the code is explained: its section of the errors guide."
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-shortcuts": [
    {
      "name": "run",
      "description": "Runs a command in a new sandbox and deletes the sandbox after, whether the command succeeded or not. Returns the command's result.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cmd": {
            "oneOf": [
              {
                "type": "string",
                "minLength": 1,
                "description": "Run by bash -lc, or sh -lc in an image without bash."
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "minItems": 1,
                "description": "The program and its arguments, run without a shell."
              }
            ],
            "description": "The command: text is run by `bash -lc` (`sh -lc` in an image without bash); a list is the program and its arguments, run without a shell."
          },
          "image": {
            "type": "string",
            "description": "The image it boots, by name or ID; Runtime's default image when omitted."
          },
          "vcpu": {
            "type": "integer",
            "description": "Its vCPUs; 2 when omitted."
          },
          "memoryGB": {
            "type": "number",
            "description": "Its memory in GB (1 GB is 1,024 MiB); 4 when omitted."
          },
          "cwd": {
            "type": "string",
            "description": "The directory it runs in; the user's home when omitted."
          },
          "env": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Environment variables to add."
          },
          "stdin": {
            "type": "string",
            "contentEncoding": "base64",
            "description": "Bytes sent to its standard input."
          },
          "timeoutSeconds": {
            "type": "number",
            "description": "Seconds it may run before it is stopped; it runs to its end when omitted."
          }
        },
        "required": [
          "cmd"
        ]
      },
      "steps": [
        {
          "verb": "sandboxes.create",
          "args": {
            "image": {
              "arg": "image"
            },
            "vcpu": {
              "arg": "vcpu"
            },
            "memoryGB": {
              "arg": "memoryGB"
            }
          },
          "always": false
        },
        {
          "verb": "sandboxes.exec",
          "args": {
            "id": {
              "step": 0,
              "field": "id"
            },
            "cmd": {
              "arg": "cmd"
            },
            "cwd": {
              "arg": "cwd"
            },
            "env": {
              "arg": "env"
            },
            "stdin": {
              "arg": "stdin"
            },
            "timeoutSeconds": {
              "arg": "timeoutSeconds"
            }
          },
          "always": false
        },
        {
          "verb": "sandboxes.delete",
          "args": {
            "id": {
              "step": 0,
              "field": "id"
            }
          },
          "always": true
        }
      ],
      "answer": 1
    }
  ]
}
