hide_comment
Hide or unhide comments on Instagram posts to control visibility. Hidden comments remain accessible only to the comment author and post owner.
Instructions
Hide or unhide a comment on your Instagram post. Hidden comments are not visible to the public.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment_id | Yes | Comment ID to hide or unhide | |
| hide | No | True to hide, False to unhide |
Implementation Reference
- src/client.ts:501-503 (handler)The core logic for hiding a comment using the client request method.
async hideComment(commentId: string, hide = true): Promise<void> { await this.request("POST", commentId, { body: { hide } }); } - src/index.ts:267-278 (registration)The tool definition and schema registration for hide_comment.
{ name: "hide_comment", description: "Hide or unhide a comment on your Instagram post. Hidden comments are not visible to the public.", inputSchema: { type: "object" as const, properties: { comment_id: { type: "string", description: "Comment ID to hide or unhide" }, hide: { type: "boolean", description: "True to hide, False to unhide", default: true }, }, required: ["comment_id"], }, - src/index.ts:441-443 (handler)The handler logic that dispatches the tool call to the client's hideComment method.
case "hide_comment": await c.hideComment(args.comment_id, args.hide ?? true); return JSON.stringify({ comment_id: args.comment_id, hidden: args.hide ?? true }, null, 2);