hermosodocs

upload_meta_asset

Upload an asset to a Meta ad account

Area: YOUTUBE CHANNEL SECTIONS + PLAYLIST IMAGES · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
adAccountIdrequiredstringad account id (digits or act_… — from list_meta_pages)
urlstringa single public https URL / data: URI / /generated path; a URL, not a local file path; use upload_file for local files
urlsstring[]up to 20 media URLs/paths for a one-call BULK upload
kind"image" | "video"inferred from the URL if omitted
namestringa 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.

All 728 Publishing & scheduling tools · tools.json