X: Get user posts
x_get_user_postsReturns public posts from a user's profile. This feed is not guaranteed to be chronological and is often a ranked public selection. Pages may overlap: a pinned post is repeated on every page, so deduplicate by id when paging. Supports projection_preset, data_fields, and item_fields for payload reduction.
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": {
"username": "<username>"
},
"name": "x_get_user_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | nextCursor from the previous page. Omit for the first page | |
| username | Yes | X username (with or without @ symbol) | |
| data_fields | No | Optional. Add top-level data keys on top of the selected projection_preset. | |
| item_fields | No | Optional. Add item keys from data.orderedItems[] on top of the selected projection_preset. | |
| projection_preset | No | Optional. Defaults to "minimal". Use one of: full, minimal, identity, engagement, or content. |