upload_meta_asset
Upload an asset to a Meta ad account
Description
Upload creative(s) — a finished Hermoso ad OR arbitrary user files (e.g. a folder of media from the user’s desktop) — into a connected ad account’s ASSET LIBRARY so the user or a later ad-build step can use them in their OWN campaigns. Pass `url` for one file, or `urls` (up to 20) to BULK-upload in a single call. Each accepts a public https URL, a data: URI, or a Hermoso /generated path; for LOCAL files call upload_file first and pass the url(s) it returns. Image -> image hash; video -> video id. Pass adAccountId from list_meta_pages.
Parameters
| Parameter | Type | Description |
|---|---|---|
adAccountIdrequired | string | ad account id (digits or act_… — from list_meta_pages) |
url | string | a single public https URL / data: URI / /generated path; a URL, not a local file path; use upload_file for local files |
urls | string[] | up to 20 media URLs/paths for a one-call BULK upload |
kind | "image" | "video" | inferred from the URL if omitted |
name | string | a label for the asset |
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/upload_meta_asset.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"upload_meta_asset","arguments":{"adAccountId":"<string>"}}}
CLI
hermoso call upload_meta_asset --json '{"adAccountId":"<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_fileUpload a local file -> durable public URLlist_meta_pagesList Meta pages & ad accountslist_tiktok_videosList the connected account’s TikTok postscreate_meta_campaignCreate a Meta ad campaign (paused)tiktok_accountRead the connected TikTok accountset_meta_campaign_statusActivate or pause a Meta campaigntiktok_post_statusCheck whether a TikTok post finished publishingpost_to_tiktokPost a video or photo post to TikToktiktok_creator_infoRead the connected TikTok creator’s posting optionsreact_to_bluesky_dmReact to a Bluesky direct message