history_data
Retrieve social media posting history for an account, including up to 100 posts within specified date ranges, with optional video metrics.
Instructions
Get posting history for a social account (max 100 posts per request)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Social account ID (from social_account_list) | |
| start_date | No | Start date in YYYY-MM-DD HH:MM:SS format | |
| end_date | No | End date in YYYY-MM-DD HH:MM:SS format | |
| is_get_video_updates | No | Include video update metrics (default: true) |
Implementation Reference
- src/index.ts:113-138 (handler)The 'history_data' tool definition and handler implementation. It uses the `callAPI` helper to fetch posting history from RecurPost with optional date filtering and video metric settings.
server.tool( "history_data", "Get posting history for a social account (max 100 posts per request)", { id: z.string().describe("Social account ID (from social_account_list)"), start_date: z .string() .optional() .describe("Start date in YYYY-MM-DD HH:MM:SS format"), end_date: z .string() .optional() .describe("End date in YYYY-MM-DD HH:MM:SS format"), is_get_video_updates: z .boolean() .optional() .describe("Include video update metrics (default: true)"), }, async (params) => { try { return toolResult(await callAPI("/api/history_data", params)); } catch (e) { return toolResult({ error: String(e) }, true); } } );