Agent Skills › software-mansion/argent › argent-tv-interact

argent-tv-interact

GitHub

用于控制Apple TV、Android TV和Fire TV应用的自动化技能。通过焦点导航、D-pad遥控、键盘输入及截图,实现TV端UI交互与调试。

packages/skills/skills/argent-tv-interact/SKILL.md software-mansion/argent

触发场景

目标平台为TV(tvOS, Android TV, Fire TV) 涉及TV应用自动化测试或交互 需要模拟遥控器操作

安装

npx skills add software-mansion/argent --skill argent-tv-interact -g -y
更多选项

非标准路径

npx skills add https://github.com/software-mansion/argent/tree/main/packages/skills/skills/argent-tv-interact -g -y

不安装直接使用

npx skills use software-mansion/argent@argent-tv-interact

指定 Agent (Claude Code)

npx skills add software-mansion/argent --skill argent-tv-interact -a claude-code -g -y

安装 repo 全部 skill

npx skills add software-mansion/argent --all -g -y

预览 repo 内 skill

npx skills add software-mansion/argent --list

SKILL.md

Frontmatter
{
    "name": "argent-tv-interact",
    "description": "Control and inspect TV apps via argent, Apple TV (tvOS), Android TV (leanback), and Amazon Fire TV (Vega). Boot the target, read focus, navigate with the D-pad remote, type, screenshot, and on Vega debug the JS runtime (evaluate, console logs, network inspector). Use when a task targets a TV (runtimeKind \"tv\", or platform \"vega\"), or mentions Apple TV \/ tvOS \/ Android TV \/ leanback \/ Vega \/ Fire TV \/ VVD."
}

Argent TV (Apple TV + Android TV + Fire TV)

Critical

  • A TV is focus-driven, not touch-driven. Drive every interaction with describe + tv-remote + keyboard; never use gesture-* / coordinate taps; they don't apply on any TV platform.
  • Always describe before navigating to find the live cursor and your target; never guess focus from a screenshot. The cursor is the focused element; on Vega the toolkit often leaves focused false and marks the highlighted item [selected], so treat [selected] as the cursor when nothing reports [focused].
  • Pass the udid from list-devices: an Apple TV simulator UDID or an Android TV / Vega serial. Dispatch is automatic from the id; the same tools drive all three.
  • E2E tests: Vega only. Apple TV and Android TV have no e2e support (a tap: can pass without doing anything): report that limitation.
  • Fire TV (Vega) (platform: "vega" in list-devices): read references/vega.md before driving it. It covers booting and stopping the VVD, Fast Refresh, and debugging the JS runtime.

The navigation loop

  1. describe: find the cursor and your target (returns the focused element + all focusable ones, not a tap tree).
  2. tv-remote: move focus toward the target. Prefer one call with a path ending in select, e.g. {button:["down","right","select"]}; count rows/columns from the frames to build the path.
  3. describe again to confirm. On a miss, repeat.

Tools

describe, tv-remote and keyboard descriptions cover the TV behaviour (focus view, remote keys and paths, text-only typing). Beyond them:

  • launch-app / restart-app / reinstall-app take the bundleId from the app manifest.

Per-platform

Apple TV (tvOS simulator)

  • Boot like any iOS sim (boot-device); the AX + HID daemons auto-start on the first describe / tv-remote (first call may take a few seconds).
  • Dev build: open-url {udid, url:"<scheme>://expo-development-client/?url=http%3A%2F%2F<HOST_IP>%3A8081"} (<HOST_IP> = your Mac's LAN IP, shown on the launcher).

Android TV (leanback emulator)

  • Boot the leanback AVD like any emulator; see argent-android-emulator-setup.
  • Dev build: open-url <scheme>://expo-development-client/?url=http%3A%2F%2F10.0.2.2%3A8081 (<scheme>: the app's URL scheme, or its package name if it sets none), then dismiss the first dev menu with tv-remote select (not back: it exits the app).

Fast Refresh (dev builds)

Needs a Debug build + Metro running. argent only connects to Metro: start Metro yourself, and forward the port where the app needs it (Android: argent-metro-debugger §1; Vega: references/vega.md).

  • Apple TV / Android TV: use the dev-build deep-links above; npm start for Metro.
  • Vega: see references/vega.md.

版本历史

  • b965c94 当前 2026-11-07 15:13
  • 617db8d 2026-11-02 18:48

    list-devices工具新增提示,指导Agent在非默认ADB服务器环境下正确执行ADB命令。

  • f0e04a6 2026-10-19 02:09

    将工具描述和技能文档中的破折号替换为标准标点符号,以统一格式并提升可读性。

  • 3c1f2ae 2026-09-22 07:44

    优化了 Android 模拟器设置和 Metro 调试器的说明,简化了指令并消除冗余。

  • 82d0209 2026-08-19 18:37

    修复keyboard工具同时接受text和key参数的问题,强制二者互斥以消除歧义;要求组合操作使用run-sequence。

  • b1abdec 2026-08-15 02:59

    修复调试工具失败率:结构化非连接结果,分类CDP失败并缩小恢复范围。

  • a0460ee 2026-07-24 11:28

    新增Vega平台JS运行时调试和网络检查器支持,解锁debugger-evaluate等工具,明确部分因RN版本限制仍不可用的功能。

  • bc04c3b 2026-07-06 19:59

同 Skill 集合

packages/skills/skills/argent-android-emulator-setup/SKILL.md
packages/skills/skills/argent-create-e2e/SKILL.md
packages/skills/skills/argent-create-flow/SKILL.md
packages/skills/skills/argent-device-interact/SKILL.md
packages/skills/skills/argent-ios-device-interact/SKILL.md
packages/skills/skills/argent-ios-device-setup/SKILL.md
packages/skills/skills/argent-ios-simulator-setup/SKILL.md
packages/skills/skills/argent-lens/SKILL.md
packages/skills/skills/argent-metro-debugger/SKILL.md
packages/skills/skills/argent-native-profiler/SKILL.md
packages/skills/skills/argent-react-native-app-workflow/SKILL.md
packages/skills/skills/argent-react-native-optimization/SKILL.md
packages/skills/skills/argent-react-native-profiler/SKILL.md
packages/skills/skills/argent-screen-recording/SKILL.md
packages/skills/skills/argent-screenshot-diff/SKILL.md
packages/skills/skills/argent-test-ui-flow/SKILL.md
packages/skills/skills/argent-qa-e2e/SKILL.md
packages/skills/skills/argent-qa-flows/SKILL.md
packages/skills/skills/argent-settings-permissions/SKILL.md

元信息

文件数
0
版本
b965c94
Hash
9e412e28
收录时间
2026-07-06 19:59

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-10 09:39
浙ICP备14020137号-1