x ads list media library
x_ads_list_media_libraryList media library objects in an X Ads account using search query, media type filter, and pagination.
Instructions
List the media library objects in an ads account Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search query matching against name, title, file_name and description. | |
| count | No | Number of records to return per page (default 20, max 50). | |
| cursor | No | Pagination cursor from a previous response. | |
| account_id | Yes | X Ads account ID from X_ADS_ACCOUNT_IDS. | |
| media_type | No | Restrict to one media type: IMAGE, VIDEO or GIF. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |