# simulator_screenshot_3d

> 這個 MCP 工具會把摺疊模擬器依其鉸鏈角度繪製在 3D 模型上，以圖片形式傳回。

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

`simulator_screenshot_3d` 會傳回正在執行的模擬器 3D 模型的圖片，模型依目前鉸鏈角度摺疊，亮著的螢幕顯示目前的內容。只有摺疊裝置（iPhone Duo）有模型；其他裝置請使用 [simulator_screenshot](https://air.build/tw/docs/mcp-tools/simulator_screenshot/)。它是唯讀的。用 [simulator_fold](https://air.build/tw/docs/mcp-tools/simulator_fold/) 轉動鉸鏈。

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

## 輸入

| 輸入 | 類型 | 必填 | 預設值 | 作用 |
| --- | --- | --- | --- | --- |
| `teamId` | 字串（UUID） | 是 | — | 團隊，來自 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) |
| `simulator` | string | 否 | 團隊的預設裝置 | 哪種裝置，使用 [list_simulators](https://air.build/tw/docs/mcp-tools/list_simulators/#result) 中的 `id` |
| `rotation` | string | 否 | 正對鏡頭 | 模型的旋轉，以 `X,Y,Z` 度表示，例如 `20,-30,0` |
| `size` | string | 否 | `1024x1024` | 圖片的尺寸，以 `WIDTHxHEIGHT` 像素表示，每個值為 1 到 8192 |
| `background` | string | 否 | `transparent` | `transparent` 或以 `#RRGGBB` 表示的顏色 |

## 結果

這個工具會傳回圖片。`content` 包含兩個區塊：一個 `image` 區塊（PNG，base64），以及一個包含下方 JSON 的 `text` 區塊，該 JSON 也是 `structuredContent`。

| 欄位 | 說明 |
| --- | --- |
| `simulator` | 裝置的 ID |
| `foldable` | 摺疊裝置為 `true` |
| `hingeDegrees` | 鉸鏈角度，0（闔上）到 180（攤平）；不明或剛好為 0 時為 `null` |
| `litPanel` | 哪個顯示器亮著：`primary`（外螢幕）或 `secondary`（內螢幕）；不明時為 `null` |

```json
{ "simulator": "duo-example", "foldable": true, "hingeDegrees": 130, "litPanel": "secondary" }
```

## 錯誤

| 訊息 | 何時出現 | 處理方式 |
| --- | --- | --- |
| rotation must be X,Y,Z degrees | `rotation` 不是以逗號分隔的三個數字 | 傳送例如 `20,-30,0` |
| size must be WIDTHxHEIGHT, each 1..8192 | `size` 格式錯誤或超出範圍 | 傳送例如 `1024x1024` |
| background must be transparent or #RRGGBB | 其他 `background` | 傳送 `transparent` 或 `#RRGGBB` |

另外還有每個模擬器工具都可能傳回的錯誤：請參閱 [start_simulator](https://air.build/tw/docs/mcp-tools/start_simulator/#device-errors)。在沒有 3D 模型的裝置上，模擬器會以它自己的措辭拒絕。

## 範例

```json
{"name": "simulator_screenshot_3d", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "simulator": "duo-example", "rotation": "20,-30,0"}}
```
