Weavz
Twitter (X)

Twitter (X)

Social media platform for posting, searching, and engaging with tweets

10 tools
3 triggers
Use withChatGPTClaudeClaude CodeCursorCodexMCP clientsSetup guide

Tools

Name
create_tweet

Post a new tweet

search_tweets

Search for tweets using a query

get_tweet

Get a tweet by ID

get_user

Get a user by username

get_timeline

Get tweets from a user timeline

like_tweet

Like a tweet

retweet

Retweet a tweet

send_dm

Send a direct message to a user

list_followers

List followers of a user

custom_api_call

Make a custom API call to the Twitter API v2

Triggers

Name
new_mention

Triggers when the user is mentioned in a tweet

new_follower

Triggers when a new user follows you

new_dm

Triggers when a new direct message is received

Quick Start

TypeScript
import { WeavzClient } from '@weavz-io/sdk'

const weavz = new WeavzClient({ apiKey: 'wvz_...' })

const result = await weavz.actions.execute('twitter', 'create_tweet', {
  workspaceId: '550e8400-e29b-41d4-a716-446655440000',
  integrationAlias: 'twitter',
  input: { /* ... */ },
})

Related Integrations

Works well with

Frequently Asked Questions

How do I connect Twitter (X) to my app?

Use Weavz Hosted Connect for OAuth2 authentication. Install the SDK, create a connection through the connect portal or API, then execute tools programmatically.

What tools does Twitter (X) support?

Twitter (X) supports 10 tools including Create Tweet, Search Tweets, Get Tweet, Get User, Get User Timeline, and more.

Can I use Twitter (X) with AI agents?

Yes. Add Twitter (X) to an MCP server in Tool Mode or Code Mode. Code Mode provides 3 meta-tools with on-demand API discovery so agents can compose stateful workflows without loading every action schema up front.

How do I connect Twitter (X) to ChatGPT or Claude?

Open the Weavz connector setup, sign in, choose a workspace, and add Twitter (X) as an approved app. ChatGPT, Claude, and other remote MCP clients can then call the scoped Twitter (X) tools exposed by that workspace.

Does Twitter (X) work with Claude Code, Cursor, Codex, and local agents?

Yes. Remote and local MCP clients can connect to a Weavz MCP endpoint for the workspace. Local coding agents can also use the Weavz CLI to inspect apps, discover actions, run approved Twitter (X) work, and execute Code Mode workflows from a terminal.

What can I ask an AI agent to do with Twitter (X)?

Twitter (X) exposes 10 tools, including Create Tweet, Search Tweets, Get Tweet, Get User, Get User Timeline, and more. Use Weavz to keep credentials scoped, require approval for sensitive work, and audit what the agent did.

Can Twitter (X) be used in stateful agent workflows?

Yes. Agents can combine Twitter (X) tools with Filesystem, State KV, Human Gates, input partials, and other workspace integrations while keeping execution scoped to the selected workspace or end user.

What authentication does Twitter (X) use?

Twitter (X) uses OAuth2. Weavz stores OAuth credentials securely and refreshes tokens when supported by the provider.

How much does the Twitter (X) integration cost?

The Twitter (X) integration is included on all Weavz plans including the free tier with 20,000 actions per month. No credit card required.

What triggers does Twitter (X) support?

Twitter (X) supports 3 triggers including New Mention, New Follower, New Direct Message.

Connect Twitter (X) in minutes

Get 20,000 free action executions every month. No credit card required.