---
title: "Image ad tools"
description: "Generate image ads, clone ads, edit ad images and copy, and check generation status."
url: "https://sellify.ai/docs/developers/mcp-tools/image-ads"
updated: "2026-11-19"
---

# Image ad tools

> Generate image ads, clone ads, edit ad images and copy, and check generation status.

Generate image ads, clone ads, edit ad images and copy, and check generation status. This page lists 18 tools, 5 of them read-only.

- [`ecom_image_ad_get`](#ecom_image_ad_get): Get one generated ad
- [`ecom_winning_ad_list`](#ecom_winning_ad_list): List winning ads
- [`ecom_image_ad_get_submission_status`](#ecom_image_ad_get_submission_status): Get image-ad generation status
- [`ecom_generation_get_status`](#ecom_generation_get_status): Get generation status
- [`ecom_generation_retry`](#ecom_generation_retry): Retry a failed generation
- [`ecom_image_ad_submit`](#ecom_image_ad_submit): Generate image ads for a product and sales angle
- [`ecom_image_ad_clone`](#ecom_image_ad_clone): Clone a winning image ad for a product
- [`ecom_image_ad_clone_from_saved_spy`](#ecom_image_ad_clone_from_saved_spy): Recreate a saved Ad Spy image for a product
- [`ecom_image_ad_generate_more`](#ecom_image_ad_generate_more): Generate more variations from an image-ad submission
- [`ecom_image_ad_update_meta_copy`](#ecom_image_ad_update_meta_copy): Edit an ad copy field
- [`ecom_image_ad_request_image_edit`](#ecom_image_ad_request_image_edit): Request an AI image edit
- [`ecom_image_ad_request_background_removal`](#ecom_image_ad_request_background_removal): Remove an ad image background
- [`ecom_image_ad_set_current_version`](#ecom_image_ad_set_current_version): Switch an ad back to an earlier image or copy
- [`ecom_image_ad_update_text_layer`](#ecom_image_ad_update_text_layer): Change the headline and button text on an ad
- [`ecom_image_ad_regenerate_copy`](#ecom_image_ad_regenerate_copy): Regenerate ad copy
- [`ecom_brand_kit_get`](#ecom_brand_kit_get): Get the workspace brand kit
- [`ecom_brand_kit_update`](#ecom_brand_kit_update): Update the workspace brand kit
- [`ecom_brand_kit_create_from_url`](#ecom_brand_kit_create_from_url): Set up the brand kit from a website

## `ecom_image_ad_get`

**Get one generated ad**

Reads one generated ad: all of its copy, every finished image version (and which is current), and its copy edit history, newest first.

| Property       | Value                  |
| -------------- | ---------------------- |
| Access         | Read-only              |
| Scope          | Ads: read (`ads:read`) |
| Credits        | Free                   |
| Safe to repeat | Yes                    |

### Input

| Field             | Type   | Required | Description                                                                                                        |
| ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `adRef`           | object | Yes      |                                                                                                                    |
| `response_format` | enum   | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`. |

### Output

| Field                   | Type                  | Description                                                                              |
| ----------------------- | --------------------- | ---------------------------------------------------------------------------------------- |
| `submissionId`          | string (uuid)         |                                                                                          |
| `variationId`           | string                | Length 1 to 100.                                                                         |
| `copy`                  | object or null        |                                                                                          |
| `currentImageVersionId` | string (uuid) or null |                                                                                          |
| `imageVersions`         | array of object       |                                                                                          |
| `pendingImageEdits`     | integer               |                                                                                          |
| `copyVersions`          | array of object       |                                                                                          |
| `copyVersionsHasMore`   | boolean               |                                                                                          |
| `notice`                | string                | Present when results were left out to keep the response small. Says how to see the rest. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_image_ad_get",
    "arguments": {
      "adRef": {
        "submissionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "variationId": "example"
      }
    }
  }
}
```

## `ecom_winning_ad_list`

**List winning ads**

Lists the shared winning ads library plus this workspace's own ads, newest first. Filter by query (caption, brand, or source link) or adType. Each returned id is a winningAdId for cloning.

| Property       | Value                  |
| -------------- | ---------------------- |
| Access         | Read-only              |
| Scope          | Ads: read (`ads:read`) |
| Credits        | Free                   |
| Safe to repeat | Yes                    |

### Input

| Field             | Type           | Required | Description                                                                                                                                                                                                                                                                                       |
| ----------------- | -------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `query`           | string         | No       | Length up to 120.                                                                                                                                                                                                                                                                                 |
| `adType`          | enum           | No       | One of: `product_highlight`, `lifestyle`, `before_after`, `benefit_callout`, `announcement`, `promotion_discount`, `facts_statistics`, `faq_explainer`, `features_benefits`, `holiday_seasonal`, `humor_fun`, `native_ad`, `reasons_why`, `testimonial_reviews`, `ugc`, `unboxing`, `us_vs_them`. |
| `limit`           | integer        | No       | Between 1 and 100. Defaults to `25`.                                                                                                                                                                                                                                                              |
| `cursor`          | string or null | No       |                                                                                                                                                                                                                                                                                                   |
| `response_format` | enum           | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                                                                                                                                                |

### Output

| Field        | Type            | Description                                                                              |
| ------------ | --------------- | ---------------------------------------------------------------------------------------- |
| `winningAds` | array of object | Items up to 100.                                                                         |
| `nextCursor` | string or null  |                                                                                          |
| `hasMore`    | boolean         |                                                                                          |
| `notice`     | string          | Present when results were left out to keep the response small. Says how to see the rest. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_winning_ad_list",
    "arguments": {}
  }
}
```

## `ecom_image_ad_get_submission_status`

**Get image-ad generation status**

Returns progress, failure details, and safe visible results for one Ecom image-ad generation submission.

| Property       | Value                  |
| -------------- | ---------------------- |
| Access         | Read-only              |
| Scope          | Ads: read (`ads:read`) |
| Credits        | Free                   |
| Safe to repeat | Yes                    |

### Input

| Field          | Type          | Required | Description |
| -------------- | ------------- | -------- | ----------- |
| `submissionId` | string (uuid) | Yes      |             |

### Output

| Field                         | Type                  | Description                                             |
| ----------------------------- | --------------------- | ------------------------------------------------------- |
| `id`                          | string (uuid)         |                                                         |
| `status`                      | enum                  | One of: `pending`, `processing`, `completed`, `failed`. |
| `error`                       | string or null        |                                                         |
| `parentSubmissionId`          | string (uuid) or null |                                                         |
| `requestedVariationCount`     | integer or null       |                                                         |
| `imageGenerationFailureCount` | integer               |                                                         |
| `copyPending`                 | boolean               |                                                         |
| `copyFailureCount`            | integer               |                                                         |
| `createdAt`                   | string                |                                                         |
| `startedAt`                   | string or null        |                                                         |
| `completedAt`                 | string or null        |                                                         |
| `updatedAt`                   | string                |                                                         |
| `result`                      | object or null        |                                                         |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_image_ad_get_submission_status",
    "arguments": {
      "submissionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  }
}
```

## `ecom_generation_get_status`

**Get generation status**

Checks a background job: an ad image edit or background removal, a sales-angle or hook generation, or a hero-image generation. While pending or processing, wait a few seconds and call again. New image-ad generations have their own status tool. kind queue counts every generation running or waiting in the workspace.

| Property       | Value                  |
| -------------- | ---------------------- |
| Access         | Read-only              |
| Scope          | Ads: read (`ads:read`) |
| Credits        | Free                   |
| Safe to repeat | Yes                    |

### Input

| Field             | Type          | Required                                       | Description                                                                                                                                                                                                                                                                                                                                                              |
| ----------------- | ------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `kind`            | enum          | Yes                                            | image\_edit takes the versionId from the edit or background removal. sales\_angles takes the submissionId from angle or hook generation, and optionally its productId. hero\_images takes the submissionId from hero-image generation; finished images are saved on the product. queue takes nothing else. One of: `image_edit`, `sales_angles`, `hero_images`, `queue`. |
| `versionId`       | string (uuid) | When `kind` is `image_edit`                    |                                                                                                                                                                                                                                                                                                                                                                          |
| `submissionId`    | string (uuid) | When `kind` is `sales_angles` or `hero_images` |                                                                                                                                                                                                                                                                                                                                                                          |
| `productId`       | string (uuid) | No                                             |                                                                                                                                                                                                                                                                                                                                                                          |
| `response_format` | enum          | No                                             | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                                                                                                                                                                                                                       |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_generation_get_status",
    "arguments": {
      "kind": "image_edit",
      "versionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  }
}
```

## `ecom_generation_retry`

**Retry a failed generation**

Reruns a failed image-ad or hero-image generation with the same settings and price as the first run. Returns its submissionId.

Pass a unique idempotency\_key per intended write, so a retry returns the first result instead of writing twice.

| Property        | Value                                                      |
| --------------- | ---------------------------------------------------------- |
| Access          | Writes data                                                |
| Scope           | Ads: write (`ads:write`)                                   |
| Credits         | About 11 to 242 credits, depending on quantity and options |
| Who can call it | Workspace owners and admins                                |
| Safe to repeat  | Yes                                                        |

### Input

| Field             | Type          | Required | Description                                                                                           |
| ----------------- | ------------- | -------- | ----------------------------------------------------------------------------------------------------- |
| `submissionId`    | string (uuid) | Yes      |                                                                                                       |
| `idempotency_key` | string        | Yes      | Client-chosen key identifying this write. Reuse it only when retrying the same call. Length 1 to 200. |
| `max_credits`     | number        | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                         |

### Output

| Field             | Type           | Description                                                                              |
| ----------------- | -------------- | ---------------------------------------------------------------------------------------- |
| `submissionId`    | string (uuid)  |                                                                                          |
| `kind`            | enum           | One of: `image_ads`, `hero_images`.                                                      |
| `productId`       | string or null |                                                                                          |
| `credits_charged` | number         | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_generation_retry",
    "arguments": {
      "submissionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "idempotency_key": "example",
      "max_credits": 242
    }
  }
}
```

## `ecom_image_ad_submit`

**Generate image ads for a product and sales angle**

Queues an ecom image ad generation and returns the submission id to poll. Charges image generation credits when the work completes. Build from a template with productId, one of its angleId values and an adType format, optionally with offerId, heroImageIds, aspectRatio and variationCount; to mix formats, set varyOptions.adFormat and list the formats in overrideAdTypes, primary first. Or build from a written brief with adType prompt\_led and userAdBrief, optionally with productId, and without formatId, varyOptions or overrideAdTypes.

Use the template when the user names a saved product and sales angle, and look both up first. When they do not name an ad format, pass adType product\_highlight instead of asking which format to use. Use the written brief when the user describes the picture they want, passing productId too when they name a saved product. When the user gives you pictures to follow, such as a layout, a style or the product itself, pass them in reference\_images with the written brief, or saved reference images by storagePath in referenceImageStoragePaths.

| Property        | Value                                                      |
| --------------- | ---------------------------------------------------------- |
| Access          | Writes data                                                |
| Scope           | Ads: write (`ads:write`)                                   |
| Credits         | About 15 to 122 credits, depending on quantity and options |
| Who can call it | Workspace owners and admins                                |

### Input

| Field                        | Type                   | Required | Description                                                                                                                                                                                                                                                                                                     |
| ---------------------------- | ---------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `productId`                  | string (uuid)          | No       |                                                                                                                                                                                                                                                                                                                 |
| `angleId`                    | string (uuid)          | No       |                                                                                                                                                                                                                                                                                                                 |
| `adType`                     | enum                   | Yes      | One of: `prompt_led`, `product_highlight`, `lifestyle`, `before_after`, `benefit_callout`, `announcement`, `promotion_discount`, `facts_statistics`, `faq_explainer`, `features_benefits`, `holiday_seasonal`, `humor_fun`, `native_ad`, `reasons_why`, `testimonial_reviews`, `ugc`, `unboxing`, `us_vs_them`. |
| `aspectRatio`                | enum                   | No       | One of: `1:1`, `4:5`, `16:9`, `9:16`. Defaults to `"1:1"`.                                                                                                                                                                                                                                                      |
| `variationCount`             | integer                | No       | Between 1 and 5. Defaults to `5`.                                                                                                                                                                                                                                                                               |
| `quality`                    | enum                   | No       | Image quality. standard (default) is sized for Meta feeds and stories. high renders 4K for crops, zooms, landing pages and print, and costs more credits. One of: `standard`, `high`.                                                                                                                           |
| `offerId`                    | string (uuid)          | No       |                                                                                                                                                                                                                                                                                                                 |
| `formatId`                   | enum                   | No       | One of: `announcement_promotion_discount`, `before_after`, `facts_statistics`, `faq_explainer`, `features_benefits`, `holiday_seasonal_discount`, `humor_funny`, `native_ad`, `reasons_to_buy`, `testimonials_reviews`, `ugc`, `unboxing`, `us_versus_them`, `bizarre_pattern_interrupt`.                       |
| `varyOptions`                | object                 | No       |                                                                                                                                                                                                                                                                                                                 |
| `overrideAdTypes`            | array of enum          | No       | Items 1 to 17.                                                                                                                                                                                                                                                                                                  |
| `referenceImageStoragePaths` | array of string        | No       | Items up to 5.                                                                                                                                                                                                                                                                                                  |
| `userAdBrief`                | string                 | No       | Length 1 to 3000.                                                                                                                                                                                                                                                                                               |
| `heroImageIds`               | array of string (uuid) | No       | Items up to 10.                                                                                                                                                                                                                                                                                                 |
| `useBrandKit`                | boolean                | No       | Apply the workspace brand kit. Defaults to true; pass false for an ad without the brand logo, colours, fonts and voice.                                                                                                                                                                                         |
| `includeLogo`                | boolean                | No       | Brand kit logo on the ad. Default: on with a product, off without. Needs useBrandKit.                                                                                                                                                                                                                           |
| `reference_images`           | array of object        | No       | Up to 5 pictures for the image model to follow, such as a layout, a style or the product itself. PNG, JPEG or WebP, up to 8 MB each. Only with adType prompt\_led and userAdBrief. Each item: Pass a ChatGPT attachment, an upload\_id from create\_file\_upload, or a public https url. Items 1 to 5.          |
| `idempotency_key`            | string                 | No       | Client-chosen key identifying this write. Reuse it only when retrying the same call. Length 1 to 200.                                                                                                                                                                                                           |
| `max_credits`                | number                 | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                                                                                                                                                                                                                                   |

### Output

| Field             | Type           | Description                                                                              |
| ----------------- | -------------- | ---------------------------------------------------------------------------------------- |
| `submissionId`    | string (uuid)  |                                                                                          |
| `reused`          | boolean        |                                                                                          |
| `credits_charged` | number         | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_image_ad_submit",
    "arguments": {
      "adType": "prompt_led",
      "max_credits": 122
    }
  }
}
```

## `ecom_image_ad_clone`

**Clone a winning image ad for a product**

Clones an ad from the shared winning ads library, identified by its winningAdId. Resolves or creates a closest-to-winner strategy, queues image generation, and returns the submission id to poll.

| Property        | Value                                                     |
| --------------- | --------------------------------------------------------- |
| Access          | Writes data                                               |
| Scope           | Ads: write (`ads:write`)                                  |
| Credits         | About 15 to 80 credits, depending on quantity and options |
| Who can call it | Workspace owners and admins                               |

### Input

| Field             | Type          | Required | Description                                                                                                                                                                      |
| ----------------- | ------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `winningAdId`     | string (uuid) | Yes      |                                                                                                                                                                                  |
| `productId`       | string (uuid) | Yes      |                                                                                                                                                                                  |
| `angleId`         | string (uuid) | No       | Optional. The clone angle made for this winning ad and product. Leave it out and Sellify finds or makes one. Ordinary sales angles are refused.                                  |
| `aspectRatio`     | enum          | No       | One of: `1:1`, `4:5`, `16:9`, `9:16`. Defaults to `"1:1"`.                                                                                                                       |
| `variationCount`  | integer       | No       | How many versions of the ad to generate, 1 to 5. Defaults to 5. The image charge is priced by this count. Between 1 and 5. Defaults to `5`.                                      |
| `offerId`         | string        | No       | Optional. One of the product’s offers to show on the ad, or "none" for no offer. Leave it out and Sellify uses the product’s offer closest to the winning ad’s discount, if any. |
| `angleSummary`    | string        | No       | Length 1 to 220.                                                                                                                                                                 |
| `formatSummary`   | string        | No       | Length 1 to 220.                                                                                                                                                                 |
| `useBrandKit`     | boolean       | No       | Optional. When the workspace has a brand kit, its logo and voice are always used. Set true to also use its colours and fonts instead of the source ad’s look. Defaults to false. |
| `idempotency_key` | string        | No       | Client-chosen key identifying this write. Reuse it only when retrying the same call. Length 1 to 200.                                                                            |
| `max_credits`     | number        | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                                                                                                    |

### Output

| Field             | Type           | Description                                                                              |
| ----------------- | -------------- | ---------------------------------------------------------------------------------------- |
| `submissionId`    | string (uuid)  |                                                                                          |
| `reused`          | boolean        |                                                                                          |
| `credits_charged` | number         | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_image_ad_clone",
    "arguments": {
      "winningAdId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "max_credits": 80
    }
  }
}
```

## `ecom_image_ad_clone_from_saved_spy`

**Recreate a saved Ad Spy image for a product**

Prepares a durable clone strategy, queues image generation, and returns the submission id to poll. Pass angleId to write the ad on one of the product’s own sales angles instead; the clone analysis and its charge are then skipped. variationCount sets how many versions to generate, 1 to 5 (default 5), and the image charge is priced by it.

| Property        | Value                                                     |
| --------------- | --------------------------------------------------------- |
| Access          | Writes data                                               |
| Scope           | Ads: write (`ads:write`)                                  |
| Credits         | About 15 to 80 credits, depending on quantity and options |
| Who can call it | Workspace owners and admins                               |

### Input

| Field             | Type          | Required | Description                                                                                                                                                                                                                                                                                                                                                                |
| ----------------- | ------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `savedSpyAdId`    | string (uuid) | Yes      |                                                                                                                                                                                                                                                                                                                                                                            |
| `productId`       | string (uuid) | Yes      |                                                                                                                                                                                                                                                                                                                                                                            |
| `angleId`         | string (uuid) | No       | Optional. One of the chosen product’s own sales angles. The ad is written on that angle and the clone analysis and its charge are skipped. Leave it out and Sellify analyses the saved ad and writes on the angle it finds. Clone angles and angles linked to another product are refused. Pass only an id a sales angle list returned for this product; never invent one. |
| `aspectRatio`     | enum          | No       | One of: `1:1`, `4:5`, `16:9`, `9:16`. Defaults to `"1:1"`.                                                                                                                                                                                                                                                                                                                 |
| `variationCount`  | integer       | No       | How many versions of the ad to generate, 1 to 5. Defaults to 5. The image charge is priced by this count. Between 1 and 5. Defaults to `5`.                                                                                                                                                                                                                                |
| `imageIndex`      | integer       | No       | Between 0 and 49.                                                                                                                                                                                                                                                                                                                                                          |
| `offerId`         | string (uuid) | No       | Optional. One of the product’s offers to show on the ad. Leave it out for no offer. A saved ad that sells with a discount then keeps its sale look with no numbers. Pass only an offer id the product returned; never invent one.                                                                                                                                          |
| `useBrandKit`     | boolean       | No       | Optional. When the workspace has a brand kit, its logo and voice are always used. Set true to also use its colours and fonts instead of the source ad’s look. Defaults to false.                                                                                                                                                                                           |
| `idempotency_key` | string        | No       | Client-chosen key identifying this write. Reuse it only when retrying the same call. Length 1 to 200.                                                                                                                                                                                                                                                                      |
| `max_credits`     | number        | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                                                                                                                                                                                                                                                                                              |

### Output

| Field             | Type           | Description                                                                              |
| ----------------- | -------------- | ---------------------------------------------------------------------------------------- |
| `submissionId`    | string (uuid)  |                                                                                          |
| `reused`          | boolean        |                                                                                          |
| `credits_charged` | number         | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_image_ad_clone_from_saved_spy",
    "arguments": {
      "savedSpyAdId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "max_credits": 80
    }
  }
}
```

## `ecom_image_ad_generate_more`

**Generate more variations from an image-ad submission**

Validates the parent and optional source variation, queues more image ads, and returns the submission id to poll.

| Property        | Value                                                      |
| --------------- | ---------------------------------------------------------- |
| Access          | Writes data                                                |
| Scope           | Ads: write (`ads:write`)                                   |
| Credits         | About 11 to 242 credits, depending on quantity and options |
| Who can call it | Workspace owners and admins                                |

### Input

| Field                 | Type          | Required | Description                                                                                                  |
| --------------------- | ------------- | -------- | ------------------------------------------------------------------------------------------------------------ |
| `parentSubmissionId`  | string (uuid) | Yes      |                                                                                                              |
| `varyOptions`         | object        | No       | Defaults to `\{\}`.                                                                                          |
| `overrideAngleId`     | string (uuid) | No       |                                                                                                              |
| `overrideAdTypes`     | array of enum | No       | Items 1 to 17.                                                                                               |
| `variationCount`      | integer       | No       | Between 1 and 10. Defaults to `5`.                                                                           |
| `changeRequest`       | string        | No       | Length up to 2000.                                                                                           |
| `sourceAdRef`         | object        | No       |                                                                                                              |
| `overrideAspectRatio` | enum          | No       | One of: `1:1`, `4:5`, `16:9`, `9:16`.                                                                        |
| `quality`             | enum          | No       | Image quality for the new variations. Leave it out to keep the parent's quality. One of: `standard`, `high`. |
| `idempotency_key`     | string        | No       | Client-chosen key identifying this write. Reuse it only when retrying the same call. Length 1 to 200.        |
| `max_credits`         | number        | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                                |

### Output

| Field             | Type           | Description                                                                              |
| ----------------- | -------------- | ---------------------------------------------------------------------------------------- |
| `submissionId`    | string (uuid)  |                                                                                          |
| `reused`          | boolean        |                                                                                          |
| `credits_charged` | number         | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_image_ad_generate_more",
    "arguments": {
      "parentSubmissionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "max_credits": 242
    }
  }
}
```

## `ecom_image_ad_update_meta_copy`

**Edit an ad copy field**

Updates one primary-text, headline, or description field on a visible generated ad and meters the persisted edit once.

Read the ad's full copy first; index is the position within the section, and copyPreview shows index 0, cut short. Pass a new random UUID v4 as operationId for each edit, and reuse it only to retry that same edit; a retry returns the first result without charging again, and reusing one for a different edit is refused.

| Property        | Value                       |
| --------------- | --------------------------- |
| Access          | Changes or deletes data     |
| Scope           | Ads: write (`ads:write`)    |
| Credits         | About 0.2 credits           |
| Who can call it | Workspace owners and admins |
| Safe to repeat  | Yes                         |

### Input

| Field         | Type          | Required | Description                                                                   |
| ------------- | ------------- | -------- | ----------------------------------------------------------------------------- |
| `adRef`       | object        | Yes      |                                                                               |
| `section`     | enum          | Yes      | One of: `primaryTextVariations`, `headlines`, `descriptions`.                 |
| `index`       | integer       | Yes      | Between 0 and 4.                                                              |
| `text`        | string        | Yes      | Length 1 to 960.                                                              |
| `operationId` | string (uuid) | Yes      |                                                                               |
| `max_credits` | number        | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000. |

### Output

| Field             | Type           | Description                                                                              |
| ----------------- | -------------- | ---------------------------------------------------------------------------------------- |
| `submissionId`    | string (uuid)  |                                                                                          |
| `variationId`     | string         | Length 1 to 100.                                                                         |
| `operationId`     | string (uuid)  |                                                                                          |
| `credits_charged` | number         | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_image_ad_update_meta_copy",
    "arguments": {
      "adRef": {
        "submissionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "variationId": "example"
      },
      "section": "primaryTextVariations",
      "index": 1,
      "text": "example",
      "operationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "max_credits": 1
    }
  }
}
```

## `ecom_image_ad_request_image_edit`

**Request an AI image edit**

Creates a version for a visible ad, queues an AI image edit, and returns the version id to poll.

Pass pictures for the edit to follow in reference\_images, or saved reference images by storagePath in referenceImageStoragePaths.

| Property        | Value                                                     |
| --------------- | --------------------------------------------------------- |
| Access          | Writes data                                               |
| Scope           | Ads: write (`ads:write`)                                  |
| Credits         | About 14 to 25 credits, depending on quantity and options |
| Who can call it | Workspace owners and admins                               |

### Input

| Field                        | Type                  | Required | Description                                                                                                                                                                                                                                                     |
| ---------------------------- | --------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `adRef`                      | object                | Yes      |                                                                                                                                                                                                                                                                 |
| `prompt`                     | string                | Yes      | Length 1 to 2000.                                                                                                                                                                                                                                               |
| `sourceVersionId`            | string (uuid) or null | No       |                                                                                                                                                                                                                                                                 |
| `referenceImageStoragePaths` | array of string       | No       | Items up to 5.                                                                                                                                                                                                                                                  |
| `aspectRatio`                | enum                  | No       | One of: `1:1`, `4:5`, `16:9`, `9:16`, `1.91:1`.                                                                                                                                                                                                                 |
| `applyBrandKit`              | boolean               | No       |                                                                                                                                                                                                                                                                 |
| `reference_images`           | array of object       | No       | Up to 5 pictures for the edit to follow, such as a logo or a style. PNG, JPEG or WebP, up to 8 MB each. Also saved to the reference images. Each item: Pass a ChatGPT attachment, an upload\_id from create\_file\_upload, or a public https url. Items 1 to 5. |
| `idempotency_key`            | string                | No       | Client-chosen key identifying this write. Reuse it only when retrying the same call. Length 1 to 200.                                                                                                                                                           |
| `max_credits`                | number                | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                                                                                                                                                                                   |

### Output

| Field             | Type           | Description                                                                              |
| ----------------- | -------------- | ---------------------------------------------------------------------------------------- |
| `versionId`       | string (uuid)  |                                                                                          |
| `versionNumber`   | integer        |                                                                                          |
| `status`          | enum           | One of: `pending`, `processing`, `completed`, `failed`.                                  |
| `reused`          | boolean        |                                                                                          |
| `credits_charged` | number         | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_image_ad_request_image_edit",
    "arguments": {
      "adRef": {
        "submissionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "variationId": "example"
      },
      "prompt": "example",
      "max_credits": 25
    }
  }
}
```

## `ecom_image_ad_request_background_removal`

**Remove an ad image background**

Removes the background from a visible ad image, saves a completed version, and selects it as current.

| Property        | Value                       |
| --------------- | --------------------------- |
| Access          | Writes data                 |
| Scope           | Ads: write (`ads:write`)    |
| Credits         | About 0.05 credits          |
| Who can call it | Workspace owners and admins |

### Input

| Field             | Type                  | Required | Description                                                                                           |
| ----------------- | --------------------- | -------- | ----------------------------------------------------------------------------------------------------- |
| `adRef`           | object                | Yes      |                                                                                                       |
| `sourceVersionId` | string (uuid) or null | No       |                                                                                                       |
| `idempotency_key` | string                | No       | Client-chosen key identifying this write. Reuse it only when retrying the same call. Length 1 to 200. |
| `max_credits`     | number                | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                         |

### Output

| Field             | Type           | Description                                                                              |
| ----------------- | -------------- | ---------------------------------------------------------------------------------------- |
| `versionId`       | string (uuid)  |                                                                                          |
| `versionNumber`   | integer        |                                                                                          |
| `status`          | "completed"    |                                                                                          |
| `credits_charged` | number         | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_image_ad_request_background_removal",
    "arguments": {
      "adRef": {
        "submissionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "variationId": "example"
      },
      "max_credits": 1
    }
  }
}
```

## `ecom_image_ad_set_current_version`

**Switch an ad back to an earlier image or copy**

Switches a generated ad back to an earlier image or copy version, by a versionId from reading the ad, or saves an edited image file (such as a Canva fix) as a new current version. Free.

| Property        | Value                       |
| --------------- | --------------------------- |
| Access          | Writes data                 |
| Scope           | Ads: write (`ads:write`)    |
| Credits         | Free                        |
| Who can call it | Workspace owners and admins |

### Input

| Field       | Type                  | Required              | Description                                                                                                                                                                                                                                     |
| ----------- | --------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `kind`      | enum                  | Yes                   | image to make that image current (versionId null is the original, or pass image instead of versionId to upload an edit), copy to put that earlier text back. One of: `image`, `copy`.                                                           |
| `adRef`     | object                | Yes                   |                                                                                                                                                                                                                                                 |
| `versionId` | string (uuid) or null | When `kind` is `copy` |                                                                                                                                                                                                                                                 |
| `image`     | object                | No                    | An edited copy of the ad image to save as a new version and show, instead of versionId. PNG, JPEG, or WebP, up to 8 MB, same aspect ratio as the ad. Pass a ChatGPT attachment, an upload\_id from create\_file\_upload, or a public https url. |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_image_ad_set_current_version",
    "arguments": {
      "kind": "image",
      "adRef": {
        "submissionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "variationId": "example"
      }
    }
  }
}
```

## `ecom_image_ad_update_text_layer`

**Change the headline and button text on an ad**

Changes the headline, button text and position of a text-layer ad and selects the new version. No model call, except a first product move: one image call, takes minutes.

Edits the version the ad shows now; pass only what changes. For post copy shown with the ad or visual changes, use the copy or image edit tools.

| Property        | Value                       |
| --------------- | --------------------------- |
| Access          | Writes data                 |
| Scope           | Ads: write (`ads:write`)    |
| Credits         | Free                        |
| Who can call it | Workspace owners and admins |

### Input

| Field             | Type   | Required | Description                                                                                           |
| ----------------- | ------ | -------- | ----------------------------------------------------------------------------------------------------- |
| `adRef`           | object | Yes      |                                                                                                       |
| `headline`        | string | No       | Length 1 to 80.                                                                                       |
| `cta`             | string | No       | Length 1 to 30.                                                                                       |
| `position`        | enum   | No       | One of: `top`, `middle`, `bottom`.                                                                    |
| `idempotency_key` | string | No       | Client-chosen key identifying this write. Reuse it only when retrying the same call. Length 1 to 200. |

### Output

| Field                    | Type          | Description |
| ------------------------ | ------------- | ----------- |
| `versionId`              | string (uuid) |             |
| `versionNumber`          | integer       |             |
| `productSceneNotCleared` | boolean       |             |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_image_ad_update_text_layer",
    "arguments": {
      "adRef": {
        "submissionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "variationId": "example"
      }
    }
  }
}
```

## `ecom_image_ad_regenerate_copy`

**Regenerate ad copy**

Queues copy regeneration for all or selected visible variations of a completed generated image ad.

Look the ad up in the ad library first, then pass its submissionId, and its variationId in variationIds. The new copy replaces the current headlines, primary text and descriptions, and can replace lines the user edited; earlier lines stay in the copy history and can be restored. Set replaceEditedFields only when the user asks to replace their own edits too. The new copy is written in the background; read the ad again after a minute.

| Property        | Value                       |
| --------------- | --------------------------- |
| Access          | Changes or deletes data     |
| Scope           | Ads: write (`ads:write`)    |
| Credits         | About 0.3 credits           |
| Who can call it | Workspace owners and admins |

### Input

| Field                 | Type            | Required | Description                                                                                           |
| --------------------- | --------------- | -------- | ----------------------------------------------------------------------------------------------------- |
| `submissionId`        | string (uuid)   | Yes      |                                                                                                       |
| `variationIds`        | array of string | Yes      | Items up to 100.                                                                                      |
| `replaceEditedFields` | boolean         | No       | Defaults to `false`.                                                                                  |
| `idempotency_key`     | string          | No       | Client-chosen key identifying this write. Reuse it only when retrying the same call. Length 1 to 200. |
| `max_credits`         | number          | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                         |

### Output

| Field             | Type           | Description                                                                              |
| ----------------- | -------------- | ---------------------------------------------------------------------------------------- |
| `submissionId`    | string (uuid)  |                                                                                          |
| `status`          | enum           | One of: `queued`, `already_pending`.                                                     |
| `credits_charged` | number         | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_image_ad_regenerate_copy",
    "arguments": {
      "submissionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "variationIds": [
        "example"
      ],
      "max_credits": 1
    }
  }
}
```

## `ecom_brand_kit_get`

**Get the workspace brand kit**

Gets the workspace brand kit: logo, up to three brand colours, heading and body fonts, and a one-line voice. kit is null when the workspace has none yet. Image ads use the brand kit by default. The logo URL is a signed link that expires after one hour.

| Property       | Value                  |
| -------------- | ---------------------- |
| Access         | Read-only              |
| Scope          | Ads: read (`ads:read`) |
| Credits        | Free                   |
| Safe to repeat | Yes                    |

### Input

This tool takes no input.

### Output

| Field | Type           | Description |
| ----- | -------------- | ----------- |
| `kit` | object or null |             |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_brand_kit_get",
    "arguments": {}
  }
}
```

## `ecom_brand_kit_update`

**Update the workspace brand kit**

Changes the brand kit fields you pass and keeps the rest. Pass null to clear a font or the voice, and an empty colors list to clear the colours. For the logo, pass a logo file, useWorkspaceLogo true, or removeLogo true. Creates the brand kit if the workspace has none. Free.

To set up a brand kit from the user’s store or website, use the brand kit tool that reads a URL instead.

| Property        | Value                              |
| --------------- | ---------------------------------- |
| Access          | Changes or deletes data            |
| Scope           | Products: write (`products:write`) |
| Credits         | Free                               |
| Who can call it | Workspace owners and admins        |
| Safe to repeat  | Yes                                |

### Input

| Field              | Type            | Required | Description                                                                                                                                                                              |
| ------------------ | --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `voice`            | string or null  | No       | One line on how the brand sounds.                                                                                                                                                        |
| `colors`           | array of string | No       | Brand colours as hex codes such as #1A2B3C, at most three. Items up to 3.                                                                                                                |
| `headingFont`      | enum or null    | No       | One of: `Inter`, `Montserrat`, `Poppins`, `Roboto`, `Open Sans`, `Lato`, `DM Sans`, `Raleway`, `Oswald`, `Bebas Neue`, `Playfair Display`, `Merriweather`, `Lora`, `Cormorant Garamond`. |
| `bodyFont`         | enum or null    | No       | One of: `Inter`, `Montserrat`, `Poppins`, `Roboto`, `Open Sans`, `Lato`, `DM Sans`, `Raleway`, `Oswald`, `Bebas Neue`, `Playfair Display`, `Merriweather`, `Lora`, `Cormorant Garamond`. |
| `removeLogo`       | boolean         | No       |                                                                                                                                                                                          |
| `useWorkspaceLogo` | boolean         | No       |                                                                                                                                                                                          |
| `logo`             | object          | No       | A new logo image, up to 8 MB. Pass a ChatGPT attachment, an upload\_id from create\_file\_upload, or a public https url.                                                                 |

### Output

| Field | Type   | Description |
| ----- | ------ | ----------- |
| `kit` | object |             |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_brand_kit_update",
    "arguments": {
      "voice": "example"
    }
  }
}
```

## `ecom_brand_kit_create_from_url`

**Set up the brand kit from a website**

Reads a public store or website and saves the logo, brand colours, fonts and tone it finds to the workspace brand kit. Anything it does not find keeps its current value, and found says which parts were filled. Fonts are matched to the brand kit font list, so a site font outside that list is left as it was. Free.

Use this when the user wants their brand kit set up from their store or website. When the workspace already has a brand kit, say that what the site shows will replace it, then show the user what was saved.

| Property        | Value                              |
| --------------- | ---------------------------------- |
| Access          | Changes or deletes data            |
| Scope           | Products: write (`products:write`) |
| Credits         | Free                               |
| Who can call it | Workspace owners and admins        |

### Input

| Field | Type         | Required | Description                                         |
| ----- | ------------ | -------- | --------------------------------------------------- |
| `url` | string (uri) | Yes      | Public store or website URL, usually its home page. |

### Output

| Field   | Type   | Description |
| ------- | ------ | ----------- |
| `kit`   | object |             |
| `found` | object |             |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ecom_brand_kit_create_from_url",
    "arguments": {
      "url": "https://example.com"
    }
  }
}
```

## Related

[Tool reference overview](https://sellify.ai/docs/developers/mcp-tools) · [Authentication](https://sellify.ai/docs/developers/authentication) · [Credits and limits](https://sellify.ai/docs/developers/credits-and-limits)
