Skip to main content
Glama

delete_comment

Remove unwanted comments from Figma files to maintain clean design collaboration. Specify file key and comment ID to delete specific feedback.

Instructions

Delete a comment from a Figma file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileKeyYesThe key of the file to delete a comment from
comment_idYesID of the comment to delete

Implementation Reference

  • Core implementation of the delete_comment tool: sends DELETE request to Figma API to remove the specified comment from the file.
    async deleteComment(args: DeleteCommentArgs) { const { fileKey, comment_id } = args; return this.api.makeRequest(`/files/${fileKey}/comments/${comment_id}`, 'DELETE'); }
  • src/index.ts:273-290 (registration)
    Tool registration in the MCP server: defines the 'delete_comment' tool name, description, and input schema.
    { name: 'delete_comment', description: 'Delete a comment from a Figma file', inputSchema: { type: 'object', properties: { fileKey: { type: 'string', description: 'The key of the file to delete a comment from' }, comment_id: { type: 'string', description: 'ID of the comment to delete' } }, required: ['fileKey', 'comment_id'] }, },
  • TypeScript interface defining the input arguments for the delete_comment tool.
    export interface DeleteCommentArgs { fileKey: string; comment_id: string; }
  • Dispatch handler in the main MCP server that routes 'delete_comment' calls to the FilesHandler.
    case 'delete_comment': { const args = this.validateArgs<DeleteCommentArgs>(request.params.arguments, ['fileKey', 'comment_id']); const result = await this.filesHandler.deleteComment(args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/smithery-ai/mcp-figma'

If you have feedback or need assistance with the MCP directory API, please join our Discord server