Enhance photo and write captions
klynx_create_post_packUse this when the user has a photo or image they have chosen for a post about their business (their own photo of food, drinks, a shop, a salon, their work, team or premises, or a stock or other image they have the right to use) and wants it made ready to post. Klynx works best with the business's own photos: it enhances what is really there and never invents anything. Enhances the image for colour, light and sharpness with nothing added to or removed from the scene (images under 1280px on the longest edge are upscaled, which can add fine detail) and writes one caption per platform (instagram, facebook, tiktok, linkedin) in the business's voice, with alt text and up to five hashtags. Enhancement is only available together with captions. Needs image_url (https) or upload_id (from klynx_request_photo_upload) for an image at least 800px on its longest edge; platforms, subject, length and intensity are optional. Business name, type, location and voice come from the connected Klynx account. Returns a public URL for the enhanced image, the captions with hashtags and post ids, alt text, the intensity used, and the posts remaining in the plan allowance. Uses one post per platform and one AI enhancement from the account's plan allowance, as the Klynx web app would; a job the allowance does not cover is refused with plan_allowance_exhausted before any work and nothing is charged. On the free plan, captions paid from the plan allowance end with a short Made with klynx.ai line. A job that fails uses nothing from the allowance. Klynx does not supply, search for or generate images, and it does not generate people or anything else in the scene; it only enhances the image the user provides. It only creates drafts in the Klynx account: it does not publish, schedule or post anything. To post its Facebook or Instagram draft, use klynx_preview_publish, then klynx_publish_now or klynx_schedule_post once the user approves.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "klynx_create_post_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | Optional. Caption length for every platform: short, medium or long. By default Instagram, Facebook, TikTok and LinkedIn are medium. | |
| subject | No | Optional note on what the photo shows (up to 200 characters are used). | |
| image_url | No | https URL of a JPEG, PNG or WebP photo, up to 20MB. Send this or upload_id, not both. | |
| intensity | No | Optional strength of the colour and light enhancement. Defaults to medium. | |
| platforms | No | Platforms to write for. Any of instagram, facebook, tiktok, linkedin. Defaults to all four. | |
| upload_id | No | upload_id from klynx_request_photo_upload, once the photo has been uploaded. Send this or image_url, not both. | |
| idempotency_key | No | Optional key that makes a retry safe: a key already used is never charged or run twice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack_id | Yes | The id of this post pack. | |
| alt_text | Yes | ||
| captions | Yes | ||
| post_ids | Yes | The saved posts in the Klynx account, in caption order. | |
| image_url | Yes | The same URL as enhanced_image_url. | |
| intensity | Yes | ||
| published | Yes | Always false: this tool only creates drafts and never publishes, schedules or posts anything. To post a Facebook or Instagram draft, use klynx_preview_publish, then klynx_publish_now or klynx_schedule_post once the user approves. | |
| operation_id | Yes | ||
| posts_remaining | Yes | Posts left in the plan allowance after this job, or null when there is no limit. | |
| enhanced_image_url | Yes | Public URL of the enhanced photo. |