Get media URLs
x_ads_get_mediaResolve media_key values to media URLs or poster image URLs from the X Ads Media Library using an account ID and media keys.
Instructions
Resolve media_key values (e.g. 3_2069…) to media_url / poster_media_url from the Media Library.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_id": "<account_id>",
"media_keys": "<media_keys>"
},
"name": "x_ads_get_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Ads API account id from x_ads_list_accounts, e.g. 18ce55v2od2 | |
| media_keys | Yes |