X: Get community media
x_get_community_mediaReturns public posts from an X community's Media tab. 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": {
"communityId": "<communityId>"
},
"name": "x_get_community_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Maximum number of media posts to return from the community media timeline (maximum: 100) Default: 40 | |
| cursor | No | nextCursor from the previous page. Omit for the first page | |
| communityId | Yes | X community ID | |
| 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. |