# simulator_stop_recording

> 这个 MCP 工具停止团队模拟器的屏幕录制，并把 MP4 存储为团队附件，同时提供下载链接。

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

`simulator_stop_recording` 停止团队模拟器的屏幕录制，把视频（MP4）存储为团队的附件，并返回它的 `attachmentId` 和一个下载链接。录制自动停止后也可以使用。链接在 60 秒内有效：请立即下载，或之后用 [get_attachment](https://air.build/cn/docs/mcp-tools/get_attachment/) 获取新的链接。把 `attachmentId` 传给 [send_message](https://air.build/cn/docs/mcp-tools/send_message/) 即可把视频附加到聊天中。每次调用都会存储一份新的视频副本。它不删除任何内容。

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

## 输入

| 输入 | 类型 | 必填 | 默认值 | 作用 |
| --- | --- | --- | --- | --- |
| `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` |

## 结果

| 字段 | 说明 |
| --- | --- |
| `attachmentId` | 存储的视频的附件 ID |
| `fileName` | `simulator-recording-<date and time>.mp4` |
| `byteCount` | 视频的大小，以字节计 |
| `downloadUrl` | 下载链接，60 秒内有效 |
| `note` | 对上述内容的提醒 |

```json
{
  "attachmentId": "00000000-0000-0000-0000-000000000000",
  "fileName": "simulator-recording-2026-11-20T09-30-00-000Z.mp4",
  "byteCount": 3145728,
  "downloadUrl": "https://…",
  "note": "downloadUrl works for 60 seconds; get_attachment makes a fresh one, and send_message can attach the video to a chat."
}
```

## 错误

| 消息 | 何时出现 | 怎么办 |
| --- | --- | --- |
| no recording exists for this device | 这台设备上没有录制任何内容 | 用 [simulator_start_recording](https://air.build/cn/docs/mcp-tools/simulator_start_recording/) 开始录制 |
| no finished recording for this device | 录制失败 | 检查 [simulator_recording_status](https://air.build/cn/docs/mcp-tools/simulator_recording_status/) 并重新录制 |
| The recording is empty. | 视频没有内容 | 重新录制 |
| The recording could not be stored. Stop it again to retry. | 存储视频失败 | 再次调用 `simulator_stop_recording` |

另外还有每个模拟器工具都可能返回的错误：见 [start_simulator](https://air.build/cn/docs/mcp-tools/start_simulator/#device-errors)。

## 示例

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