get_comments
Retrieve Instagram post comments including text, usernames, timestamps, and like counts to analyze engagement and user feedback.
Instructions
Get comments on an Instagram post. Returns comment text, username, timestamp, and like count.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media_id | Yes | Instagram media ID | |
| limit | No | Number of comments (max 100) |
Implementation Reference
- src/index.ts:422-425 (handler)The tool handler logic for "get_comments", which calls c.getComments.
case "get_comments": { const comments = await c.getComments(args.media_id, args.limit ?? 25); return JSON.stringify({ media_id: args.media_id, comments, count: comments.length }, null, 2); } - src/index.ts:216-228 (schema)The tool definition/schema for "get_comments".
{ name: "get_comments", description: "Get comments on an Instagram post. Returns comment text, username, timestamp, and like count.", inputSchema: { type: "object" as const, properties: { media_id: { type: "string", description: "Instagram media ID" }, limit: { type: "integer", description: "Number of comments (max 100)", minimum: 1, maximum: 100, default: 25 }, }, required: ["media_id"], }, },