Reference

searchXPosts

Search recent X (Twitter) posts matching a query.
mindstudio.searchXPosts({ query, scope, options }) → Result

Searches recent X (Twitter) posts matching a query.

Parameters
query
string
RequiredSearch query (max 512 chars, supports X API v2 search operators)
scope
string
RequiredSearch scope: "recent" for past 7 days or "all" for full archive
recentall
options
object
RequiredAdditional search options
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.searchXPosts({
  query: /* ... */,
  scope: /* ... */,
  options: /* ... */
});