The x tool uses dual authentication β an App Bearer Token for reads and OAuth 1.0a for writes.
Tools
| Tool | Purpose | Actions |
|---|---|---|
x | Post/read X content via the X API | post_tweet, delete_tweet, search_tweets, get_timeline, get_user |
x_search | Grok-backed X research (xAI hosted tool) | single query tool (see below) |
x params
| Param | Used by | Notes |
|---|---|---|
text | post_tweet | Tweet text, max 280 chars |
tweet_id | delete_tweet | Target tweet ID |
query | search_tweets | Search query |
username | get_timeline, get_user | Handle without @ |
max_results | reads | 5β100, default 10 |
x_search params
query, allowed_x_handles, excluded_x_handles, from_date, to_date,
enable_image_understanding, enable_video_understanding.
Authentication (x tool)
The x tool uses two credential paths depending on the operation:
- Read (
search_tweets,get_timeline,get_user): App-only Bearer Token. - Write (
post_tweet,delete_tweet): OAuth 1.0a β consumer key/secret plus access token/secret, with an HMAC-SHA1 signedAuthorizationheader.
Configuration (x tool)
The tool registers when bearerToken or apiKey is present. Full key set:
{
"integrations": {
"x": {
"bearerToken": "",
"apiKey": "",
"apiSecret": "",
"accessToken": "",
"accessTokenSecret": ""
}
}
}| Key | Role |
|---|---|
bearerToken | App-only Bearer Token (read operations) |
apiKey | OAuth 1.0a consumer key (write operations) |
apiSecret | OAuth 1.0a consumer secret |
accessToken | OAuth 1.0a access token |
accessTokenSecret | OAuth 1.0a access token secret |
Provide only bearerToken for read-only use; supply the four OAuth 1.0a values
to enable posting/deleting.
x tool β config only. Missing-credential errors name the exact key required.
x_search (xAI)
x_search is a separate tool backed by xAI's hosted x_search capability. Its
credentials are resolved in priority order:
- xAI OAuth subscription credentials (signed in via
flowly xai login). - Fallback to
providers.xai.apiKey, or theXAI_API_KEYenvironment variable.
Setup
Run the interactive integrations setup and pick X:
flowly setup toolsThe X card prompts for the relevant credentials, validates with a probe, and
writes the integrations.x.* keys.
flowly service restart).