MCP tools

Upload App Store screenshots for one language from chat attachments, https URLs or the Team's running Simulator, and wait for Apple to accept them.

Uploads App Store screenshots for one language of the version being prepared (else the live one), and waits for Apple to accept each. Each screenshot comes from one of three places:

  • A chat attachment: an image someone sent, by attachmentId (see get_attachment).
  • An https URL: the image is downloaded from it.
  • The Team’s Simulator: its current screen, captured now. The Simulator must be running (see start_simulator). A 6.9-inch iPhone Simulator (iPhone 17 Pro Max) gives the size Apple requires.

Images must be PNG or JPEG. The display size is read from each image’s pixels (table below) unless displayType is sent. Screenshots are added after the ones already there; with replace, the existing screenshots of that size are deleted first. Apple takes at most 10 per size. When the language is not on the version yet, it is added. Calling twice uploads the screenshots twice.

This tool can take minutes. It answers as a stream with progress when the client accepts one (see Server and sign-in).

Read-only Destructive Idempotent
No No No

Inputs

Input Type Required Default What it does
teamId string (UUID) yes — The Team, from list_teams.
projectId string (UUID) this or appId — The Project whose app this is, from list_projects: the usual way to name an app. The app is the one on App Store Connect with the bundle id the Project builds. When both are sent, projectId is used.
appId string this or projectId — An App Store Connect app id from appstore_list_apps, for an app no Project builds.
appleTeamId string (UUID) no every connected Apple team One of the Team’s Apple teams, from appstore_list_apple_teams. With appId, only this Apple team is searched for the app. With projectId it is not needed: the Project’s app decides.
platform string: IOS, MAC_OS, TV_OS, VISION_OS no IOS Which platform’s App Store version.
locale string no the app’s primary language The language, e.g. en-US.
displayType string, one of the display sizes below no read from each image Apple’s display size for every image in the call.
screenshots array of 1 to 10 objects yes — The images, in order. Each has exactly one of attachmentId, url or simulator.
screenshots[].attachmentId string (UUID) one of three — A chat attachment: an image someone sent.
screenshots[].url string (https URL) one of three — An image to download. Only https:// addresses.
screenshots[].simulator string or null one of three — Capture the Team’s running Simulator now: its device id from list_simulators, or null for the default device.
replace boolean no false Delete the existing screenshots of the same size first.

Display sizes, and the pixel sizes (portrait, or the same turned to landscape) each is recognized from:

displayType Device Recognized from
APP_IPHONE_67 iPhone 6.9-inch 1320 × 2868, 1290 × 2796, 1260 × 2736
APP_IPHONE_65 iPhone 6.5-inch 1284 × 2778, 1242 × 2688
APP_IPHONE_61 iPhone 6.1-inch 1206 × 2622, 1179 × 2556, 1170 × 2532
APP_IPHONE_58 iPhone 5.8-inch 1125 × 2436, 1080 × 2340
APP_IPHONE_55 iPhone 5.5-inch 1242 × 2208
APP_IPHONE_47 iPhone 4.7-inch 750 × 1334
APP_IPHONE_40 iPhone 4-inch only with displayType
APP_IPAD_PRO_3GEN_129 iPad 13-inch 2064 × 2752, 2048 × 2732
APP_IPAD_PRO_3GEN_11 iPad 11-inch 1668 × 2420, 1668 × 2388, 1640 × 2360, 1488 × 2266
APP_IPAD_PRO_129 iPad Pro 12.9-inch (2nd generation) only with displayType
APP_IPAD_105 iPad 10.5-inch only with displayType
APP_IPAD_97 iPad 9.7-inch only with displayType
APP_DESKTOP Mac 1280 × 800, 1440 × 900, 2560 × 1600, 2880 × 1800
APP_APPLE_TV Apple TV only with displayType
APP_APPLE_VISION_PRO Apple Vision Pro 3840 × 2160
APP_WATCH_ULTRA Apple Watch Ultra only with displayType
APP_WATCH_SERIES_10 Apple Watch Series 10 only with displayType
APP_WATCH_SERIES_7 Apple Watch Series 7 only with displayType

The checks every tool makes on its inputs are on Server and sign-in.

Result

A JSON object, as text and as structuredContent.

