@xpoz/ai-sdk package provides 44 ready-made tools for the Vercel AI SDK. Use them with generateText, streamText, or any AI SDK-compatible framework to give your AI agent access to Twitter/X, Instagram, Reddit, and TikTok data.
Setup
2
Install the package
3
Set your access key
4
Use with generateText
Using Individual Tools
If you only need specific tools, import them directly instead of the full bundle:Field Selection
Every tool supports an optionalfields parameter to control which fields are returned. Each tool’s description lists all available fields for that entity type.
Field names differ across platforms. For example, Twitter uses
followersCount while Instagram and TikTok use followerCount. Each tool’s description lists the correct field names.TypeScript Types
The package exports response types for all entity types:outputSchema for typed results via the AI SDK’s TypedToolResult system.
Available Tools
Twitter/X
TikTok
Tracking & Account
Configuration
All tools accept an optional configuration object:What You Can Do
- Search posts by keyword across Twitter, Instagram, Reddit, and TikTok
- Look up user profiles and follower counts
- Analyze engagement metrics and trends
- Track keywords and users for continuous monitoring
- Build AI agents that autonomously research social media topics
Next Steps
MCP Tools
Browse all 48 tools across 4 platforms
npm Package
View the package on npm

