delete_comment
Remove unwanted or inappropriate comments from your Instagram posts to maintain a positive and respectful community environment.
Instructions
Delete a comment on your Instagram post. Can only delete comments on your own media.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment_id | Yes | Comment ID to delete |
Implementation Reference
- src/index.ts:437-439 (handler)Tool handler for "delete_comment" which calls the deleteComment method on the Instagram client.
case "delete_comment": await c.deleteComment(args.comment_id); return JSON.stringify({ comment_id: args.comment_id, deleted: true }, null, 2); - src/client.ts:497-499 (handler)Implementation of the deleteComment method in the InstagramClient which performs a DELETE request to the comment endpoint.
async deleteComment(commentId: string): Promise<void> { await this.request("DELETE", commentId); } - src/index.ts:256-266 (registration)Registration of the "delete_comment" tool, including its schema and description.
name: "delete_comment", description: "Delete a comment on your Instagram post. Can only delete comments on your own media.", inputSchema: { type: "object" as const, properties: { comment_id: { type: "string", description: "Comment ID to delete" }, }, required: ["comment_id"], }, },