Argent Ios Device Interact

作者 software-mansioncb0f538ad083無授權條款收錄於 2026年10月8日更新於 2026年10月8日

Drive a physical iPhone through argent. Use when a physical iPhone is involved (a list-devices iOS entry with kind "device") and ONLY then; never for a simulator. For cable, trust, or signing problems read argent-ios-device-setup.

AI 產生的概覽

指導代理透過 argent 操作實體 iPhone,說明可用工具與硬體限制。

功能
此技能說明如何透過 argent 與實體 iPhone 互動,列出硬體上可用的裝置工具,以及會回傳不支援錯誤的工具。它解釋觀察與修改的約定、自動化目標 App 的行為,以及各工具的硬體限制,例如手勢、按鍵和鍵盤輸入。它也提供變通做法,例如用點擊和拖曳操作 App 本身的縮放與旋轉介面,並傳入 bundleId 讓 https 連結在所屬 App 中開啟。
適用情境
當涉及實體 iPhone 時使用,也就是 list-devices 的 iOS 項目中 kind 為 "device",且僅在這種情況下使用。它不適用於模擬器;遇到傳輸線、信任或簽章問題時應參考安裝設定技能。
執行需求
需要 argent 工具鏈以及已連接並已信任的實體 iPhone;不附帶指令碼,只有說明文件。

Physical iPhone interaction

Read this only for a physical iPhone. argent-device-interact still applies for everything not listed here.

Contract

  • Observation never changes the screen; mutation may. describe and await-ui-element fail on a backgrounded target instead of re-fronting it; await-screen-idle returns settled: false with no reason. The first describe within a second of button home can still return the old tree; describe again. Gestures and keyboard re-front it and return reactivated: true; re-describe before the next step.
  • launch-app, open-url and restart-app set the app under automation; reinstall-app clears it; a tool-server restart forgets it: launch again.
  • Each tool's description states its own hardware limits (named keys, gesture-custom shapes, buttons, edge swipes, tap counts). A gated tool fails with a bare not supported on ios device: the fix is in the list below, not in the error.

Tools on hardware

  • Only these exist: list-devices, launch-app, restart-app, reinstall-app, open-url, describe, screenshot, screenshot-diff, gesture-tap, gesture-swipe, gesture-custom, button (home, volumeUp, volumeDown, actionButton on models that have one), keyboard, await-ui-element, await-screen-idle, run-sequence, the flow tools, stop-simulator-server and stop-all-simulator-servers (session end). Every other device tool fails with not supported on ios device.
  • No two-finger gestures, rotate, shake, paste, settings-permissions, screen recording, debugger-*, react-profiler-*, native-profiler-*, native-*, boot-device: drive the app's own zoom and rotate UI with taps and drags, move the phone by hand, type with keyboard, change permissions in the phone's Settings, and debug, profile or record on a simulator.
  • gesture-swipe: durationMs sets drag speed, not time; momentum:false only rests 300 ms at the end, no damping. open-url https lands in Safari, never in the app that owns the link: pass bundleId.

來源與署名

來源:software-mansion/argent位於packages/skills/skills/argent-ios-device-interact提交cb0f538

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架