x_like_set
Set a like or unlike on an X post using its ID or status URL, then verify the updated like state.
Instructions
X (Twitter): like or unlike a post as the authenticated user. post accepts a numeric post id or a full status URL; action selects like or unlike. A reversible engagement write — the result reports the resulting liked state. (disabled by policy read-only)
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": "<post>",
"action": "<action>"
},
"name": "x_like_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post | Yes | Target post: a numeric post id or a full status URL (e.g. https://x.com/u/status/1). | |
| action | Yes | Whether to add or remove the like. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes | ||
| summary | No |