Figma · Capability

Figma REST API — Comments

Figma REST API — Comments. 5 operations. Lead operation: Figma Get Comments. Self-contained Naftiko capability covering one Figma business surface.

Run with Naftiko FigmaComments

What You Can Do

GET
Getcomments — Figma Get Comments
/v1/v1/files/{file-key}/comments
POST
Postcomment — Figma Post Comment
/v1/v1/files/{file-key}/comments
DELETE
Deletecomment — Figma Delete Comment
/v1/v1/files/{file-key}/comments/{comment-id}
GET
Getcommentreactions — Figma Get Comment Reactions
/v1/v1/files/{file-key}/comments/{comment-id}/reactions
POST
Postcommentreaction — Figma Post Comment Reaction
/v1/v1/files/{file-key}/comments/{comment-id}/reactions

MCP Tools

figma-get-comments

Figma Get Comments

read-only idempotent
figma-post-comment

Figma Post Comment

figma-delete-comment

Figma Delete Comment

idempotent
figma-get-comment-reactions

Figma Get Comment Reactions

read-only idempotent
figma-post-comment-reaction

Figma Post Comment Reaction

Capability Spec

rest-comments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Figma REST API — Comments
  description: 'Figma REST API — Comments. 5 operations. Lead operation: Figma Get Comments. Self-contained Naftiko capability
    covering one Figma business surface.'
  tags:
  - Figma
  - Comments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FIGMA_API_KEY: FIGMA_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-comments
    baseUri: https://api.figma.com
    description: Figma REST API — Comments business capability. Self-contained, no shared references.
    resources:
    - name: v1-files-file_key-comments
      path: /v1/files/{file_key}/comments
      operations:
      - name: getcomments
        method: GET
        description: Figma Get Comments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: as_md
          in: query
          type: boolean
          description: If set to true, comment message content will be returned as Markdown instead of plain text.
      - name: postcomment
        method: POST
        description: Figma Post Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-files-file_key-comments-comment_id
      path: /v1/files/{file_key}/comments/{comment_id}
      operations:
      - name: deletecomment
        method: DELETE
        description: Figma Delete Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: comment_id
          in: path
          type: string
          description: The ID of the comment to delete.
          required: true
    - name: v1-files-file_key-comments-comment_id-reactions
      path: /v1/files/{file_key}/comments/{comment_id}/reactions
      operations:
      - name: getcommentreactions
        method: GET
        description: Figma Get Comment Reactions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: comment_id
          in: path
          type: string
          description: The ID of the comment.
          required: true
        - name: cursor
          in: query
          type: string
          description: Cursor for paginated results.
      - name: postcommentreaction
        method: POST
        description: Figma Post Comment Reaction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: comment_id
          in: path
          type: string
          description: The ID of the comment.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.FIGMA_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-comments-rest
    port: 8080
    description: REST adapter for Figma REST API — Comments. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/files/{file-key}/comments
      name: v1-files-file-key-comments
      description: REST surface for v1-files-file_key-comments.
      operations:
      - method: GET
        name: getcomments
        description: Figma Get Comments
        call: rest-comments.getcomments
        with:
          as_md: rest.as_md
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postcomment
        description: Figma Post Comment
        call: rest-comments.postcomment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/files/{file-key}/comments/{comment-id}
      name: v1-files-file-key-comments-comment-id
      description: REST surface for v1-files-file_key-comments-comment_id.
      operations:
      - method: DELETE
        name: deletecomment
        description: Figma Delete Comment
        call: rest-comments.deletecomment
        with:
          comment_id: rest.comment_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/files/{file-key}/comments/{comment-id}/reactions
      name: v1-files-file-key-comments-comment-id-reactions
      description: REST surface for v1-files-file_key-comments-comment_id-reactions.
      operations:
      - method: GET
        name: getcommentreactions
        description: Figma Get Comment Reactions
        call: rest-comments.getcommentreactions
        with:
          comment_id: rest.comment_id
          cursor: rest.cursor
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postcommentreaction
        description: Figma Post Comment Reaction
        call: rest-comments.postcommentreaction
        with:
          comment_id: rest.comment_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-comments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Figma REST API — Comments. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: figma-get-comments
      description: Figma Get Comments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-comments.getcomments
      with:
        as_md: tools.as_md
      outputParameters:
      - type: object
        mapping: $.
    - name: figma-post-comment
      description: Figma Post Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-comments.postcomment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: figma-delete-comment
      description: Figma Delete Comment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: rest-comments.deletecomment
      with:
        comment_id: tools.comment_id
      outputParameters:
      - type: object
        mapping: $.
    - name: figma-get-comment-reactions
      description: Figma Get Comment Reactions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-comments.getcommentreactions
      with:
        comment_id: tools.comment_id
        cursor: tools.cursor
      outputParameters:
      - type: object
        mapping: $.
    - name: figma-post-comment-reaction
      description: Figma Post Comment Reaction
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-comments.postcommentreaction
      with:
        comment_id: tools.comment_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.