post_comment
Add comments with text or images to social media posts across platforms like Facebook, Instagram, and Twitter using Ayrshare's API.
Instructions
Post a comment on a social media post. Supports text and image comments across multiple platforms. Requires Premium plan.
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": {
"id": "<id>",
"comment": "<comment>",
"platforms": "<platforms>"
},
"name": "post_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Ayrshare Post ID or Social Post ID of the post to comment on | |
| comment | Yes | Comment text content | |
| platforms | Yes | Target platforms for the comment | |
| searchPlatformId | No | Set to true when using a Social Post ID instead of Ayrshare Post ID | |
| mediaUrls | No | Image URLs to attach to the comment | |
| profileKey | No | Profile Key to operate on a specific user profile |