# simulator_screenshot_3d

> 这个 MCP 工具把折叠模拟器按其铰链角度绘制在 3D 模型上，以图片形式返回。

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

`simulator_screenshot_3d` 返回正在运行的模拟器 3D 模型的图片，模型按当前铰链角度折叠，亮着的屏幕显示当前的内容。只有折叠设备（iPhone Duo）有模型；其他设备请使用 [simulator_screenshot](https://air.build/cn/docs/mcp-tools/simulator_screenshot/)。它是只读的。用 [simulator_fold](https://air.build/cn/docs/mcp-tools/simulator_fold/) 转动铰链。

| 只读 | 破坏性 | 幂等 |
| --- | --- | --- |
| 是 | 否 | 是 |

## 输入

| 输入 | 类型 | 必填 | 默认值 | 作用 |
| --- | --- | --- | --- | --- |
| `teamId` | 字符串（UUID） | 是 | — | 团队，来自 [list_teams](https://air.build/cn/docs/mcp-tools/list_teams/) |
| `simulator` | string | 否 | 团队的默认设备 | 哪种设备，使用 [list_simulators](https://air.build/cn/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/cn/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"}}
```
