MCP 도구

팀 Simulator의 디스플레이, 사용 중인 디스플레이, 폴더블 기기의 힌지 각도를 나열하는 MCP 도구입니다.

simulator_displays는 실행 중인 팀 Simulator의 디스플레이를 나열하고 어느 것이 사용 중인지 알려 줍니다. iPhone Duo 같은 폴더블 기기에서는 힌지 각도와 어느 패널이 켜져 있는지도 알려 줍니다. 읽기 전용입니다. 휴대폰에는 디스플레이가 하나 있습니다. 폴더블 기기에는 커버 디스플레이와 안쪽 디스플레이 두 개가 있습니다. 디스플레이의 screenId를 simulator_tap, simulator_swipe, simulator_input의 display 입력으로 쓰면 그 디스플레이에 입력을 보냅니다. 생략하면 입력은 사용 중인 디스플레이로 갑니다. simulator_fold 뒤에는 active가 바뀔 때까지 다시 호출하세요. 최대 3초가 걸릴 수 있습니다.

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

입력

입력 유형 필수 기본값 설명
teamId 문자열 (UUID) 예 — 팀. list_teams에서 가져옵니다
simulator string 아니요 팀의 기본 기기 어떤 기기인지. list_simulators의 id

결과

필드 내용
ok true
displays 디스플레이마다 항목 하나
displays[].screenId 디스플레이의 id
displays[].name 이름
displays[].active 기기가 지금 표시하고 있는 디스플레이면 true
displays[].integrated 기기에 내장되어 있으면 true
displays[].width, displays[].height 회전 전 패널의 픽셀 크기
displays[].scale 포인트당 픽셀
displays[].quarterTurnsCw 패널이 장착된 방향에서 똑바로 세우기까지 시계 방향 90도 회전 횟수(0~3)
hinge 폴더블 기기에서만. 그 밖에는 null
hinge.degrees 힌지 각도. 0(닫힘)부터 180(평평함)까지. 기기가 보고하기 전에는 null
hinge.litPanel primary(커버 디스플레이) 또는 secondary(안쪽 디스플레이). 기기가 알려 주지 못하면 null
{
  "ok": true,
  "displays": [
    { "screenId": 1, "name": "Cover", "active": false, "integrated": true, "width": 1398, "height": 2034, "scale": 3, "quarterTurnsCw": 0 },
    { "screenId": 3, "name": "Inner", "active": true, "integrated": true, "width": 2006, "height": 2852, "scale": 3, "quarterTurnsCw": 1 }
  ],
  "hinge": { "degrees": 180, "litPanel": "secondary" }
}

오류

모든 Simulator 도구가 반환할 수 있는 오류를 반환합니다. start_simulator를 참고하세요.

예시

{"name": "simulator_displays", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000"}}