# simulator_stop_recording

> The MCP tool that stops the Team's Simulator's screen recording and stores the MP4 as a Team attachment with a download link.

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

`simulator_stop_recording` stops the Team's Simulator's screen recording, stores the video (MP4) as an attachment of the Team, and returns its `attachmentId` and a download link. It also works after the recording stopped on its own. The link works for 60 seconds: fetch it right away, or get a fresh one later with [get_attachment](https://air.build/docs/mcp-tools/get_attachment/). Attach the video to a chat by passing `attachmentId` to [send_message](https://air.build/docs/mcp-tools/send_message/). Each call stores a new copy of the video. It deletes nothing.

| Read-only | Destructive | Idempotent |
| --- | --- | --- |
| No | No | Yes |

## Inputs

| Input | Type | Required | Default | What it does |
| --- | --- | --- | --- | --- |
| `teamId` | string (UUID) | Yes | — | The Team, from [list_teams](https://air.build/docs/mcp-tools/list_teams/); the video is stored in this Team |
| `simulator` | string | No | The Team's default device | Which device, by `id` from [list_simulators](https://air.build/docs/mcp-tools/list_simulators/#result) |

## Result

| Field | What |
| --- | --- |
| `attachmentId` | The stored video's attachment id |
| `fileName` | `simulator-recording-<date and time>.mp4` |
| `byteCount` | The video's size in bytes |
| `downloadUrl` | A link to download it, valid for 60 seconds |
| `note` | A reminder of the above |

```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."
}
```

## Errors

| Message | When | What to do |
| --- | --- | --- |
| no recording exists for this device | Nothing was recorded on this device | Start one with [simulator_start_recording](https://air.build/docs/mcp-tools/simulator_start_recording/) |
| no finished recording for this device | The recording failed | Check [simulator_recording_status](https://air.build/docs/mcp-tools/simulator_recording_status/) and record again |
| The recording is empty. | The video has no content | Record again |
| The recording could not be stored. Stop it again to retry. | Storing the video failed | Call `simulator_stop_recording` again |

Plus the errors every Simulator tool can return: see [start_simulator](https://air.build/docs/mcp-tools/start_simulator/#device-errors).

## Example

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