MCP टूल

MCP टूल जो टीम के Simulator को portrait, landscape या उल्टा घुमाता है।

simulator_rotate टीम के चल रहे Simulator को एक orientation में घुमाता है। orientation absolute है, जहाँ है वहाँ से घुमाव नहीं, इसलिए कॉल दोहराने से कोई नुकसान नहीं होता। जो स्क्रीन नहीं घूमती, जैसे iPhone की Home Screen, वह वैसी ही रहती है। फिर भी डिवाइस घूम चुका होता है, और घूमने वाला अगला ऐप उसके साथ चलता है। कोऑर्डिनेट इसके साथ नहीं बदलते: हर टूल डिवाइस का portrait frame ही इस्तेमाल करता रहता है। डिवाइस साझा है, इसलिए घुमाव इसे इस्तेमाल करने वाले सबको दिखता है।

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

इनपुट

इनपुट टाइप ज़रूरी डिफ़ॉल्ट यह क्या करता है
teamId string (UUID) हाँ — टीम, list_teams से
simulator string नहीं टीम का डिफ़ॉल्ट डिवाइस कौन-सा डिवाइस, list_simulators से मिले id से
orientation string: portrait, landscape-left, landscape-right, portrait-upside-down हाँ — किस orientation में घुमाना है

नतीजा

फ़ील्ड मतलब
ok true
orientation माँगी गई orientation
{ "ok": true, "orientation": "landscape-left" }

त्रुटियाँ

संदेश कब क्या करें
orientation is required. orientation मौजूद नहीं है एक भेजें
orientation must be one of portrait, landscape-left, landscape-right, portrait-upside-down. कोई दूसरा मान इनमें से एक इस्तेमाल करें

साथ ही वे त्रुटियाँ जो हर Simulator टूल लौटा सकता है: देखें start_simulator।

उदाहरण

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