@tpmjs/social-post-draft
Drafts social media posts optimized for specific platforms (Twitter, LinkedIn, Instagram, Facebook) with appropriate hashtags, CTAs, and platform-specific best practices. Respects character limits and engagement patterns.
Invalid platform: test
Last checked: 2/28/2026, 4:00:31 AM
Test @tpmjs/social-post-draft (socialPostDraftTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/social-post-draftpnpm add @tpmjs/social-post-draftyarn add @tpmjs/social-post-draftbun add @tpmjs/social-post-draftdeno add npm:@tpmjs/social-post-draftimport { socialPostDraftTool } from '@tpmjs/social-post-draft';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { socialPostDraftTool } from '@tpmjs/social-post-draft';
const result = await generateText({
model: openai('gpt-4o'),
tools: { socialPostDraftTool },
prompt: 'Your prompt here...',
});
console.log(result.text);How AI agents can use this tool
Use this tool when users need to create social media posts optimized for specific platforms. Handles character limits, hashtag generation, and platform-specific best practices.
Does not include AI content generation - you must provide the core message. Only optimizes and formats existing content for platforms.
(message: string, platform: string, tone?: string) => Promise<unknown>Available configuration options
messagestringCore message to communicate in the social post
platform'twitter' | 'linkedin' | 'instagram' | 'facebook'Target social media platform
tonestringDesired tone (professional, casual, friendly, etc.)
Schema extracted: 2/28/2026, 4:00:31 AM
ERROR: No README data found!
Downloads/month
109
GitHub Stars
0
Quality Score