keyword_search
Search social media platforms by keywords or hashtags with boolean queries; polls until complete to return posts for sentiment and coordination analysis.
Instructions
Create a keyword/hashtag search across social media platforms (X, Reddit, YouTube, Facebook, Instagram, Threads, Bluesky, and more). Polls until the search is complete and returns the full results. Oversized responses are truncated (truncated: true, largest post arrays shortened) — read the complete post list in pages with get_keyword_search_posts (offset, limit, fields=lean, one platform at a time). A status of results_pending means the search succeeded but results are still being written; fetch them with get_keyword_search.
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": {
"query": "<query>"
},
"name": "keyword_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query. Expects KEYWORDS, not prose — a plain multi-word query is token-OR-matched server-side (each word matched independently), which pulls in unrelated posts and pollutes the sentiment/coordination analytics. ALWAYS prefer boolean syntax: AND = both required (Tesla AND battery); OR = synonyms/variants (EV OR "electric vehicle"); NOT = exclude noise (Tesla NOT "Nikola Tesla"); quotes = exact phrase ("Sherrod Brown"); parentheses = grouping. Example: "Sherrod Brown" AND (Husted OR "Ohio Senate") NOT satire. For broad topics, run several focused boolean searches rather than one wide query. | |
| sort_by | No | The order X posts are collected in, which decides which posts come back when there are more than max_post. "engagement" returns the most engaged posts of the period: do not add min_faves: to the query with it, the threshold is set for you. "time" returns the most recent posts: add min_faves:N to the query to set your own threshold. | |
| end_date | No | End of the period, in the same format as start_date: a date includes that whole day, a Unix timestamp is the exact end of the window. When one of the two is a Unix timestamp the other must be one too, and the search must be of X only. | |
| max_post | No | Maximum number of posts to retrieve per platform (default: 100). A search of X only (platforms: ["twitter"]) takes up to 1000; a search that includes any other platform takes up to 100, and a larger number is lowered to 100. | |
| enable_ai | No | Whether Rolli runs its AI analysis on the posts: sentiment, summaries and the topic tree (default: true). Pass false to collect the raw posts only, which is faster; use it when you will analyse the posts yourself. A search made with false has no topic tree. | |
| platforms | No | Platforms to search (default: twitter, reddit, bluesky, youtube) | |
| start_date | No | Start of the period: a date (YYYY-MM-DD), read as a whole UTC day. On a search of X only (platforms: ["twitter"]) it can instead be a Unix timestamp in seconds, a number, to search down to the second. | |
| sentiment_target | No | What each post's sentiment is measured towards, for example "data centers". Without it the AI analysis picks a target from the posts. Has no effect with enable_ai: false. |