create_x_ads_card
Build an X ad card
Description
Create an X card — the big image/video with a headline or button that an X ad clicks through on. ONE destination: websiteUrl (a website card, with a headline `title`), leadFormId (opens an X lead form — headline, or a button with buttonLabel), or an app (iosAppId/googlePlayAppId + countryCode, a button). Media: mediaKey, or 2–6 mediaKeys for a swipeable card (upload_x_ads_media). utm {source,medium,campaign,content,term} is appended to websiteUrl without overwriting the URL's own. Read back from X; a card is used by create_x_ads_post(cardUri). Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
adAccountId | string | X ad account id (list_x_ads_accounts); omit if only one is shared |
accountId | string | older name for adAccountId (MCP only) |
namerequired | string | internal name for the card |
mediaKey | string | one media key from upload_x_ads_media (single image or video) |
mediaKeys | string[] | 2-6 media keys from upload_x_ads_media, for a swipeable card |
title | string | headline, for website and lead-form cards |
websiteUrl | string | destination URL for a website card. A Hermoso page works: publish_page’s live URL, or get_page adDestinations. |
utm | object | UTM tags object: source, medium, campaign, content, term; appended to websiteUrl |
utm.source | string | utm_source tag appended to websiteUrl; a tag already in the URL is kept |
utm.medium | string | utm_medium tag appended to websiteUrl; a tag already in the URL is kept |
utm.campaign | string | utm_campaign tag appended to websiteUrl; a tag already in the URL is kept |
utm.content | string | utm_content tag appended to websiteUrl; a tag already in the URL is kept |
utm.term | string | utm_term tag appended to websiteUrl; a tag already in the URL is kept |
leadFormId | string | X lead form id from list_x_ads_lead_forms, for a lead-form card |
buttonLabel | "BOOK" | "CONNECT" | "INSTALL" | "OPEN" | "ORDER" | "PLAY" | "SHOP" | button text shown on a lead-form or app card |
iosAppId | string | iOS App Store app id, for an app card |
googlePlayAppId | string | Google Play package id, for an app card |
countryCode | string | 2-letter store country for an app card, e.g. US |
iosDeepLink | string | iOS deep link for an app card |
googlePlayDeepLink | string | Android deep link for an app card |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/create_x_ads_card.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_x_ads_card","arguments":{"name":"<string>"}}}
CLI
hermoso call create_x_ads_card --json '{"name":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
upload_x_ads_mediaUpload media to an X ad accountcreate_x_ads_postWrite a promoted-only X post for adslist_x_ads_mediaList an X ad account’s Media Librarylist_x_ads_cardsList X ad cardsget_x_ads_leadsRead the leads from an X lead formlist_x_ads_postsList the posts an X ad account can promoteupdate_x_ads_lead_formChange an X lead formpreview_x_ads_postPreview an X ad postcreate_x_ads_lead_formCreate an X lead formlist_x_ads_lead_formsList X lead forms