跳到正文
cccskills
免费在 GitHub 公开

opencli-browser

Uses OpenCLI to inspect and interact with Chrome pages, including logged-in websites. Agents can fill forms, extract page data, inspect captured network requests, take screenshots, and manage Chrome tabs, groups, and windows.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Drive Chrome with OpenCLI to inspect pages, interact with logged-in sites, capture API evidence, and manage native tabs, groups and windows. For reusable adapters, see opencli-adapter-author.

查看安装方法

适用场景

  • Filling forms and clicking controls on logged-in websites
  • Extracting page text and taking screenshots
  • Inspecting network requests for API investigation
  • Organizing Chrome tabs, groups, and windows

包含的文件(1)

  • SKILL.md4.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Browser tools for agents

Use the capability that fits the task. Discover commands with opencli list <query>; read exact arguments with opencli browser <command> --help -f json. Run opencli doctor when diagnosing a connection problem.

Scope and results

Page commands require --session <name>. Reuse that name across a task; different sessions isolate page work. --profile <name> selects a Chrome profile when needed. Options can follow command arguments:

opencli browser open https://example.com --session research
opencli browser state --session research
opencli browser click --role button --name Search --session research
opencli browser close --session research

Default output is one JSON value: { "ok": true, "data": ... }. Failures return { "ok": false, "error": { "code": "...", "message": "...", "hint": "..." } } and a nonzero exit code. Diagnostic logs go to stderr. network --follow and console --follow stream one envelope per line. Help, version and shell completion are inspection/export surfaces; structured help uses --help -f json.

Read the returned data and error fields. When error.outcome is unknown, inspect the affected state before retrying a write.

Page targets and interaction

  • state returns URL and interactive element refs. --diagnostics also reports page title and available initial-state globals; --source ax selects the AX tree.
  • find locates elements. Interaction targets accept a ref, CSS selector, or semantic flags such as --role, --name, --label, --text, --testid.
  • Use --nth to resolve deliberate multiple matches. On stale refs, read fresh state or locate the element again; refs describe the observed page.
  • fill replaces a field and verifies its value; type types text. Other actions include click, select, check, upload, drag, keys and dialog.
  • get text|value|attributes|html, extract, screenshot and eval expose page data. eval executes JavaScript in the page and can mutate state.
  • wait xhr|selector|text|download observes an expected condition. Consult help for timeouts and matching rules.
  • tab list|new|select|close manages session tabs. --tab accepts the page identity returned by these commands; these are different from numeric native Chrome IDs.
  • frames lists frame targets; eval --frame evaluates in a selected frame.

bind --session research attaches the current user tab. Bound sessions permit navigation but block tab creation, selection and closure. unbind releases the binding without closing the user tab. Owned sessions keep leased tabs until close or idle expiry. --window foreground|background controls owned windows.

Network and scripts

opencli browser network --session research
opencli browser network --detail RequestKey --session research
opencli browser network --static --session research

network returns captured request keys and response shapes. --detail reads a cached request; --filter selects shapes; --raw exposes response bodies. --static adds Acorn AST candidates from loaded scripts, with source locations, methods, query/body parameter names and observed request evidence. EXPR means an unresolved expression. Static candidates are not executed or proven APIs. Check analysisComplete, script errors, omitted scripts and networkSource. An empty live capture can reuse a recent cache; reported provenance distinguishes it.

Native Chrome management

Native calls need no session and do not attach a page:

opencli browser chrome describe
opencli browser chrome describe tabs.group
opencli browser chrome call tabs.query '[{}]'
opencli browser chrome call tabs.group '[{"tabIds":[123,456],"createProperties":{"windowId":10}}]'
opencli browser chrome call tabGroups.update '[789,{"title":"Research","color":"blue"}]'

Use numeric IDs returned by Chrome, replacing the example IDs. describe lists supported methods, signatures, live permissions and official documentation. Native-created tabs/windows persist. Mutations touching active OpenCLI session tabs or managed groups return managed_resource_conflict; ordinary groups can be created, renamed, recolored, moved and dissolved with tabs.ungroup.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Helps build or improve reusable OpenCLI website commands in JavaScript. It uses observed page behavior, captured requests, and existing adapters to guide implementation, then checks definitions and tests real command behavior and failure handling.

中文简介正在准备中。当前显示英语简介。

  • Turning repeated website tasks into OpenCLI commands
  • Improving an existing website adapter
  • Investigating API requests before implementation
jackwener/OpenCLI3万2026年10月17日 更新

Diagnose OpenCLI commands broken by website changes, collect execution traces, patch the adapter that connects to the site, and retry. After a verified repair, prepares a GitHub issue for submission with user approval.

中文简介正在准备中。当前显示英语简介。

  • Repair commands broken by website layout changes
  • Adapt to changed API responses
  • Distinguish empty results from adapter failures
jackwener/OpenCLI3万2026年10月17日 更新

Helps agents find and use OpenCLI commands for websites and Chrome. It guides command discovery, input checks, result interpretation, and error recovery so agents can select suitable browser tools or reusable website commands.

中文简介正在准备中。当前显示英语简介。

  • Finding OpenCLI commands for a specific website
  • Checking command inputs and output formats
  • Diagnosing Chrome connection problems
jackwener/OpenCLI3万2026年10月17日 更新

Routes OpenCLI searches to sources suited to the topic, language, or requested website. It starts with one AI source when none is specified, adds specialist sources as needed, and reports search terms and usage counts.

中文简介正在准备中。当前显示英语简介。

  • Researching a topic on a specified website
  • Choosing sources for Chinese or English research
  • Finding original posts, products, or job listings
jackwener/OpenCLI3万2026年10月17日 更新

查看 jackwener 的全部技能

报告此技能的问题