Wait for a build to finish processing
wait_for_buildPolls App Store Connect until a specified uploaded build finishes processing and appears as VALID, preventing ship flows from checking manually or using an older listed build.
Instructions
Poll until an uploaded build finishes processing (VALID), so the ship flow is one call. Pass build_number (the CFBundleVersion upload_binary names) right after an upload: Apple lists a new upload only after a few minutes, so the newest listed build can be an older one. Blocks for up to 30 minutes by default; if you should not hold the session that long, call list_builds yourself instead. Pro feature.
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_id": "<app_id>"
},
"name": "wait_for_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | App Store Connect app ID | |
| build_number | No | The build's CFBundleVersion, e.g. "2". Waits for that build to be listed and processed. Omit to take the newest listed build. | |
| poll_seconds | No | Seconds between polls (default 30, min 10) | |
| max_wait_seconds | No | Max seconds to wait (default 1800, cap 3600) |