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 交互,列出硬件上可用的设备工具以及会返回不支持错误的工具。它解释观察与修改的约定、自动化目标应用的行为,以及各工具的硬件限制,例如手势、按键和键盘输入。它还给出变通做法,例如用点击和拖拽操作应用自身的缩放与旋转界面,并传入 bundleId 让 https 链接在所属应用中打开。
适用场景
当涉及实体 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 从公开仓库中收录这些内容。

举报或申请下架