post_action
Like, unlike, repost, unrepost, bookmark, unbookmark, or hide/unhide replies on an X post using a specified or default account.
Instructions
Interact with a post as the given account: like, unlike, repost, unrepost, bookmark, unbookmark, hide_reply or unhide_reply (replies to your own posts).
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": {
"action": "<action>",
"post_id": "<post_id>"
},
"name": "post_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| account | No | X username of an authorized account (see list_accounts). Omit to use the default account. | |
| post_id | Yes |