agent-device
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseagent-device
agent-device
For a normal app-driving task, start immediately. Do not probe first with , , , , , or :
--help--versiondevicesappstatesnapshotscreenshotbash
agent-device open <app> --foregroundThat starts the session and returns the initial interactive snapshot with .
@refsLoop: act with , , or ; continue from the printed diff, verify the named expectation (, , , or ), then run .
press|click|fill|longpress <target> ... --settlescroll <direction> --settleback --settlewait text "..."isgetfindagent-device closeCopy refs byte-for-byte: , — keep the and any . Prefer current refs, then // selectors; coordinates are a last resort. If snapshot reports sparse/AX-unavailable, its refs and selectors are invalid: run , inspect the image, use coordinates, then retry after navigating. Otherwise run only when the diff lacks the next target.
@e12@e12~s4@~sNidlabelroleagent-device screenshotsnapshot -isnapshot -iError 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 . lists topics, but is not a startup step.
agent-device help <topic>agent-device --help对于常规的应用操控任务,请直接开始操作。不要先用、、、、或命令进行探测:
--help--versiondevicesappstatesnapshotscreenshotbash
agent-device open <app> --foreground该命令会启动会话并返回带有的初始交互式快照。
@refs循环流程:使用、或执行操作;根据打印的差异继续操作,验证预期内容(、、或),然后运行。
press|click|fill|longpress <target> ... --settlescroll <direction> --settleback --settlewait text "..."isgetfindagent-device close完全按原样复制引用:、 —— 保留符号和任何后缀。优先使用当前引用,其次是//选择器;坐标是最后的选择。如果快照报告显示sparse/AX-unavailable,则其引用和选择器无效:运行,检查图片,使用坐标,导航后重试。否则,仅当差异中缺少下一个目标时才运行。
@e12@e12~s4@~sNidlabelroleagent-device screenshotsnapshot -isnapshot -i错误输出包含纠正提示;请遵循提示操作,而非重新规划。仅当任务具有特殊性(例如手势、脚本、电视、macOS、远程控制或调试)或命令格式不明确时,才运行。会列出主题,但这不是启动步骤。
agent-device help <topic>agent-device --help