# simulator_screen

> MCP टूल जो टीम के Simulator की स्क्रीन का साइज़ लौटाता है, यानी वह coordinate space जो टैप, swipe और accessibility tree इस्तेमाल करते हैं।

Source: https://air.build/hi/docs/mcp-tools/simulator_screen/

`simulator_screen` टीम के चल रहे Simulator की स्क्रीन का साइज़ उस coordinate space में लौटाता है जो हर दूसरा Simulator टूल इस्तेमाल करता है। यह रीड-ओनली है। हाथ से कोऑर्डिनेट भेजने से पहले इसे कॉल करें, ताकि पता रहे कि किनारे कहाँ हैं।

| रीड-ओनली | डिस्ट्रक्टिव | आइडेम्पोटेंट |
| --- | --- | --- |
| हाँ | नहीं | हाँ |

## स्क्रीन कोऑर्डिनेट

कोई Simulator टूल जो भी `x`, `y` (और `startX` … `endY`) लेता या लौटाता है, वह स्क्रीन कोऑर्डिनेट में होता है:

- इकाई स्क्रीन point है, screenshot का pixel नहीं: screenshot आमतौर पर दो या तीन गुना बड़ा होता है;
- `0, 0` स्क्रीन का ऊपरी-बायाँ कोना है और `x` दाईं ओर, `y` नीचे की ओर बढ़ता है, उस `width` और `height` तक जो यह टूल लौटाता है;
- ये डिवाइस के portrait frame में ही रहते हैं, उसकी orientation चाहे जो हो: [simulator_rotate](https://air.build/hi/docs/mcp-tools/simulator_rotate/) के बाद glass के उसी point के कोऑर्डिनेट वही रहते हैं;
- [simulator_describe_ui](https://air.build/hi/docs/mcp-tools/simulator_describe_ui/) और [simulator_find](https://air.build/hi/docs/mcp-tools/simulator_find/) में हर एलिमेंट का `frame` इसी space में होता है, इसलिए frame के केंद्र (`x + width / 2`, `y + height / 2`) को सीधे टैप किया जा सकता है;
- foldable पर ये इस्तेमाल में चल रहे display के होते हैं; [simulator_tap](https://air.build/hi/docs/mcp-tools/simulator_tap/) और [simulator_swipe](https://air.build/hi/docs/mcp-tools/simulator_swipe/) `display` से, यानी [simulator_displays](https://air.build/hi/docs/mcp-tools/simulator_displays/) से मिले `screenId` से, दूसरे display को चुन सकते हैं।

जहाँ कोई टूल कोऑर्डिनेट की जगह एलिमेंट लेता है, वहाँ एलिमेंट चुनें: लेआउट बदलने पर यह उसके साथ चलता है (देखें [simulator_find](https://air.build/hi/docs/mcp-tools/simulator_find/#selector))।

## इनपुट

| इनपुट | टाइप | ज़रूरी | डिफ़ॉल्ट | यह क्या करता है |
| --- | --- | --- | --- | --- |
| `teamId` | string (UUID) | हाँ | — | टीम, [list_teams](https://air.build/hi/docs/mcp-tools/list_teams/) से |
| `simulator` | string | नहीं | टीम का डिफ़ॉल्ट डिवाइस | कौन-सा डिवाइस, [list_simulators](https://air.build/hi/docs/mcp-tools/list_simulators/#result) से मिले `id` से |

## नतीजा

| फ़ील्ड | मतलब |
| --- | --- |
| `screen.rect.width` | points में स्क्रीन की चौड़ाई |
| `screen.rect.height` | points में स्क्रीन की ऊँचाई |
| `screen.rect.x`, `screen.rect.y` | कुछ डिवाइस पर: पूरे डिवाइस की तस्वीर में स्क्रीन कहाँ है। इनपुट के कोऑर्डिनेट फिर भी `0, 0` से शुरू होते हैं |

```json
{ "screen": { "rect": { "width": 402, "height": 874 } } }
```

## त्रुटियाँ

सिर्फ़ वे त्रुटियाँ जो हर Simulator टूल लौटा सकता है: देखें [start_simulator](https://air.build/hi/docs/mcp-tools/start_simulator/#device-errors)।

## उदाहरण

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