# simulator_logs

> The MCP tool that reads the Team's Simulator's device log: the last lines, or what it writes over the next seconds.

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

`simulator_logs` reads the unified log of the Team's running Simulator. It is read-only. By default it returns the last `lines` lines. With `followSeconds` it instead collects what the device writes over that many seconds from now. For example, start following, then make your app do the thing under test from another call or client. The log covers the whole device, not one app: look for your app's process name in the lines. It does not filter by app or level.

| Read-only | Destructive | Idempotent |
| --- | --- | --- |
| Yes | 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/) |
| `simulator` | string | No | The Team's default device | Which device, by `id` from [list_simulators](https://air.build/docs/mcp-tools/list_simulators/#result) |
| `lines` | integer, 1 to 2000 | No | `120` | How many of the latest lines to return. Ignored with `followSeconds` |
| `followSeconds` | integer, 0 to 120 | No | — | Collect new lines for this many seconds instead; `0` is the same as leaving it out |

## Result

Last lines:

| Field | What |
| --- | --- |
| `ok` | `true` |
| `lines` | The log lines, oldest first |

With `followSeconds`:

| Field | What |
| --- | --- |
| `lines` | The lines written while it followed, oldest first |
| `seconds` | How long it followed |
| `truncated` | Only when there was more: `Only the last 256 KB are kept.` |

```json
{ "ok": true, "lines": [ "2026-11-20 10:00:00.000 Notes[4321:…] Saved note" ] }
```

## Errors

| Message | When | What to do |
| --- | --- | --- |
| lines must be a whole number of at least 0. | `lines` is not a whole number | Send 1 to 2000 |
| followSeconds must be a whole number of at least 0. | `followSeconds` is not a whole number | Send 1 to 120 |
| followSeconds is at most 120. | `followSeconds` is over 120 | Send at most 120, and call again for more |

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_logs", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "followSeconds": 20}}
```
