filter_posts
Filter posts loaded from an X list or community. Call this after get_list_tweets, get_list_timeline, get_community_tweets, or search_community_tweets when the user wants only posts that match a description.
Pass the tweets array from that tool response unchanged. Do not drop, summarize, or rewrite posts before filtering.
description is the user's filter in plain language, for example "posts asking for feedback" or "founders sharing revenue".
source:
- "list" — drop replies first, same as Engage lists
- "community" — keep replies, same as Engage communities
- omit source when the page is not a list
Returns only the posts that match, highest engagement first. Display each post's full text, author, and url. Do not paraphrase.
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": {
"description": "<description>",
"tweets": "<tweets>"
},
"name": "filter_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | list drops replies before filtering. community keeps them. | |
| tweets | Yes | The tweets array from a list or community load tool. One page, up to 40 posts. | |
| description | Yes | What to keep, in the user's words. |