generate_content_with_ai
Generate social media content text using AI for RecurPost, supporting multi-turn conversations to refine content creation.
Instructions
Generate social media content text using RecurPost AI. Supports multi-turn conversations via ai_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt_text | Yes | Topic or text to generate content about | |
| ai_id | No | AI conversation ID from a previous response, for follow-up turns | |
| chat_progress | No | Chat progress marker from a previous response |
Implementation Reference
- src/index.ts:495-522 (handler)The 'generate_content_with_ai' tool is registered using server.tool, and its handler calls the '/api/generate_content_with_ai' endpoint via the callAPI helper.
server.tool( "generate_content_with_ai", "Generate social media content text using RecurPost AI. Supports multi-turn conversations via ai_id.", { prompt_text: z .string() .describe("Topic or text to generate content about"), ai_id: z .string() .optional() .describe( "AI conversation ID from a previous response, for follow-up turns" ), chat_progress: z .string() .optional() .describe("Chat progress marker from a previous response"), }, async (params) => { try { return toolResult( await callAPI("/api/generate_content_with_ai", params) ); } catch (e) { return toolResult({ error: String(e) }, true); } } );