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

# attach_images

> Attaches 1 to 20 images to a post from finished uploads (uploadId) or https links (url).

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

**Attach images to a post** · Images, carousels and video

Attaches 1 to 20 images to a post from finished uploads (uploadId) or https links (url). Verifies each file first; posts in review, approved, publishing or published are refused.

* **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`.

**images** `object[]` *required*

1–20 items.

**properties**

**uploadId** `string`

From create\_image\_upload. Format: `uuid`.

**url** `string`

A public https image link (JPG, PNG or GIF, up to 10 MB). Length 0–2048. Format: `uri`.

**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_images",
  "arguments": {
    "postId": "7d2c3f4e-9a0b-4c5d-8e6f-1a2b3c4d5e6f",
    "images": [
      {}
    ]
  }
}
```

## Related

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