X engagement
x_engagementLike, repost, bookmark posts, or undo those actions as the authenticated account.
Instructions
Like, repost and bookmark posts, and undo those actions, as the authenticated account.
Actions (pass "action" plus that action's parameters):
like: Like a post as the authenticated account. [requires: tweet_id]
unlike: Remove a like from a post. [requires: tweet_id]
repost: Repost a post to your followers. [requires: tweet_id]
unrepost: Remove one of your reposts. [requires: tweet_id]
bookmark: Save a post to your bookmarks. [requires: tweet_id]
unbookmark: Remove a post from your bookmarks. [requires: tweet_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": {
"action": "<action>"
},
"name": "x_engagement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform. One of: like, unlike, repost, unrepost, bookmark, unbookmark. | |
| tweet_id | No | Numeric post id. |