reply_to_comment
Reply, in public and at once, to a comment on a published post, as the account that posted it; or hide or unhide a comment.
Only after the user approved this exact text. Comment ids come from
get_post(post_id, include_comments=True); without comment_id it is a
comment on the post itself, e.g. a link under the user's own post. On Mastodon start the text with the comment's
mention so its author is notified. Held to the network's character
limit. X, Mastodon, Bluesky, Instagram and LinkedIn company pages take
replies; other networks answer comments_unsupported with the reason.
With account_id, post_id is one of that account's own posts on its
network, published through Antwork or not, as get_post(post_id,
account_id=...) read it: the id fetch_platform_posts gave it.
With hide (and comment_id, no text), hides the comment (true) or
shows it again (false), only when the user asked. Where get_post's
commentModeration.allowed is true; each comment's canHide says which.
Args:
post_id: The published post the comment is on.
text: The reply, exactly as the user approved it. Omit with hide.
comment_id: The comment to answer or hide. Omit to reply to the post.
hide: True hides the comment, false unhides it, instead of replying.
workspace_id: Workspace ID or name. Optional if user has only one workspace.
account_id: The connected account whose own post post_id is, when it is not an Antwork post id.
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": {
"post_id": "<post_id>"
},
"name": "reply_to_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hide | No | ||
| text | No | ||
| context | No | The user's underlying goal for this call, in one sentence without personal details. Used for product analytics only. | |
| post_id | Yes | ||
| llm_model | No | The model identifier of the calling assistant, or "unknown". Used for product analytics only. | |
| account_id | No | ||
| comment_id | No | ||
| workspace_id | No | ||
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _mcp_instructions | No | Server-issued metadata for this conversation. |