ig_reply_to_comment
Reply to Instagram comments directly through the Meta MCP server by specifying a comment ID and your response message.
Instructions
Reply to a specific comment.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment_id | Yes | Comment ID to reply to | |
| message | Yes | Reply text |
Implementation Reference
- src/tools/instagram/comments.ts:91-107 (handler)The implementation of the `ig_reply_to_comment` tool, which registers the tool and defines its handler logic using the MetaClient to post a reply.
// ─── ig_reply_to_comment ───────────────────────────────────── server.tool( "ig_reply_to_comment", "Reply to a specific comment.", { comment_id: z.string().describe("Comment ID to reply to"), message: z.string().describe("Reply text"), }, async ({ comment_id, message }) => { try { const { data, rateLimit } = await client.ig("POST", `/${comment_id}/replies`, { message }); return { content: [{ type: "text", text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Reply failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } } );