electron-inspect
星标11
分支1
更新时间2026年4月15日 05:27
Inspect and interact with the running GameLord Electron app using agent-browser
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Inspect and interact with the running GameLord Electron app using agent-browser
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | electron-inspect |
| description | Inspect and interact with the running GameLord Electron app using agent-browser |
GameLord's dev server exposes Chrome DevTools Protocol on port 9222 by default (configurable via CDP_PORT env var). Use agent-browser to connect, take screenshots, inspect the DOM, interact with UI elements, and record videos — all without leaving the terminal.
agent-browser installed (brew install agent-browser && agent-browser install)pnpm dev from repo root)# 1. Connect to the running Electron app
agent-browser connect 9222
# 2. List available tabs/windows (library window, game window, etc.)
agent-browser tab list
# 3. Switch to a specific tab by index
agent-browser tab 2
# 4. Take a snapshot (accessibility tree with element refs)
agent-browser snapshot -i
# 5. Take a screenshot
agent-browser screenshot /tmp/gamelord-screenshot.png
# Accessibility tree — compact, shows element refs like @e1, @e2
agent-browser snapshot -i
# Get text content of a specific element
agent-browser get text "@e5"
# Check computed styles
agent-browser get styles "@e5"
# Get element bounding box (position + dimensions)
agent-browser get box "@e5"
# Click an element by ref
agent-browser click "@e5"
# Type into an input
agent-browser fill "@e3" "Super Mario Bros"
# Press keyboard keys
agent-browser press "Enter"
# Scroll
agent-browser scroll down 500
# Hover (useful for testing hover states)
agent-browser hover "@e5"
# Full page screenshot
agent-browser screenshot /tmp/gamelord.png
# After a change, compare against previous
agent-browser screenshot /tmp/gamelord-after.png
agent-browser diff screenshot --baseline /tmp/gamelord.png
# Start recording a workflow
agent-browser record start /tmp/gamelord-demo.webm
# ... perform interactions ...
# Stop and save
agent-browser record stop
GameLord has multiple Electron windows (library, game). Each appears as a separate tab target:
# List all targets
agent-browser tab list
# Switch between them
agent-browser tab 1 # library window
agent-browser tab 2 # game window (when open)
# Run JS in the current window's renderer context
agent-browser eval "document.title"
agent-browser eval "window.gamelord" # check preload API
# View console logs (useful for debugging IPC)
agent-browser console
# View page errors
agent-browser errors
# Monitor network requests
agent-browser network requests
snapshot -i first to get element refs before clicking/typing.agent-browser tab list when the app has multiple windows open — the game window is a separate target./tmp/ to keep the repo clean. Use descriptive filenames.CDP_PORT=9223 pnpm dev when running multiple instances.