> ## Documentation Index
> Fetch the complete documentation index at: /llms.txt
> Use this file to discover all available pages before exploring further.

# attach_image_to_post

> Adds a PostChamp image (from generate_image) to a post, up to 20 images.

{/* Generated by apps/docs/scripts/generate.ts. Do not edit by hand. */}

**Attach an image to a post** · Images, carousels and video

Adds a PostChamp image (from generate\_image) to a post, up to 20 images. A post carries one kind of media: if it has a document or video, remove that first. Posts in review, approved, publishing or published are locked.

* **Credits:** Free
* **Needs confirmation:** no
* **In the ChatGPT app:** no

## Input

**postId** `string` *required*

Post id (from import\_post, generate\_post or get\_post). Format: `uuid`.

**imageId** `string` *required*

Format: `uuid`.

**altText** `string`

Length 0–300.

**workspace** `string`

Workspace id or exact name. Required when this connection can use more than one workspace (see list\_workspaces). Length 1–200.

## Example call

```json Tool call
{
  "name": "attach_image_to_post",
  "arguments": {
    "postId": "7d2c3f4e-9a0b-4c5d-8e6f-1a2b3c4d5e6f",
    "imageId": "7d2c3f4e-9a0b-4c5d-8e6f-1a2b3c4d5e6f"
  }
}
```

## Related

* [All MCP tools](/mcp/tools.md)
* [Connect an assistant](/mcp/quickstart.md)
* [Limits and errors](/mcp/limits-and-errors.md)
