agent-device
यह क्या करती है
यह agent-device कमांड-लाइन टूल चलाती है, ताकि ऐप खोला जा सके, उसकी स्क्रीन पढ़ी जा सके, और उस पर टैप, टाइप या स्क्रॉल किया जा सके। यह मोबाइल ऐप के व्यवहार की जाँच करने वाले डेवलपर्स और टेस्टर्स के लिए है।
कब इस्तेमाल करें
- ✓जब आप चाहते हैं कि एजेंट फ़ोन या सिमुलेटर पर ऐप खोलकर एक स्क्रीन से गुज़रे।
- ✓जब आप डिवाइस पर ऐप इस्तेमाल करके मोबाइल ऐप के बदलाव की जाँच करना चाहते हैं।
- ✓जब आपको मोबाइल ऐप की बग के स्क्रीनशॉट या विवरण चाहिए।
Skill का लिंक
https://github.com/callstack/agent-device/blob/main/skills/agent-device/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा ऐप iOS सिमुलेटर में खोलिए, टेस्ट अकाउंट से लॉगिन कीजिए, और बताइए कि सेटिंग्स स्क्रीन लोड होती है या नहीं।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आपका एजेंट ऐप खोलता है, उसकी स्क्रीन को टारगेट की सूची के रूप में पढ़ता है, और उन पर कार्रवाई करता है। हर कदम के बाद वह बदलाव पढ़ता है और आपने जो परिणाम पूछा था उसकी जाँच करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
agent-device
For a normal app-driving task, start immediately. Do not probe first with --help, --version, devices, appstate, snapshot, or screenshot:
agent-device open <app> --foreground
That starts the session and returns the initial interactive snapshot with @refs.
Loop: act with press|click|fill|longpress <target> ... --settle, scroll <direction> --settle, or back --settle; continue from the printed diff, verify the named expectation (wait text "...", is, get, or find), then run agent-device close, or agent-device close --shutdown if your session booted a local simulator or emulator, unless the user asks to keep it running.
Reaching an off-screen target is one command, not a scroll-and-check loop: scroll down --until <selector> scrolls until that element is on screen, and scroll bottom runs to the end of the content. Repeated bare scroll down calls are the slow way to find something.
Copy refs byte-for-byte: @e12, @e12~s4 — keep the @ and any ~sN. Prefer current refs, then id/label/role selectors; coordinates are a last resort. If snapshot reports sparse/AX-unavailable, its refs and selectors are invalid: run agent-device screenshot, inspect the image, use coordinates, then retry snapshot -i after navigating. Otherwise run snapshot -i only when the diff lacks the next target.
Error output includes corrective hints; follow them instead of re-planning. Only when the task is specialized (for example gestures, scripting, TV, macOS, remote, or debugging) or a command shape is unclear, run agent-device help <topic>. agent-device --help lists topics, but is not a startup step.
To capture network traffic on a Limrun session, see agent-device help remote or the Limrun docs.
अक्सर पूछे जाने वाले सवाल
क्या एजेंट को पहले कोई टूल इंस्टॉल करना होगा?
हाँ। एजेंट इस्तेमाल करने से पहले आप agent-device कमांड-लाइन टूल खुद इंस्टॉल करते हैं।
क्या यह TV ऐप पर भी काम करता है?
स्किल TV रिमोट और Android TV, Fire TV और Amazon Vega OS TV ऐप को कवर करती है।
टेस्ट के बाद सिमुलेटर का क्या होता है?
अगर सेशन ने सिमुलेटर या एमुलेटर शुरू किया था, तो अंत में वह उसे बंद कर देता है, जब तक आप उसे चालू रखने को न कहें।
जानकारी
लेखक का मूल विवरण
Automates Apple-platform apps (iOS, tvOS, macOS), Android devices (including Android TV and Fire TV on Fire OS), and Amazon Vega OS TV apps in Vega Virtual Devices. Use when navigating apps, taking snapshots/screenshots where supported, driving TV remotes, tapping, typing, scrolling, extracting UI info, collecting evidence, or planning agent-device CLI commands.
repo: callstack/agent-device
लोकप्रियता
- GitHub स्टार
- 5.2k
- रैंकिंग में स्थान
- #15026
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
android-emulator
5.2kयह आपके एजेंट को Android एमुलेटर में ऐप खोलने, उसकी स्क्रीन जाँचने, वर्कफ़्लो में टैप करने और कुछ गड़बड़ होने पर सबूत जुटाने में मदद करती है।
dogfood
5.2kयह आपके एजेंट को iOS या Android पर मोबाइल ऐप को एक टेस्टर की तरह परखने देती है, बग और खामियाँ ढूँढती है, और हर समस्या का सबूत सहेजती है।
ios-simulator
5.2kयह आपके एजेंट को Apple सिमुलेटर में iPhone या iPad ऐप खोलने, उसकी स्क्रीन जाँचने और बदलाव टेस्ट करने के चरणों से गुज़रने में मदद करती है।
मिलती-जुलती skills
android-clean-architecture
280kयह आपके एजेंट को Android projects को व्यवस्थित तरीके से संभालने देता है। यह code को ऐसा ढांचा देता है कि उसकी देखभाल और नए features जोड़ना आसान हो।
compose-multiplatform-patterns
280kKMP projects में Compose Multiplatform और Jetpack Compose patterns इस्तेमाल करने में आपके एजेंट की मदद करता है। इसमें state, navigation, theming और performance शामिल हैं।
dart-flutter-patterns
280kयह आपके एजेंट को Dart और Flutter apps के लिए code लिखने देता है। यह आधुनिक patterns इस्तेमाल करके मज़बूत और आसानी से संभलने वाले apps बनाता है।