agent-browser
Use Agent Browser for real browser navigation, dynamic pages, and web interaction; also use it as a distinct browser-based path…
Use the local browser-connector CLI to inspect and operate the user's current Chrome tabs through the Browser Connector extension and Native Host. Use when the user asks to list open browser pages, read a current page, capture a screenshot, or perform controlled browser
$ npx -y skills add peiiii/nextclaw --skill browser-control --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/browser-controlContext preview
The summary Claude sees to decide when to auto-load this skill.
Use the local browser-connector CLI to inspect and operate the user's current Chrome tabs through the Browser Connector extension and Native Host. Use when the user asks to list open browser pages, read a current page, capture a screenshot, or perform controlled browser
name: browser-control description: Use the local browser-connector CLI to inspect and operate the user's current Chrome tabs through the Browser Connector extension and Native Host. Use when the user asks to list open browser pages, read a current page, capture a screenshot, or perform controlled browser interactions from NextClaw.
Use this skill when the user wants the AI to inspect or operate Chrome pages that are already open in the user's normal browser.
This is a wrapped external tool skill:
keys, scroll, wait, and read captured page logs through the connector.
First check whether `browser-connector` is available:
command -v browser-connector browser-connector --version
If it is not installed, install the published package:
npm install -g @nextclaw/browser-connector
If global install is not appropriate, use `npx` for one-off diagnostics:
npx -y @nextclaw/browser-connector@latest --version
Prefer a stable installed binary for multi-step browser workflows because tab leases and Native Host IPC depend on consistent local state.
Use the one-step setup command first. If the current workspace is the NextClaw source repo and contains `packages/browser-connector/package.json`, prefer the local source setup script:
pnpm browser-connector:setup:open
Otherwise use the installed CLI:
browser-connector setup chrome --open --json
If `ready` is true, proceed to the workflow.
If `ready` is false, follow only the returned `nextSteps`. Usually the command already opened `chrome://extensions` and the extension directory; the user only needs to load the returned `nativeHost.extensionDir` as an unpacked extension. Then rerun the same setup command.
If `chrome-extension-capabilities` is false while `chrome-extension` is true, the CLI and Native Host are connected but Chrome is still running an older unpacked extension background script. Prefer:
browser-connector extension reload --reason "refresh extension capabilities after CLI update" --json browser-connector setup chrome --json
If `extension reload` itself returns `UNSUPPORTED_COMMAND`, the currently loaded extension is too old to self-reload. Reload it once in `chrome://extensions`, then rerun setup. Do not continue with newer commands until this check is true.
For local NextClaw source testing, rerun:
pnpm browser-connector:setup
For installed CLI testing, rerun:
browser-connector setup chrome --json
Use `doctor` only for troubleshooting or when setup did not become ready:
browser-connector doctor --json
Do not ask the user to manually run the full lower-level command chain unless debugging setup failure.
Always follow this order:
1. Open a new tab only when the user asks to visit a URL or the task requires a fresh page:
browser-connector tabs open "https://example.com/" --reason "<why opening>" --json browser-connector tabs open "https://example.com/" --reason "<why opening>" --foreground --json
`tabs open` keeps the new tab in the background by default so AI evaluation does not interrupt the user's active Chrome tab. Use `--foreground` only when the user explicitly asks to open and view the page now, or when the next action truly needs the new page to become active. `--background` is accepted as an explicit no-focus signal, but it is no longer required.
2. List tabs:
browser-connector tabs list --json
Use these helpers when the task depends on the currently focused tab or a specific returned tab:
browser-connector tabs selected --json browser-connector tabs get "<tabRef>" --json
If setup or doctor says the extension is stale after a local build or package update, reload it from the CLI:
browser-connector extension reload --reason "refresh extension after update" --json
3. Choose the target tab from the returned `tabRef`, title, URL, and active state. Never guess a `tabRef`.
4. Claim the tab:
browser-connector tabs claim "<tabRef>" --reason "<why this tab is needed>" --json
5. Read the page:
browser-connector page snapshot --lease "<leaseId>" --json
When locating a button, link, input, or custom clickable element without relying on screenshots, prefer structured candidates before choosing a selector:
br
Your long-term personal AI partner. NextClaw's mission is to be a good long-term partner to you. We are building toward a 1.0 that understands you, takes useful initiative, and continuously improves itself.
Use Agent Browser for real browser navigation, dynamic pages, and web interaction; also use it as a distinct browser-based path…
Turn a user request into a scheduled automation by configuring cron jobs, including session-bound follow-ups and periodic checks.
Use when the user asks to keep watching an external state, notify them when something changes or a condition is met, remember…
Use when deciding how to deliver an AI result: reply now, put durable news, reports, recommendations, or articles in the NextClaw…
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced…