list_x_ads_media
List an X ad account’s Media Library read-only
Description
List the X ad account's Media Library — media keys usable in cards and promoted-only posts. Read-only, 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) |
mediaType | "IMAGE" | "VIDEO" | "GIF" | IMAGE, VIDEO or GIF; omit for all types |
limit | number | max items to return, 1-50; default 20 |
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/list_x_ads_media.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_x_ads_media","arguments":{}}}
CLI
hermoso call list_x_ads_media --json '{}'
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_cardBuild an X ad cardget_x_ads_leadsRead the leads from an X lead formlist_x_ads_cardsList X ad cardsupdate_x_ads_lead_formChange an X lead formcreate_x_ads_postWrite a promoted-only X post for adscreate_x_ads_lead_formCreate an X lead formlist_x_ads_postsList the posts an X ad account can promotelist_x_ads_lead_formsList X lead formspreview_x_ads_postPreview an X ad post