这个工具让你的编码智能体能在真实运行的应用里验证改动效果。它支持iOS、Android、tvOS、Android TV、亚马逊Vega OS电视、web、macOS和Linux平台,智能体可以读取无障碍快照、按选择器找元素、执行设备操作并保存证据。它用的是Vercel agent browser的inspect-act-verify流程,特别适合做移动端和电视端应用测试的QA场景,不过物理Fire TV设备还不支持。
查看英文原文
agent device Let your coding agent verify its changes in the running app. agent device lets coding agents inspect, control, and verify apps on iOS, Android, tvOS, Android TV, Amazon Vega OS TV through the Vega Virtual Device (VVD), web, macOS, and Linux. Agents can read token efficient accessibility snapshots where supported, find elements by ref or selector, run device actions, and save evidence for review. Initial Vega OS support is VVD only and covers discovery, app lifecycle, and complete TV remote control; physical Fire TV, capture, and selector backends remain unsupported. Your coding agent or QA tool reads each result and chooses the next command. agent device runs the command and saves evidence when asked. agent device uses the inspect act verify process from Vercel's agent browser for mobile, TV, and desktop apps. Basic platform web support runs agent browser in the same session and replay system. Quick start Install the CLI and check setup. It requires Node.js 22.12 or newer; web automation requires Node.js 24 or newer. See Installation for target requirements. [安装/使用命令见下方] Run agent device doctor yourself before handing the CLI to an agent. The installed CLI help defines current behavior. agent device help workflow links to guides for debugging, replay, React Native profiling, and other tasks. Add a contact in the built in iOS Contacts app: [安装/使用命令见下方] Use refs only from the latest output. Do not assume an earlier @eN still identifies the same element. After a command with settle , use the refs in its diff. Take another snapshot only if the diff omits what you need. Snapshots use the app's accessibility tree. Clear labels, roles, and test IDs make agent runs more reliable. Use screenshots and videos as evidence or when accessibility data is poor. Use refs and selectors for actions and assertions when you can. What agents can do Inspect app state through accessibility snapshots, refs, selectors, and React Native component trees. Act on visible UI by tappi