Field What
version The version number
locale The language
uploaded One entry per screenshot: displayType, then the fields below
Field What
screenshotId Apple’s id of the screenshot, for appstore_delete_screenshots
fileName Its file name
size Its pixel size, e.g. 1320x2868, or null
state Apple’s processing state: AWAITING_UPLOAD, UPLOAD_COMPLETE, COMPLETE or FAILED
problems Apple’s descriptions of what is wrong with it, when it failed
preview A 300 × 650 PNG preview address, or null

A screenshot whose state is still UPLOAD_COMPLETE after about a minute is reported as it is; Apple finishes it later. FAILED comes with Apple’s reasons in problems.

{
  "version": "1.2.0",
  "locale": "en-US",
  "uploaded": [
    {
      "displayType": "APP_IPHONE_67",
      "screenshotId": "00000000-0000-0000-0000-000000000000",
      "fileName": "home.png",
      "size": "1320x2868",
      "state": "COMPLETE",
      "problems": [],
      "preview": "https://example.com/preview.png"
    }
  ]
}

Errors

Each comes back as a tool error (isError: true). Italic words stand for the values in the sentence. The errors every tool can return are on Server and sign-in.

Message When What to do
screenshots must list 1 to 10 images. screenshots is empty or longer than 10 Send 1 to 10
Each screenshot needs attachmentId, url, or simulator. An entry has none of the three Give each one a source
Could not read attachment id. The attachment could not be downloaded Check it with get_attachment
Screenshot URLs must be https. A url is not https:// Use an https address
Could not download url. The address did not answer with the file Check the address
The device Simulator is not running. Start it with start_simulator. simulator and the Team’s Simulator of that device is off Start it with start_simulator
The device Simulator is still starting. Call start_simulator to wait for it. The Simulator is not ready yet Wait with start_simulator
No Simulator id. Offered: ids. simulator names no device AirBuild offers Use an id from list_simulators
Screenshot n is not a PNG or JPEG. The image is another format Convert it
Screenshot n is widthxheight, which is no App Store size. iPhone screenshots must be 1320x2868 (6.9-inch) or 1284x2778 (6.5-inch); iPad 2064x2752 (13-inch). The pixel size matches no display size and displayType was not sent Resize the image, or send displayType
App Store Connect did not add locale. Apple did not add the language Try again
App Store Connect did not create the screenshot set. Apple did not create the size’s set Try again
App Store Connect did not reserve the upload. Apple did not accept the upload Try again
Apple refused the upload of file (status). Try again. Sending the image to Apple failed Try again
This app has no App Store version yet. Start one with appstore_prepare_version. The app has no version on that platform Start one with appstore_prepare_version
Pass projectId, or appId from appstore_list_apps. Neither projectId nor appId was sent Send one of them
This Project has not been built for iOS yet, so it has no bundle id to find its app by. Ask the Team’s Agent to build it, or pass appId. The Project has never been built for iOS Ask the Project’s Agent for an iOS build (send_message), or name the app by appId
This Project has no app on App Store Connect yet. Create one with appstore_create_app (its bundle id is the Project’s), or pass appId. No app on the Team’s connected Apple teams has the Project’s bundle id, or no Apple team is connected Create the app with appstore_create_app, or name another app by appId
No connected Apple team of this Team has that app. See appstore_list_apps. appId is not an app of any connected Apple team (or of appleTeamId) Take the id from appstore_list_apps
platform must be IOS, MAC_OS, TV_OS or VISION_OS. Another platform value Send one of the four
App Store Connect: Apple’s sentence Apple refused the request. Up to five of Apple’s own sentences follow, each with the field it is about in brackets when Apple names one. An Apple agreement waiting in App Store Connect is refused this way too Act on Apple’s words. Agreements are accepted by the Apple Developer account’s Account Holder in App Store Connect (Business › Agreements)
App Store Connect answered status. Try again in a moment. Apple refused without saying why Try again in a moment

Images uploaded before an error stay uploaded; check with appstore_screenshots.

Example

{
  "name": "appstore_upload_screenshots",
  "arguments": {
    "teamId": "00000000-0000-0000-0000-000000000000",
    "projectId": "00000000-0000-0000-0000-000000000000",
    "locale": "en-US",
    "screenshots": [
      {
        "simulator": null
      },
      {
        "attachmentId": "00000000-0000-0000-0000-000000000000"
      }
    ],
    "replace": true
  }
}