# snapchat_init_media_upload

> Initialize a chunked video upload, up to 256 MiB across at most 32 parts of 8 MiB.

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

Initialize a chunked video upload, up to 256 MiB across at most 32 parts of 8 MiB. Returns upload_id, add_path and finalize_path to use for subsequent calls. Preview unless confirm true.

> **Warning** This tool changes the account. It is absent from the tool list on the Free plan, and it previews by default: without `confirm: true` it describes the change and applies nothing.

|  |  |
| --- | --- |
| Source | [Snapchat Ads](https://www.getmcpads.com/docs/sources/snapchat-ads) |
| Kind | Write |
| Discovery | Reachable through `search_tools` and `run_tool` |
| Account parameter | `adAccountId` |
| Endpoint | https://mcp.getmcpads.com/snapchat-ads/mcp |

## Parameters

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `adAccountId` | string | Required | Selected Snapchat ad account UUID; never an organization ID. |
| `mediaId` | string | Required | Native Snapchat entity UUID. |
| `fileName` | string | Required | Video filename including extension, without directories. |
| `fileSize` | integer | Required | Total decoded video size in bytes, at most 256 MiB. |
| `numberOfParts` | integer | Required | Number of nonempty parts, each at most 8 MiB. |
| `confirm` | boolean | Optional | Only true applies the previewed change. Default: `false`. |

## Calling it

Through run_tool, since it is not announced

```json
{
  "name": "run_tool",
  "arguments": {
    "name": "snapchat_init_media_upload",
    "args": {
      "adAccountId": "<string>",
      "mediaId": "<string>",
      "fileName": "<string>",
      "fileSize": "<integer>",
      "numberOfParts": "<integer>"
    }
  }
}
```

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

---

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