Manage X (Twitter) — draft and publish posts, inspect timelines, search content, manage profiles, and automate social media workflows via the X API.
This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure X API access yourself.
Step 1: InstallStep 2: Pair AccountStep 3: Connect X (Twitter)
_App-specific connection GIF coming soon_Run the install command in OpenClawSign in and approve the deviceOpen the dashboard and connect X
text
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ OpenClaw │────▶│ ClawLink │────▶│ X API │
│ (User Chat) │ │ (OAuth) │ │ │
└─────────────────┘ └──────────────┘ └──────────────────┘
│ │ │
│ 1. Install Plugin │ │
│ 2. Pair Device │ │
│ 3. Connect X │ │
│ │ 4. Secure Token │
│ │ 5. Proxy Requests │
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ SKILL │ │ Dashboard│ │ X │
│ File │ │ Auth │ │ Account │
└──────────┘ └──────────┘ └──────────┘
Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.
bash
openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for X (Twitter) again."
bash
# Get user profile
clawlink_call_tool --tool "twitter_get_user" --params '{"username": "username"}'
# Post a tweet
clawlink_call_tool --tool "twitter_create_tweet" --params '{"text": "Hello from OpenClaw!"}'
# search tweets
clawlink_call_tool --tool "twitter_search_tweets" --params '{"query": "openclaw"}'
All X tool calls are authenticated automatically by ClawLink using the user's connected X account OAuth token.
No API token is required in chat. ClawLink stores the OAuth token securely and injects it into every X API request on the user's behalf.
clawlink_begin_pairing if it is not configured yet.clawlink_list_integrations to verify the connection is active.bash
clawlink_list_integrations
Response: Returns all connected integrations. Look for twitter in the list.
bash
clawlink_list_tools --integration twitter
Response: Returns the live tool catalog for X.
If X tools are missing or the connection shows an error:
clawlink_list_integrations to verifyclawlink_list_tools --integration twitterToolDescriptionModetwitter_list_tweetsList tweets from a user's timelineReadtwitter_get_tweetGet a specific tweet's detailsReadtwitter_create_tweetPost a new tweetWritetwitter_delete_tweetDelete a tweetWritetwitter_update_tweetUpdate a tweet's textWritetwitter_retweetRetweet an existing tweetWritetwitter_unretweetRemove a retweetWritetwitter_like_tweetLike a tweetWritetwitter_unlike_tweetRemove a like from a tweetWrite
ToolDescriptionModetwitter_get_home_timelineGet tweets from the home timelineReadtwitter_get_user_timelineGet tweets from a specific user's timelineReadtwitter_get_mentions_timelineGet tweets mentioning the authenticated userRead
ToolDescriptionModetwitter_search_tweetsSearch for tweets matching a queryReadtwitter_search_usersSearch for users matching a queryRead
ToolDescriptionModetwitter_get_userGet a user's profile informationReadtwitter_list_followersList followers of a userReadtwitter_list_followingList accounts a user followsReadtwitter_follow_userFollow a userWritetwitter_unfollow_userUnfollow a userWritetwitter_block_userBlock a userWritetwitter_unblock_userUnblock a userWritetwitter_mute_userMute a userWritetwitter_unmute_userUnmute a userWrite
ToolDescriptionModetwitter_list_bookmarksList the authenticated user's bookmarksReadtwitter_add_bookmarkAdd a tweet to bookmarksWritetwitter_remove_bookmarkRemove a tweet from bookmarksWrite
ToolDescriptionModetwitter_list_list_membershipsList lists a user is a member ofReadtwitter_list_list_subscribersList subscribers to a listReadtwitter_list_list_tweetsGet tweets from a specific listRead
ToolDescriptionModetwitter_list_direct_messagesList direct messagesReadtwitter_send_direct_messageSend a direct messageWrite
ToolDescriptionModetwitter_upload_mediaUpload an image or video to attach to a tweetWritetwitter_create_tweet_with_mediaPost a tweet with attached mediaWrite
bash
clawlink_call_tool --tool "twitter_create_tweet" \
--params '{
"text": "Excited to announce our new integration! Check it out at https://example.com"
}'
bash
clawlink_call_tool --tool "twitter_get_user" \
--params '{
"username": "elonmusk"
}'
bash
clawlink_call_tool --tool "twitter_search_tweets" \
--params '{
"query": "openclaw ai assistant",
"max_results": 10
}'
bash
clawlink_call_tool --tool "twitter_retweet" \
--params '{
"tweet_id": "TWEET_ID"
}'
bash
clawlink_call_tool --tool "twitter_follow_user" \
--params '{
"username": "example_user"
}'
bash
clawlink_call_tool --tool "twitter_create_tweet_with_media" \
--params '{
"text": "Check out this screenshot!",
"media_ids": ["MEDIA_ID"]
}'
clawlink_list_integrations to confirm X is connected.clawlink_list_tools --integration twitter to see the live catalog.clawlink_search_tools with a short query and integration twitter.text
┌─────────────────────────────────────────────────────────────┐
│ READ OPERATIONS (Safe) │
│ list → get → search → describe │
│ │
│ Example: Get user → List tweets → Show profile │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ WRITE OPERATIONS (Require Confirmation) │
│ describe → preview → confirm → call │
│ │
│ Example: Preview tweet → User approves → Post tweet │
└─────────────────────────────────────────────────────────────┘
clawlink_describe_tool first.whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.clawlink_preview_tool first.clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.Status / ErrorMeaningTool not foundThe tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration twitter.Missing connectionX is not connected. Direct the user to https://claw-link.dev/dashboard?add=twitter.Tweet not foundThe tweet ID does not exist or has been deleted.User not foundThe username does not match any account.UnauthorizedThe OAuth token lacks permission for this operation.DuplicateThe tweet text is identical to a recent tweet (spam protection).Rate limit exceededToo many requests. Wait and retry with backoff.Media upload failedThe file format is unsupported or exceeds size limits.Write rejectedUser did not confirm a write action. Always confirm before executing writes.
Check that the ClawLink plugin is installed: bash
openclaw plugins list
If the plugin is installed but tools are missing, tell the user to send /new as a standalone message to reload the catalog.
If a fresh chat does not help, run: bash
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
After restart, tell the user to send /new again and retry.
Powered by ClawLink — an integration hub for OpenClaw
