# appstore_submit_for_review

> 把正在準備的版本提交 App 審查，提交前會執行與 appstore_check_submission 相同的檢查。

Source: https://air.build/tw/docs/mcp-tools/appstore_submit_for_review/

把正在準備的版本提交 App 審查。它會先執行 [appstore_check_submission](https://air.build/tw/docs/mcp-tools/appstore_check_submission/) 的檢查：只要還有阻擋提交的問題，就不會傳送任何內容，結果會列出需要修正的項目。否則，它會沿用 App 尚未結束的草稿提交（或 App 審查以 `UNRESOLVED_ISSUES` 退回的提交），或建立新的提交，把版本加入其中，然後提交。

審查通常需要一兩天；請用 [appstore_review](https://air.build/tw/docs/mcp-tools/appstore_review/) 追蹤。若要撤回，請參閱 [appstore_cancel_submission](https://air.build/tw/docs/mcp-tools/appstore_cancel_submission/)。

這個工具可能需要一些時間。用戶端接受串流時，它會以帶有進度的串流回應（請參閱 [伺服器與登入](https://air.build/tw/docs/mcp-tools/server/#transport)）。

| 唯讀 | 破壞性 | 冪等 |
| --- | --- | --- |
| 否 | 否 | 是 |

## 輸入

| 輸入 | 類型 | 必填 | 預設值 | 作用 |
| --- | --- | --- | --- | --- |
| `teamId` | 字串（UUID） | yes | — | 團隊，來自 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/)。 |
| `projectId` | 字串（UUID） | 與 `appId` 二擇一 | — | 這個 App 所屬的專案，來自 [list_projects](https://air.build/tw/docs/mcp-tools/list_projects/)：這是指定 App 的一般方式。App 是 App Store Connect 上 bundle ID 與該專案建置的 bundle ID 相同的那一個。兩者都傳送時，會使用 `projectId`。 |
| `appId` | string | 與 `projectId` 二擇一 | — | 來自 [appstore_list_apps](https://air.build/tw/docs/mcp-tools/appstore_list_apps/) 的 App Store Connect App ID，用於沒有專案建置的 App。 |
| `appleTeamId` | 字串（UUID） | no | 所有已連結的 Apple 團隊 | 團隊的其中一個 Apple 團隊，來自 [appstore_list_apple_teams](https://air.build/tw/docs/mcp-tools/appstore_list_apple_teams/)。搭配 `appId` 時，只會在這個 Apple 團隊中尋找該 App。搭配 `projectId` 時不需要：由專案的 App 決定。 |
| `platform` | 字串：`IOS`、`MAC_OS`、`TV_OS`、`VISION_OS` | no | `IOS` | 哪個平台的 App Store 版本。 |

每個工具對輸入進行的檢查，請參閱 [伺服器與登入](https://air.build/tw/docs/mcp-tools/server/#errors)。

## 結果

一個 JSON 物件，同時以文字和 `structuredContent` 傳回。有阻擋提交的問題時：

| 欄位 | 說明 |
| --- | --- |
| `submitted` | false |
| `blocking` | 必須修正的問題（句子同 [appstore_check_submission](https://air.build/tw/docs/mcp-tools/appstore_check_submission/#result)） |
| `warnings` | 可能仍需注意的問題 |

已提交時：

| 欄位 | 說明 |
| --- | --- |
| `submitted` | true |
| `submission` | `submissionId`, `state`, `submittedAt`, `platform` |
| `version` | 提交的版本（欄位同 [appstore_app_status](https://air.build/tw/docs/mcp-tools/appstore_app_status/#result)） |
| `warnings` | 可能仍需注意的問題 |

```json
{
  "submitted": true,
  "submission": {
    "submissionId": "00000000-0000-0000-0000-000000000000",
    "state": "WAITING_FOR_REVIEW",
    "submittedAt": "2026-11-19T10:00:00Z",
    "platform": "IOS"
  },
  "version": {
    "versionId": "00000000-0000-0000-0000-000000000000",
    "version": "1.2.0",
    "state": "PREPARE_FOR_SUBMISSION",
    "releaseType": "AFTER_APPROVAL",
    "scheduledRelease": null,
    "copyright": "2026 Example Inc.",
    "build": {
      "buildId": "00000000-0000-0000-0000-000000000000",
      "buildNumber": "42"
    },
    "phasedRelease": null,
    "createdAt": "2026-11-18T09:00:00Z"
  },
  "warnings": []
}
```

## 錯誤

每個錯誤都會以工具錯誤（`isError: true`）傳回。_斜體_ 文字代表句中的實際值。所有工具都可能傳回的錯誤，請參閱 [伺服器與登入](https://air.build/tw/docs/mcp-tools/server/#errors)。

| 訊息 | 何時出現 | 處理方式 |
| --- | --- | --- |
| App Store Connect did not open a submission. | Apple 的回應中沒有提交 | 用 appstore_review 查看狀態，然後重試 |
| App Store Connect has no app information for this app. | Apple 沒有傳回 App 資訊 | 在 App Store Connect 中檢查該 App |
| Pass projectId, or appId from appstore_list_apps. | `projectId` 和 `appId` 都沒有傳送 | 傳送其中一個 |
| 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. | 該專案從未建置過 iOS 版本 | 請專案的 Agent 建置 iOS 版本（[send_message](https://air.build/tw/docs/mcp-tools/send_message/)），或用 `appId` 指定 App |
| 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. | 團隊已連結的 Apple 團隊中，沒有 App 的 bundle ID 與專案相同，或沒有連結任何 Apple 團隊 | 用 [appstore_create_app](https://air.build/tw/docs/mcp-tools/appstore_create_app/) 建立 App，或用 `appId` 指定另一個 App |
| No connected Apple team of this Team has that app. See appstore_list_apps. | `appId` 不是任何已連結 Apple 團隊（或 `appleTeamId`）中的 App | 從 [appstore_list_apps](https://air.build/tw/docs/mcp-tools/appstore_list_apps/) 取得 ID |
| platform must be IOS, MAC_OS, TV_OS or VISION_OS. | `platform` 是其他值 | 傳送這四個值之一 |
| App Store Connect: _Apple's sentence_ | Apple 拒絕了請求。後面最多附上 Apple 自己的五句說明，Apple 指出相關欄位時會在括號中註明。App Store Connect 中有待接受的 Apple 協議時，也會以這種方式被拒絕 | 依照 Apple 的說明處理。協議由 Apple Developer 帳號的帳號持有人在 App Store Connect 中接受（商務 › 協議） |
| App Store Connect answered _status_. Try again in a moment. | Apple 拒絕了，但沒有說明原因 | 稍後再試 |

## 範例

```json
{
  "name": "appstore_submit_for_review",
  "arguments": {
    "teamId": "00000000-0000-0000-0000-000000000000",
    "projectId": "00000000-0000-0000-0000-000000000000"
  }
}
```
