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
| Name | Required | Description | Default |
|---|---|---|---|
| fileKey | Yes | The key of the file to delete a comment from | |
| comment_id | Yes | ID of the comment to delete |
Implementation Reference
- src/handlers/files.ts:72-76 (handler)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'] }, },
- src/types/files.ts:46-49 (schema)TypeScript interface defining the input arguments for the delete_comment tool.export interface DeleteCommentArgs { fileKey: string; comment_id: string; }
- src/index.ts:538-544 (handler)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) }], }; }