# simulator_key

> MCP टूल जो टीम के Simulator के hardware keyboard पर एक key दबाता है, वैकल्पिक modifiers के साथ।

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

`simulator_key` टीम के चल रहे Simulator के hardware keyboard पर एक key दबाकर छोड़ता है, चाहें तो modifier keys दबाए रखकर। इसे Return, Delete, Tab, Escape, arrows और Command-V जैसे shortcuts के लिए इस्तेमाल करें। key उस पर जाती है जिस पर focus है। टेक्स्ट के लिए [simulator_type_text](https://air.build/hi/docs/mcp-tools/simulator_type_text/) इस्तेमाल करें; Home, lock और volume बटन के लिए [simulator_button](https://air.build/hi/docs/mcp-tools/simulator_button/) इस्तेमाल करें।

keys को उनके W3C `KeyboardEvent.code` से बताया जाता है, जो case-sensitive है: जैसे `KeyA`, `Digit1`, `Enter`, `Escape`, `Backspace`, `Tab`, `ArrowUp`, `ArrowDown`। code key को बताता है, character को नहीं: `shift` के साथ `KeyA` से "A" मिलता है।

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

## इनपुट

| इनपुट | टाइप | ज़रूरी | डिफ़ॉल्ट | यह क्या करता है |
| --- | --- | --- | --- | --- |
| `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` से |
| `code` | string | हाँ | — | key, W3C `KeyboardEvent.code` के रूप में |
| `modifiers` | `shift`, `control`, `option`, `command` की सूची | नहीं | कोई नहीं | इसे दबाते समय दबाए रखी जाने वाली keys |
| `duration` | number, 0 से 60 | नहीं | एक छोटा press | key को कितने सेकंड दबाए रखना है |

## नतीजा

| फ़ील्ड | मतलब |
| --- | --- |
| `ok` | `true` |

```json
{ "ok": true }
```

## त्रुटियाँ

| संदेश | कब | क्या करें |
| --- | --- | --- |
| code is required. | `code` मौजूद नहीं है | कोई key code भेजें |
| modifiers must be among shift, control, option, command. | `modifiers` सूची नहीं है, या उसमें कोई दूसरा नाम है (`ctrl`, `cmd`, `alt` और `meta` स्वीकार नहीं होते) | ये चार नाम इस्तेमाल करें |
| duration must be a number from 0 to 60. | `duration` range के बाहर है | 0 से 60 भेजें |

अज्ञात `code` को Simulator अपने शब्दों में ठुकरा देता है। साथ ही वे त्रुटियाँ जो हर Simulator टूल लौटा सकता है: देखें [start_simulator](https://air.build/hi/docs/mcp-tools/start_simulator/#device-errors)।

## उदाहरण

```json
{"name": "simulator_key", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "code": "KeyV", "modifiers": ["command"]}}
```
