media__upload
Uploads local media files to App Store Connect by checking the file, reserving storage, sending bytes, and committing them for library, page, or file targets.
Instructions
Upload library, page or file-target media: check a local file, reserve, send bytes and commit. File targets use owner page_id; omit it to start a build upload or an advanced App Clip image. Customer-facing images are PUBLIC-level; private files are low risk.
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": {
"app": "<app>",
"target": "<target>",
"file_path": "<file_path>"
},
"name": "media__upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App name, bundle ID or Apple ID. | |
| uti | No | Build files. | |
| locale | No | Version locale, e.g. en-US. Omit on list to inspect all locales. | |
| target | Yes | Library, page, or a named image/file target. | |
| page_id | No | Page localization ID (retention: the message version ID), or the owning resource ID for an image/file target. | |
| replace | No | Delete the one existing file first (DESTRUCTIVE). | |
| version | No | Version string. Required if multiple versions match. | |
| category | No | ||
| platform | No | Required if multiple platforms match. | |
| file_path | Yes | Absolute local regular file. Images ≤50 MiB, GeoJSON ≤4 MiB, others ≤500 MiB. | |
| asset_type | No | ASSET_SPI: build only. | |
| build_version | No | New build upload: CFBundleVersion. | |
| placement_type | No | Required to place; use media__list limits for allowed groups and sizes. | |
| reference_name | No | ||
| placement_group | No | Device/group ID from reference data. Required for reorder. | |
| build_short_version | No | New build upload: CFBundleShortVersionString. | |
| preview_frame_time_code | No | Video poster frame, e.g. 00:00:05:00. |