# x_ads_list_media_library

> List the media library objects in an ads account Native X fields and pagination are preserved; monetary fields ending in _micro are millionths…

[Documentation](https://www.getmcpads.com/docs) / [Sources](https://www.getmcpads.com/docs/sources) / [X Ads](https://www.getmcpads.com/docs/sources/x-ads)

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.

> **Note** Connect your own X Ads account and select the advertisers to expose. Free permits reads; Pro, Team and Agency permit writes. Reconnect older connections for media.write. X controls account verification and delivery eligibility.

|  |  |
| --- | --- |
| Source | [X Ads](https://www.getmcpads.com/docs/sources/x-ads) |
| Kind | Read |
| Discovery | Reachable through `search_tools` and `run_tool` |
| Account parameter | `account_id` |
| Endpoint | https://mcp.getmcpads.com/x-ads/mcp |

## Parameters

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `account_id` | string | Required | X Ads account ID selected in Sources. |
| `count` | integer | Optional | Number of records to return per page (default 20, max 50). |
| `cursor` | string | Optional | Pagination cursor from a previous response. |
| `media_type` | string | Optional | Restrict to one media type: IMAGE, VIDEO or GIF. |
| `q` | string | Optional | Search query matching against name, title, file_name and description. |

## Calling it

Through run_tool, since it is not announced

```json
{
  "name": "run_tool",
  "arguments": {
    "name": "x_ads_list_media_library",
    "args": {
      "account_id": "<string>"
    }
  }
}
```

- [X Ads metrics](https://www.getmcpads.com/docs/sources/x-ads/metrics): What you can ask for.
- [X Ads dimensions](https://www.getmcpads.com/docs/sources/x-ads/dimensions): How you can break it down.

---

This page as HTML: https://www.getmcpads.com/docs/sources/x-ads/tools/x_ads_list_media_library
Every page under /docs is available as Markdown: append `.md`, or send `Accept: text/markdown`.
