# simulator_rotate

> 팀 Simulator를 세로, 가로, 거꾸로 돌리는 MCP 도구입니다.

Source: https://air.build/ko/docs/mcp-tools/simulator_rotate/

`simulator_rotate`는 실행 중인 팀 Simulator를 한 방향으로 돌립니다. 방향은 현재 위치에서의 회전이 아니라 절대적이므로, 호출을 반복해도 문제없습니다. iPhone의 홈 화면처럼 회전하지 않는 화면은 그대로 있습니다. 그래도 기기는 돌아간 상태이며, 회전하는 다음 앱은 그 방향을 따릅니다. 좌표는 함께 바뀌지 않습니다. 모든 도구는 계속 기기의 [세로 방향 기준](https://air.build/ko/docs/mcp-tools/simulator_screen/#coordinates)을 사용합니다. 기기는 공유되므로 회전은 기기를 사용하는 모두에게 보입니다.

| 읽기 전용 | 파괴적 | 멱등 |
| --- | --- | --- |
| 아니요 | 아니요 | 예 |

## 입력

| 입력 | 유형 | 필수 | 기본값 | 설명 |
| --- | --- | --- | --- | --- |
| `teamId` | 문자열 (UUID) | 예 | — | 팀. [list_teams](https://air.build/ko/docs/mcp-tools/list_teams/)에서 가져옵니다 |
| `simulator` | string | 아니요 | 팀의 기본 기기 | 어떤 기기인지. [list_simulators](https://air.build/ko/docs/mcp-tools/list_simulators/#result)의 `id` |
| `orientation` | 문자열: `portrait`, `landscape-left`, `landscape-right`, `portrait-upside-down` | 예 | — | 돌릴 방향 |

## 결과

| 필드 | 내용 |
| --- | --- |
| `ok` | `true` |
| `orientation` | 요청한 방향 |

```json
{ "ok": true, "orientation": "landscape-left" }
```

## 오류

| Message | 발생 조건 | 해결 방법 |
| --- | --- | --- |
| orientation is required. | `orientation`이 없음 | 하나만 보내세요 |
| orientation must be one of portrait, landscape-left, landscape-right, portrait-upside-down. | 다른 값 | 이 중 하나를 사용하세요 |

모든 Simulator 도구가 반환할 수 있는 오류도 반환합니다. [start_simulator](https://air.build/ko/docs/mcp-tools/start_simulator/#device-errors)를 참고하세요.

## 예시

```json
{"name": "simulator_rotate", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "orientation": "landscape-left"}}
```
