一键导入
browser
Drive a browser to automate websites — fill forms, click buttons, take screenshots, scrape pages. Uses the built-in `browser` command (or `agents browser`).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Drive a browser to automate websites — fill forms, click buttons, take screenshots, scrape pages. Uses the built-in `browser` command (or `agents browser`).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Publish packages to registries (npm, PyPI, crates.io, Docker, etc.). Auto-detects project type or defers to project-specific instructions. Handles versioning, changelog, tests, publish, and git tags. Supports environment targets (preprod, prod). Triggers on: release, publish, ship, cut a release, deploy to prod.
Manage named bundles of environment variables backed by macOS Keychain. Create bundles, add secrets, and inject them into agent runs. Use this skill when working with credentials, API keys, or sensitive configuration.
Manage AI coding agent CLIs with agents-cli. Triggers on: 'agents add', 'agents use', 'agents pull', 'agents push', installing agent versions, syncing agent config, switching between agent versions, managing MCP servers, or when user mentions the agents-cli tool.
Use the mcporter CLI to list, configure, and call MCP servers/tools directly from the command line.
| name | browser |
| description | Drive a browser to automate websites — fill forms, click buttons, take screenshots, scrape pages. Uses the built-in `browser` command (or `agents browser`). |
| argument-hint | [url] |
| allowed-tools | Bash(browser*), Bash(agents browser*), Bash(sleep*) |
| user-invocable | true |
The browser command (shorthand for agents browser) provides CDP-based browser automation with profile and task management.
# Create a profile (one-time setup)
browser profiles create my-profile -b chrome -e cdp://localhost:9222
# Start a task (auto-launches browser if needed)
browser start my-task --profile my-profile
# Navigate and interact
browser navigate my-task https://example.com
browser refs my-task # Get clickable element refs
browser click my-task <tabId> <ref>
browser type my-task <tabId> <ref> "hello"
browser screenshot my-task
browser stop my-task
Profiles define browser type and connection endpoint. Create once, reuse across tasks.
# Local Chrome
browser profiles create local -b chrome -e cdp://localhost:9222
# Remote browser via SSH tunnel
browser profiles create mac-mini -b comet -e ssh://mac-mini?port=9333
# List profiles
browser profiles list
Supported browsers: chrome, comet, chromium, brave, edge
Tasks are browser sessions. Each task gets its own tabs and state.
browser start [task-name] --profile <profile> # auto-generates name if omitted
browser tasks # list active tasks
browser stop <task> # close task and its tabs
browser navigate <task> <url> # open URL in new tab
browser tabs <task> # list open tabs
browser close <task> [tabId] # close specific tab or all
browser refs <task> [tabId] # get interactive element refs
browser click <task> <tabId> <ref> # click element
browser type <task> <tabId> <ref> "text" # type into element
browser press <task> <tabId> Enter # press key (Enter, Tab, Escape)
browser hover <task> <tabId> <ref> # hover over element
browser screenshot <task> [tabId] # capture to ~/.agents-system/browser/sessions/<task>/
browser evaluate <task> <tabId> "document.title" # run JS, return result
Before navigating to sites that require login, load credentials:
eval "$(agents secrets export browser-accounts --plaintext)"
Known accounts (configure in browser-accounts bundle):
| Service | Username variable | Password variable |
|---|---|---|
| Grafana | $GRAFANA_USERNAME | $GRAFANA_PASSWORD |
| Cloudflare | $CLOUDFLARE_USERNAME | $CLOUDFLARE_PASSWORD |
Always screenshot first — if the session is still alive in the profile, skip login.
type may fail on contenteditable / ProseMirror. Use evaluate:
browser evaluate <task> <tabId> 'document.execCommand("insertText", false, "your text")'
For browsers on remote machines:
# Create profile with SSH endpoint
browser profiles create remote-mac -b comet -e ssh://user@hostname?port=9222
# Use normally — SSH tunnel is automatic
browser start task --profile remote-mac
browser navigate task https://example.com
The SSH driver launches the browser on the remote host and tunnels CDP back.