ig_get_comments
Retrieve comments from an Instagram post. Returns comment text, username, and timestamp.
Instructions
Get comments on an Instagram post. Returns comment text, username, and timestamp.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mediaId": "<mediaId>"
},
"name": "ig_get_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Pagination cursor | |
| limit | No | Number of comments (default: 25, max: 50) | |
| mediaId | Yes | Instagram media ID | |
| accountId | No | Instagram Business Account ID. Falls back to INSTAGRAM_BUSINESS_ACCOUNT_ID env var. | |
| accessToken | No | Instagram access token. Falls back to INSTAGRAM_ACCESS_TOKEN env var. |