Miro · Capability

Miro Developer Platform — Code widget items (experimental)

Miro Developer Platform — Code widget items (experimental). 6 operations. Lead operation: Get code widget items. Self-contained Naftiko capability covering one Miro business surface.

Run with Naftiko MiroCode widget items (experimental)

What You Can Do

GET
Getcodewidgetitems — Get code widget items
/v1/v2-experimental/boards/{board-id}/code-widgets
POST
Createcodewidgetitem — Create code widget item
/v1/v2-experimental/boards/{board-id}/code-widgets
GET
Getcodewidgetitem — Get code widget item
/v1/v2-experimental/boards/{board-id}/code-widgets/{item-id}
PATCH
Updatecodewidgetitem — Update code widget item
/v1/v2-experimental/boards/{board-id}/code-widgets/{item-id}
DELETE
Deletecodewidgetitem — Delete code widget item
/v1/v2-experimental/boards/{board-id}/code-widgets/{item-id}
PATCH
Movecodewidgetitem — Move code widget item
/v1/v2-experimental/boards/{board-id}/code-widgets/{item-id}/position

MCP Tools

get-code-widget-items

Get code widget items

read-only idempotent
create-code-widget-item

Create code widget item

read-only
get-code-widget-item

Get code widget item

read-only idempotent
update-code-widget-item

Update code widget item

idempotent
delete-code-widget-item

Delete code widget item

idempotent
move-code-widget-item

Move code widget item

idempotent

Capability Spec

miro-code-widget-items-experimental.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Miro Developer Platform — Code widget items (experimental)
  description: 'Miro Developer Platform — Code widget items (experimental). 6 operations. Lead operation: Get code widget
    items. Self-contained Naftiko capability covering one Miro business surface.'
  tags:
  - Miro
  - Code widget items (experimental)
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MIRO_API_KEY: MIRO_API_KEY
capability:
  consumes:
  - type: http
    namespace: miro-code-widget-items-experimental
    baseUri: https://api.miro.com
    description: Miro Developer Platform — Code widget items (experimental) business capability. Self-contained, no shared
      references.
    resources:
    - name: v2-experimental-boards-board_id-code_widgets
      path: /v2-experimental/boards/{board_id}/code_widgets
      operations:
      - name: getcodewidgetitems
        method: GET
        description: Get code widget items
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: string
        - name: cursor
          in: query
          type: string
        - name: board_id
          in: path
          type: string
          description: Unique identifier (ID) of the board for which you want to retrieve the list of code widget items.
          required: true
      - name: createcodewidgetitem
        method: POST
        description: Create code widget item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: board_id
          in: path
          type: string
          description: Unique identifier (ID) of the board where you want to create the item.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v2-experimental-boards-board_id-code_widgets-item_id
      path: /v2-experimental/boards/{board_id}/code_widgets/{item_id}
      operations:
      - name: getcodewidgetitem
        method: GET
        description: Get code widget item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: board_id
          in: path
          type: string
          description: Unique identifier (ID) of the board from which you want to retrieve a specific item.
          required: true
        - name: item_id
          in: path
          type: string
          description: Unique identifier (ID) of the item that you want to retrieve.
          required: true
      - name: updatecodewidgetitem
        method: PATCH
        description: Update code widget item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: board_id
          in: path
          type: string
          description: Unique identifier (ID) of the board where you want to update the item.
          required: true
        - name: item_id
          in: path
          type: string
          description: Unique identifier (ID) of the item that you want to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecodewidgetitem
        method: DELETE
        description: Delete code widget item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: board_id
          in: path
          type: string
          description: Unique identifier (ID) of the board from which you want to delete the item.
          required: true
        - name: item_id
          in: path
          type: string
          description: Unique identifier (ID) of the item that you want to delete.
          required: true
    - name: v2-experimental-boards-board_id-code_widgets-item_id-position
      path: /v2-experimental/boards/{board_id}/code_widgets/{item_id}/position
      operations:
      - name: movecodewidgetitem
        method: PATCH
        description: Move code widget item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: board_id
          in: path
          type: string
          description: Unique identifier (ID) of the board where you want to move the item.
          required: true
        - name: item_id
          in: path
          type: string
          description: Unique identifier (ID) of the item that you want to move.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MIRO_API_KEY}}'
  exposes:
  - type: rest
    namespace: miro-code-widget-items-experimental-rest
    port: 8080
    description: REST adapter for Miro Developer Platform — Code widget items (experimental). One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/v2-experimental/boards/{board-id}/code-widgets
      name: v2-experimental-boards-board-id-code-widgets
      description: REST surface for v2-experimental-boards-board_id-code_widgets.
      operations:
      - method: GET
        name: getcodewidgetitems
        description: Get code widget items
        call: miro-code-widget-items-experimental.getcodewidgetitems
        with:
          limit: rest.limit
          cursor: rest.cursor
          board_id: rest.board_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcodewidgetitem
        description: Create code widget item
        call: miro-code-widget-items-experimental.createcodewidgetitem
        with:
          board_id: rest.board_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2-experimental/boards/{board-id}/code-widgets/{item-id}
      name: v2-experimental-boards-board-id-code-widgets-item-id
      description: REST surface for v2-experimental-boards-board_id-code_widgets-item_id.
      operations:
      - method: GET
        name: getcodewidgetitem
        description: Get code widget item
        call: miro-code-widget-items-experimental.getcodewidgetitem
        with:
          board_id: rest.board_id
          item_id: rest.item_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecodewidgetitem
        description: Update code widget item
        call: miro-code-widget-items-experimental.updatecodewidgetitem
        with:
          board_id: rest.board_id
          item_id: rest.item_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecodewidgetitem
        description: Delete code widget item
        call: miro-code-widget-items-experimental.deletecodewidgetitem
        with:
          board_id: rest.board_id
          item_id: rest.item_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2-experimental/boards/{board-id}/code-widgets/{item-id}/position
      name: v2-experimental-boards-board-id-code-widgets-item-id-position
      description: REST surface for v2-experimental-boards-board_id-code_widgets-item_id-position.
      operations:
      - method: PATCH
        name: movecodewidgetitem
        description: Move code widget item
        call: miro-code-widget-items-experimental.movecodewidgetitem
        with:
          board_id: rest.board_id
          item_id: rest.item_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: miro-code-widget-items-experimental-mcp
    port: 9090
    transport: http
    description: MCP adapter for Miro Developer Platform — Code widget items (experimental). One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: get-code-widget-items
      description: Get code widget items
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: miro-code-widget-items-experimental.getcodewidgetitems
      with:
        limit: tools.limit
        cursor: tools.cursor
        board_id: tools.board_id
      outputParameters:
      - type: object
        mapping: $.
    - name: create-code-widget-item
      description: Create code widget item
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: miro-code-widget-items-experimental.createcodewidgetitem
      with:
        board_id: tools.board_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-code-widget-item
      description: Get code widget item
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: miro-code-widget-items-experimental.getcodewidgetitem
      with:
        board_id: tools.board_id
        item_id: tools.item_id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-code-widget-item
      description: Update code widget item
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: miro-code-widget-items-experimental.updatecodewidgetitem
      with:
        board_id: tools.board_id
        item_id: tools.item_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-code-widget-item
      description: Delete code widget item
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: miro-code-widget-items-experimental.deletecodewidgetitem
      with:
        board_id: tools.board_id
        item_id: tools.item_id
      outputParameters:
      - type: object
        mapping: $.
    - name: move-code-widget-item
      description: Move code widget item
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: miro-code-widget-items-experimental.movecodewidgetitem
      with:
        board_id: tools.board_id
        item_id: tools.item_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.