Casama AI local computer API

The local computer API from Casama AI, for local computer.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 12

POST /v1/local-devices Pair this machine as a bot computer (desktop companion); returns a device token… #
GET /v1/local-devices List local devices #
PATCH /v1/local-devices/{id} Change capabilities, shared folders, allowed bots or turn the device off #
DELETE /v1/local-devices/{id} Delete local device #
GET /v1/app-browser Whether this person may let bots use the browser inside the phone app in this… #
POST /v1/browser-choices/{id}/answer Answer a browser choice card (this device, Chrome, or the bot's computer)… #
PUT /v1/local-devices/{id}/mcp-servers Register the local MCP servers on this computer (no secrets); each becomes a… #
GET /v1/coding-agents The coding agents this server's bots can hand tasks to (D-370): the signed… #
GET /v1/local-devices/{id}/coding-agents Your own coding agents on this computer (D-371); only the device's owner sees… #
PUT /v1/local-devices/{id}/coding-agents Replace your own coding agents on this computer (D-371); only the device's… #
POST /v1/local-devices/{id}/coding-agents/test Run an agent on this computer with a tiny task ("Reply with just the word… #
GET /v1/local-computer/connect WebSocket for the desktop companion (authorization: Device , or ?token=). #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/casama-ai:casama-ai-local-computer-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

casama-ai-local-computer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Casama local computer API
  version: 0.1.0
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://api.casama.ai
tags:
- name: local computer
paths:
  /v1/local-devices:
    post:
      operationId: createLocalDevice
      tags:
      - local computer
      security:
      - bearerAuth: []
      summary: Pair this machine as a bot computer (desktop companion); returns a device token…
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateLocalDeviceRequest'
      responses:
        '201':
          description: Paired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatedLocalDevice'
        '400':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
    get:
      operationId: listLocalDevices
      tags:
      - local computer
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: org_id
        in: query
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
          description: 'Include browsers inside the phone app (platform "app"). Left out by default: apps from before it read the platform strictly'
        required: false
        description: 'Include browsers inside the phone app (platform "app"). Left out by default: apps from before it read the platform strictly'
        name: all_platforms
        in: query
      responses:
        '200':
          description: Your devices (admins see all)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LocalDeviceList'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      summary: List local devices
      x-summary-source: derived
  /v1/local-devices/{id}:
    patch:
      operationId: updateLocalDevice
      tags:
      - local computer
      security:
      - bearerAuth: []
      summary: Change capabilities, shared folders, allowed bots or turn the device off
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateLocalDeviceRequest'
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LocalDevice'
        '400':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
    delete:
      operationId: deleteLocalDevice
      tags:
      - local computer
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Unpaired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletedDevice'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      summary: Delete local device
      x-summary-source: derived
  /v1/app-browser:
    get:
      operationId: getAppBrowser
      tags:
      - local computer
      security:
      - bearerAuth: []
      summary: Whether this person may let bots use the browser inside the phone app in this…
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: org_id
        in: query
      - schema:
          type: string
          enum:
          - ios
          - android
          - macos
          - linux
          - windows
        required: true
        name: system
        in: query
      - schema:
          type: string
          minLength: 8
          maxLength: 64
        required: true
        name: client_id
        in: query
      responses:
        '200':
          description: State
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppBrowserState'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/browser-choices/{id}/answer:
    post:
      operationId: answerBrowserChoice
      tags:
      - local computer
      security:
      - bearerAuth: []
      summary: Answer a browser choice card (this device, Chrome, or the bot's computer)…
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnswerBrowserChoiceRequest'
      responses:
        '200':
          description: Answered
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrowserChoiceResponse'
        '400':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/local-devices/{id}/mcp-servers:
    put:
      operationId: setLocalMcpServers
      tags:
      - local computer
      security:
      - bearerAuth: []
      summary: Register the local MCP servers on this computer (no secrets); each becomes a…
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetLocalMcpServersRequest'
      responses:
        '200':
          description: The device's local MCP integrations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LocalMcpIntegrationList'
        '400':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/coding-agents:
    get:
      operationId: listCodingAgents
      tags:
      - local computer
      security:
      - bearerAuth: []
      summary: 'The coding agents this server''s bots can hand tasks to (D-370): the signed…'
      responses:
        '200':
          description: The catalog
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodingAgentList'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/local-devices/{id}/coding-agents:
    get:
      operationId: listOwnCodingAgents
      tags:
      - local computer
      security:
      - bearerAuth: []
      summary: Your own coding agents on this computer (D-371); only the device's owner sees…
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Yours
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnCodingAgentList'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
    put:
      operationId: setOwnCodingAgents
      tags:
      - local computer
      security:
      - bearerAuth: []
      summary: Replace your own coding agents on this computer (D-371); only the device's…
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetOwnCodingAgentsRequest'
      responses:
        '200':
          description: Saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnCodingAgentList'
        '400':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/local-devices/{id}/coding-agents/test:
    post:
      operationId: testOwnCodingAgent
      tags:
      - local computer
      security:
      - bearerAuth: []
      summary: Run an agent on this computer with a tiny task ("Reply with just the word…
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestOwnCodingAgentRequest'
      responses:
        '200':
          description: What happened
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodingAgentTestResult'
        '400':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/local-computer/connect:
    get:
      operationId: localComputerConnect
      tags:
      - local computer
      summary: 'WebSocket for the desktop companion (authorization: Device , or ?token=).'
      parameters:
      - schema:
          type: string
        required: false
        name: token
        in: query
      responses:
        '101':
          description: Switching to WebSocket
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
components:
  schemas:
    LocalMcpIntegrationList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Integration'
      required:
      - items
    Integration:
      type: object
      properties:
        id:
          type: string
          format: uuid
        org_id:
          type: string
          format: uuid
        kind:
          $ref: '#/components/schemas/IntegrationKind'
        name:
          type: string
        status:
          type: string
          enum:
          - pending
          - ok
          - error
        error:
          type:
          - string
          - 'null'
        tools:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              description:
                type: string
              risk:
                $ref: '#/components/schemas/Risk'
            required:
            - name
            - description
        tools_cached_at:
          type:
          - string
          - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        app_id:
          type:
          - string
          - 'null'
        auth:
          type:
          - string
          - 'null'
          enum:
          - oauth
          - api_key
          - none
          - null
        bot_ids:
          type: array
          items:
            type: string
            format: uuid
        added_by_bot:
          type:
          - string
          - 'null'
          format: uuid
        unverified:
          type: boolean
        risk_overrides:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/Risk'
        device:
          type:
          - object
          - 'null'
          properties:
            id:
              type: string
              format: uuid
            computer_id:
              type:
              - string
              - 'null'
              format: uuid
            owner_user_id:
              type: string
              format: uuid
            label:
              type: string
          required:
          - id
          - computer_id
          - owner_user_id
          - label
      required:
      - id
      - org_id
      - kind
      - name
      - status
      - error
      - tools
      - tools_cached_at
      - created_at
    OwnCodingAgentEntry:
      allOf:
      - $ref: '#/components/schemas/OwnCodingAgent'
      - type: object
        properties:
          id:
            type: string
            description: own_<key>, what coding.delegate takes as `agent`
        required:
        - id
    CreateLocalDeviceRequest:
      type: object
      properties:
        org_id:
          type: string
          format: uuid
        name:
          type: string
          minLength: 1
          maxLength: 80
        platform:
          type: string
          enum:
          - macos
          - windows
          - linux
          - chrome
          - app
        system:
          type: string
          enum:
          - ios
          - android
          - macos
          - linux
          - windows
          description: Required for platform "app"
        client_id:
          type: string
          minLength: 8
          maxLength: 64
          description: 'Required for platform "app": the id this app install reports its open chat with (chat focus), so a bot can use the browser only while its chat is on this phone''s screen'
      required:
      - org_id
      - name
      - platform
    UpdateLocalDeviceRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 80
        capabilities:
          $ref: '#/components/schemas/LocalCapabilities'
        allowed_roots:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 1000
          maxItems: 20
        allowed_bot_ids:
          type: array
          items:
            type: string
            format: uuid
          maxItems: 100
        all_bots:
          type: boolean
        browser_mode:
          type: string
          enum:
          - ask
          - computer
          - device
          - always
        allowed_sites:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 253
          maxItems: 500
        blocked_sites:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 253
          maxItems: 500
        never_ask_sites:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 253
          maxItems: 500
        allowed_kinds:
          type: array
          items:
            $ref: '#/components/schemas/SiteKind'
          maxItems: 4
        allowed_coding_agents:
          type: array
          items:
            type: string
            pattern: ^[a-z][a-z0-9_]{1,31}$
          maxItems: 100
          description: Coding agents beyond the built-in five allowed on this computer (D-370); one Allow each
        enabled:
          type: boolean
    CodingAgentList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/CodingAgentInfo'
      required:
      - items
    LocalCapabilities:
      type: object
      properties:
        shell:
          type: boolean
        files:
          type: boolean
        browser:
          type: boolean
        desktop:
          type: boolean
        mcp:
          type: boolean
        messages:
          type: boolean
    CodingAgentTestResult:
      type: object
      properties:
        ok:
          type: boolean
        exit_code:
          type: integer
        timed_out:
          type: boolean
        reply:
          type: string
          description: The answer as Casama reads it with the chosen result
        output:
          type: string
          description: The end of what the command printed
        command:
          type: string
          description: The command that ran
      required:
      - ok
      - exit_code
      - timed_out
      - reply
      - output
      - command
    BrowserChoiceResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        run_id:
          type: string
          format: uuid
        host:
          type: string
        status:
          type: string
          enum:
          - pending
          - answered
          - expired
          - cancelled
        choice:
          type:
          - string
          - 'null'
          enum:
          - app
          - mine
          - computer
          - null
        remember:
          type: boolean
      required:
      - id
      - run_id
      - host
      - status
      - choice
      - remember
    OwnCodingAgent:
      type: object
      properties:
        key:
          type: string
          pattern: ^[a-z][a-z0-9_]{0,23}$
        label:
          type: string
          minLength: 1
          maxLength: 40
        bin:
          type: string
          pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$
        command:
          type: string
          minLength: 1
          maxLength: 1000
          description: Template with {task} (optionally {folder}, {result_file}); every command in it starts with bin
        result:
          type: string
          pattern: ^(json_result|marker|stream_json|tail|json_field:[A-Za-z_][A-Za-z0-9_]{0,31})$
          description: 'How the answer is read: json_result (a JSON `result`), marker (the agent writes it to {result_file}), json_field:<name>, stream_json or tail'
        timeout_min:
          type: integer
          minimum: 1
          maximum: 120
      required:
      - key
      - label
      - bin
      - command
      - result
    SiteKind:
      type: string
      enum:
      - banking
      - health
      - passwords
      - government
    CodingAgentInfo:
      type: object
      properties:
        id:
          type: string
          description: What coding.delegate takes as `agent`
        label:
          type: string
        bin:
          type: string
          description: The command the desktop app looks for
        where:
          type: array
          items:
            type: string
          description: my_computer and/or bot_computer
        needs_folder:
          type: boolean
        hint:
          type:
          - string
          - 'null'
        preallowed:
          type: boolean
          description: Runs whenever commands are on; any other agent needs one Allow on each computer (allowed_coding_agents)
      required:
      - id
      - label
      - bin
      - where
      - needs_folder
      - hint
      - preallowed
    AnswerBrowserChoiceRequest:
      type: object
      properties:
        choice:
          type: string
          enum:
          - app
          - mine
          - computer
        remember:
          type: boolean
      required:
      - choice
    LocalDevice:
      type: object
      properties:
        id:
          type: string
          format: uuid
        org_id:
          type: string
          format: uuid
        user_id:
          type: string
          format: uuid
        computer_id:
          type:
          - string
          - 'null'
          format: uuid
        name:
          type: string
        platform:
          type: string
          enum:
          - macos
          - windows
          - linux
          - chrome
          - app
          description: '"chrome": a browser-only device (Casama for Chrome, D-323): no computer, browser tools only. "app": the browser inside the Casama app on a phone or tablet; listed only with all_platforms=true, because older apps read this strictly'
        system:
          type:
          - string
          - 'null'
          enum:
          - ios
          - android
          - macos
          - linux
          - windows
          - null
          description: 'For platform "app": which system the device runs'
        os_version:
          type:
          - string
          - 'null'
          description: What the desktop app reported when it last connected, e.g. "macOS 26.2"
        capabilities:
          $ref: '#/components/schemas/LocalCapabilities'
        allowed_roots:
          type: array
          items:
            type: string
        allowed_bot_ids:
          type: array
          items:
            type: string
            format: uuid
        all_bots:
          type: boolean
          description: 'In-app browser: every bot the person can chat with may use it; false limits it to allowed_bot_ids'
        browser_mode:
          type: string
          enum:
          - ask
          - computer
          - device
          - always
          description: 'In-app browser: "ask" (choice card when it helps), "computer" (always the bot''s computer), "device" (prefer this device for sign-ins and blocked sites), "always" (every page in this device''s browser while the person has the chat open there)'
        allowed_sites:
          type: array
          items:
            type: string
          description: 'Browser: sites bots may act on without asking (D-323 C6)'
        blocked_sites:
          type: array
          items:
            type: string
          description: 'Browser: sites bots may never act on'
        never_ask_sites:
          type: array
          items:
            type: string
          description: 'In-app browser: sites remembered as the bot''s computer (never show the choice card)'
        allowed_kinds:
          type: array
          items:
            $ref: '#/components/schemas/SiteKind'
          description: 'Browser: off-by-default kinds of site switched back on; they still ask'
        allowed_coding_agents:
          type: array
          items:
            type: string
          description: Coding agents beyond the built-in five that the owner allowed on this computer (D-370)
        enabled:
          type: boolean
        online:
          type: boolean
        last_seen_at:
          type:
          - string
          - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
      required:
      - id
      - org_id
      - user_id
      - computer_id
      - name
      - platform
      - capabilities
      - allowed_roots
      - allowed_bot_ids
      - enabled
      - online
      - last_seen_at
      - created_at
    AppBrowserState:
      type: object
      properties:
        available:
          type: boolean
        reason:
          type:
          - string
          - 'null'
          description: 'Why not: "off", "not_a_tester", "system_off", "workspace_off", "unavailable" (this server has no device connections)'
        device:
          allOf:
          - $ref: '#/components/schemas/LocalDevice'
          - type:
            - object
            - 'null'
            description: This app install's browser in the workspace, when it is paired
      required:
      - available
      - reason
      - device
    Problem:
      type: object
      properties:
        type:
          type: string
          example: https://casama.ai/problems/not_found
        title:
          type: string
        status:
          type: integer
        code:
          type: string
          description: Stable error code
          example: not_found
        detail:
          type: string
        instance:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              message:
                type: string
            required:
            - path
            - message
          description: Field errors for validation_failed
      required:
      - type
      - title
      - status
      - code
    OwnCodingAgentList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/OwnCodingAgentEntry'
      required:
      - items
    Risk:
      type: string
      enum:
      - low
      - medium
      - high
    SetOwnCodingAgentsRequest:
      type: object
      properties:
        agents:
          type: array
          items:
            $ref: '#/components/schemas/OwnCodingAgent'
          maxItems: 20
      required:
      - agents
    DeletedDevice:
      type: object
      properties:
        deleted:
          type: string
          format: uuid
      required:
      - deleted
    IntegrationKind:
      type: string
      enum:
      - mcp
      - openapi
      - composio
      - pipedream
      - local_mcp
      - a2a
    CreatedLocalDevice:
      allOf:
      - $ref: '#/components/schemas/LocalDevice'
      - type: object
        properties:
          token:
            type: string
            description: Device token, shown once; the app keeps it in secure storage
        required:
        - token
    TestOwnCodingAgentRequest:
      type: object
      properties:
        label:
          type: string
          minLength: 1
          maxLength: 40
        bin:
          type: string
          pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$
        command:
          type: string
          minLength: 1
          maxLength: 1000
          description: Template with {task} (optionally {folder}, {result_file}); every command in it starts with bin
        result:
          type: string
          pattern: ^(json_result|marker|stream_json|tail|json_field:[A-Za-z_][A-Za-z0-9_]{0,31})$
          description: 'How the answer is read: json_result (a JSON `result`), marker (the agent writes it to {result_file}), json_field:<name>, stream_json or tail'
        timeout_min:
          type: integer
          minimum: 1
          maximum: 10
          description: Longest the test may take (default 3 minutes)
      required:
      - label
      - bin
      - command
      - result
    LocalDeviceList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/LocalDevice'
      required:
      - items
    SetLocalMcpServersRequest:
      type: object
      properties:
        servers:
          type: array
          items:
            $ref: '#/components/schemas/LocalMcpServerInfo'
          maxItems: 50
      required:
      - servers
    LocalMcpServerInfo:
      type: object
      properties:
        key:
          type: string
          pattern: ^[a-z][a-z0-9_]{0,30}$
        label:
          type: string
          minLength: 1
          maxLength: 80
        kind:
          type: string
          enum:
          - stdio
          - loopback
        summary:
          type: string
          maxLength: 300
          description: Shown to the workspace, e.g. the command without its environment
        timeout_s:
          type: integer
          minimum: 10
          maximum: 7200
          description: Longest a call may take (default 1800 s); progress keeps it alive
        auth:
          type: string
          enum:
          - none
          - token
          - header
          - oauth
          description: How the server signs in (D-363). The token, header or sign-in itself stays on the computer
      required:
      - key
      - label
      - kind
      - summary
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase access token