# simulator_stop_recording

> チームのシミュレータの画面録画を止め、MP4 をダウンロードリンク付きのチームの添付ファイルとして保存する MCP ツールです。

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

`simulator_stop_recording` は、チームのシミュレータの画面録画を止め、動画（MP4）をチームの添付ファイルとして保存し、その `attachmentId` とダウンロードリンクを返します。録画が自動で止まったあとでも使えます。リンクは 60 秒間有効なので、すぐに取得するか、あとで [get_attachment](https://air.build/ja/docs/mcp-tools/get_attachment/) で新しいリンクを取得してください。動画をチャットに添付するには、`attachmentId` を [send_message](https://air.build/ja/docs/mcp-tools/send_message/) に渡します。呼び出すたびに動画の新しいコピーが保存されます。何も削除しません。

| 読み取り専用 | 破壊的 | 冪等 |
| --- | --- | --- |
| いいえ | いいえ | はい |

## 入力

| 入力 | 型 | 必須 | デフォルト | 内容 |
| --- | --- | --- | --- | --- |
| `teamId` | 文字列（UUID） | はい | — | チーム。[list_teams](https://air.build/ja/docs/mcp-tools/list_teams/) から取得します。動画はこのチームに保存されます |
| `simulator` | string | いいえ | チームのデフォルトのデバイス | どのデバイスか。[list_simulators](https://air.build/ja/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/ja/docs/mcp-tools/simulator_start_recording/) で録画を始めてください |
| no finished recording for this device | 録画が失敗した | [simulator_recording_status](https://air.build/ja/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/ja/docs/mcp-tools/start_simulator/#device-errors) を参照してください。

## 例

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