opencli-browser
What it does
This skill lets your agent control Chrome through the OpenCLI tool. It can open pages, read their content, interact with buttons and fields, and manage tabs.
When to use it
- ✓When you want your agent to open and read a web page in Chrome.
- ✓When you want to interact with a logged-in website for a task.
- ✓When you need to capture what a page sends or receives while you investigate it.
Skill link
https://github.com/jackwener/OpenCLI/blob/main/skills/opencli-browser/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Open this website in Chrome, find the pricing table, and tell me what it says.”
5 new skills a week. 1 minute to read.
How it works
The agent opens a named browser session, reads the page state with element references, and then clicks or types as needed. It reads each result, and it inspects the page before retrying any write action.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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
statereturns URL and interactive element refs.--diagnosticsalso reports page title and available initial-state globals;--source axselects the AX tree.findlocates elements. Interaction targets accept a ref, CSS selector, or semantic flags such as--role,--name,--label,--text,--testid.- Use
--nthto resolve deliberate multiple matches. On stale refs, read fresh state or locate the element again; refs describe the observed page. fillreplaces a field and verifies its value;typetypes text. Other actions includeclick,select,check,upload,drag,keysanddialog.get text|value|attributes|html,extract,screenshotandevalexpose page data.evalexecutes JavaScript in the page and can mutate state.wait xhr|selector|text|downloadobserves an expected condition. Consult help for timeouts and matching rules.tab list|new|select|closemanages session tabs.--tabaccepts the page identity returned by these commands; these are different from numeric native Chrome IDs.frameslists frame targets;eval --frameevaluates 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.
FAQ
Do I need a session name?
Yes. Page commands use a session name, which keeps different tasks separate.
What happens if an action's result is unclear?
The agent checks the page state before repeating a write action.
Can it use my signed-in browser profile?
Yes. A Chrome profile can be selected when needed.
Details
Original description by the author
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.
repo: jackwener/OpenCLI
Popularity
- GitHub stars
- 31k
- Ranking position
- #9334
- License
- Apache-2.0
- Updated
- 10/26/2026
Comments
- …
More skills from this repository
opencli-adapter-author
31kHelps your agent build a reusable OpenCLI adapter that lets commands fetch data from a website reliably.
opencli-autofix
31kHelps your agent repair a broken OpenCLI adapter after a website changes, then retry the command.
opencli-usage
31kHelps your agent find and run OpenCLI commands for websites and Chrome, and read their results correctly.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.