Attach the user's own image to a post
flypost_attach_post_imagePut an image the USER gave you (their photo, screenshot, or a graphic made in Canva or Figma) onto a post draft: image_base64 + content_type, or a source_url (re-hosted in their Flypost storage, so it is still there when the post publishes). PNG, JPEG, WEBP or GIF, max 10MB. A text post gets it added to its photos (call again to add more); a concept post has its generated visual replaced (replaced_asset_url comes back). A carousel gets nothing attached: you get a hosted image_url back for flypost_upload_slide_image (source_url). Only images the user actually gave you: to make one use flypost_create_post_image, and never use it to place a brand logo. flypost_list_post_images and flypost_remove_post_image manage what is attached.
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": {
"draft_id": "<draft_id>"
},
"name": "flypost_attach_post_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_id | Yes | ||
| file_name | No | Optional original file name, used in storage. | |
| source_url | No | Fetch the image from this url instead of passing bytes. | |
| content_type | No | With image_base64: MIME type, e.g. image/png. | |
| image_base64 | No | Base64-encoded image bytes (a data: URL is also accepted). |