getLikedTweets
Retrieve posts a user has liked on X.com using their user ID, with options for result limits, pagination, and field customization.
Instructions
Get posts that a user has liked
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>"
},
"name": "getLikedTweets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The user ID whose liked posts to retrieve | |
| max_results | No | Maximum number of results | |
| pagination_token | No | Token for pagination | |
| expansions | No | Comma-separated list of expansion fields | |
| tweet.fields | No | Comma-separated list of tweet fields to include | |
| user.fields | No | Comma-separated list of user fields to include |