x_ ads_ create_ media_ library_ item
Register an existing media key as a named item in the account's media library.
Register an existing media key as a named item in the account's media library. Use list_media_library to see media already registered to the account. Preview by default. Ask the user to approve the exact account, target and parameters before confirm:true.
- Source
- X Ads
- Kind
- Write
- Discovery
- Reachable through
search_toolsandrun_tool - Account parameter
account_id- Endpoint
- https:/
/ mcp. getmcpads. com/ x-ads/ mcp
ParametersLink to this section
| Name | Type | Required | Notes |
|---|---|---|---|
account_id | string | Required | X Ads account ID selected in Sources. |
description | string | Optional | Video description, shown under the video. Videos only. |
file_name | string | Optional | Media file name (1-255 characters). |
media_key | string | Required | Media key of an existing media asset (e.g. 13_875943225764098048). Required by the legacy API. |
name | string | Optional | Media asset name, shown in campaign setup UIs (1-100 characters). |
poster_media_key | string | Optional | Media key of an uploaded image to use as the video poster frame. Videos only. |
title | string | Optional | Video title, shown on the video itself. Videos only. |
confirm | boolean | Optional | False previews only; true applies this exact change after explicit human confirmation. Default: false. |
Calling itLink to this section
{
"name": "run_tool",
"arguments": {
"name": "x_ads_create_media_library_item",
"args": {
"account_id": "<string>",
"media_key": "<string>"
}
}
}