# shutdown_simulator

> The MCP tool that shuts down the Team's shared Simulator of a device for everyone, with its installed apps and data.

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

`shutdown_simulator` shuts down the Team's Simulator of one device. The Simulator is shared, so it goes away for everyone: the AirBuild app's Simulator pane and the Team's Agents lose it too, along with every installed app and all its state. The next [start_simulator](https://air.build/docs/mcp-tools/start_simulator/) gives a fresh device. It is destructive (`destructiveHint: true`). Calling it on a Simulator that is already off does nothing.

You rarely need it: a Simulator nobody uses shuts down on its own about five minutes after the last call.

| Read-only | Destructive | Idempotent |
| --- | --- | --- |
| No | Yes | 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/) |
| `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 |
| --- | --- |
| `id` | The device's id |
| `state` | `stopping` when it was running or starting and is now shutting down; `off` when it was not running |

```json
{ "id": "iphone-example", "state": "stopping" }
```

## Errors

| Message | When | What to do |
| --- | --- | --- |
| No Simulator _id_. Offered: _ids_. | `simulator` is not an offered device id | Use an `id` from [list_simulators](https://air.build/docs/mcp-tools/list_simulators/) |
| AirBuild offers no Simulator right now. | No device is offered at the moment | Nothing to shut down |

## Example

```json
{"name": "shutdown_simulator", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "simulator": "iphone-example"}}
```
