Preview a post before publishing or scheduling
klynx_preview_publishUse this when the user wants to publish or schedule a saved Klynx post to Facebook or Instagram, before klynx_publish_now or klynx_schedule_post. A dry run: needs post_id, account_ids (from klynx_list_social_accounts, all for the post's platform), caption and image_url (the post's own, word for word, as klynx_create_post_pack returned them), and when (now, or a date and time with its offset, 10 minutes to 30 days ahead), with an optional IANA timezone. Checks the account, the connection, the image, the time and Klynx's limit of 25 posts per account in any 24 hours, and returns exactly what will go out, the account names and a preview_token valid for 15 minutes. Free and changes nothing: it does not publish or schedule. Show the user every detail it returns and ask them to approve before going further.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"post_id": "<post_id>",
"account_ids": "<account_ids>",
"caption": "<caption>",
"image_url": "<image_url>",
"when": "<when>"
},
"name": "klynx_preview_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| when | Yes | now, or a date and time with its offset, 10 minutes to 30 days ahead. Example: 2026-11-02T09:00:00+00:00 | |
| caption | Yes | The post's saved caption, word for word: exactly what will be posted. | |
| post_id | Yes | A saved Facebook or Instagram post, from the post_ids of klynx_create_post_pack. | |
| timezone | No | Optional IANA time zone the owner thinks in, for example Europe/London. Defaults to UTC. | |
| image_url | Yes | The post's own image URL (enhanced_image_url from klynx_create_post_pack). | |
| account_ids | Yes | account_id values from klynx_list_social_accounts, all for the post's platform. Up to 5. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| reel | No | ||
| when | Yes | now, or the scheduled instant in UTC. | |
| caption | Yes | Exactly what will be posted. | |
| post_id | Yes | ||
| accounts | Yes | ||
| platform | Yes | ||
| timezone | Yes | ||
| image_url | Yes | ||
| next_step | Yes | ||
| published | Yes | Always false: a preview publishes nothing. | |
| scheduled | Yes | Always false: a preview schedules nothing. | |
| expires_at | Yes | ||
| media_type | No | image (the post photo) or reel (the post clip as an Instagram or Facebook Reel). Present when the clip tools are offered. | |
| preview_token | Yes | Pass to klynx_publish_now or klynx_schedule_post with the same details, once the user approves. | |
| scheduled_for | Yes | ||
| uses_allowance | Yes | Always false: publishing and scheduling use none of the plan allowance. |