mxyhi/ok-skills/kimi-webbridge
Claude Code and agent skill by mxyhi/ok-skills
- community
Checking that the SKILL.md file is still in the repository.
Kimi Browser Extension(Kimi 浏览器扩展,原 Kimi WebBridge)lets AI control the user's real browser — navigate, click, type, read, screenshot, and interact with any website using the user's actual login sessions. Use this skill whenever the user wants to interact with websites, automate browser tasks, scrape web content, or perform any action requiring a real browser. Also use when the user mentions "browser", "webpage", "open URL", "screenshot", asks to read/interact with any website, or wants a reusable CLI tool or script that automates a specific website. Use even for simple-sounding browser requests — the daemon handles all complexity.
Install
npx vskill@latest install mxyhi/ok-skills/kimi-webbridgeSKILL.md
The same SKILL.md was published earlier as mxyhi/ok-skills/kimi-webbridge.
Kimi Browser Extension (formerly Kimi WebBridge)
Control the user's real browser (with their login sessions) via a local daemon at http://127.0.0.1:10086 (the default address — see If a tool call fails for when it differs).
When the user asks to build a reusable CLI tool or script for a website (rather than do a one-off task), follow references/cli-creator/workflow.md. Its phases say when to read each of these:
references/cli-creator/site-exploration.md— the protocol for finding how each feature gets its datareferences/cli-creator/login-handling.md— when the site requires loginreferences/cli-creator/go-layout.md— when the CLI is written in Goreferences/cli-creator/companion-skill-template.md— the template for the skill that tells agents how to use the CLI
Tools
| Tool | Args | Returns | Note | ||||
|---|---|---|---|---|---|---|---|
navigate | url, newTab(bool), group_title | {success, url, tabId} | First call opens a tab — see Tabs. group_title sets the group's visible label | ||||
find_tab | url, active(bool) | {success, url, tabId, borrowed} | Re-select a tab this session opened; active:true borrows the tab the user is viewing — see Tabs | ||||
snapshot | optional ref; format:"aria" opts into text with optional max_chars (1–60000), or cursor to continue | Default {url, title, tree}; ARIA {url, title, tree_text} | Accessibility tree (text) — use this to read page content and locate elements | ||||
click | selector (@e ref or CSS) | {success, tag, text} | Synthetic el.click() | ||||
fill | selector, value | {success, tag, mode} | Works on <input>/<textarea> AND [contenteditable] (ProseMirror/Lexical/Slate). mode is "value" or "contenteditable" | ||||
evaluate | code (for await, wrap it in an async IIFE — top-level await is a SyntaxError) | {type, value} | |||||
cdp | method, params | raw CDP response | Raw chrome.debugger passthrough — what evaluate is to JS, cdp is to CDP. Low-level escape hatch for cases the tools above don't cover. Page.bringToFront is a last resort: while focus emulation is off on a tab, a call turns it on instead of activating the tab (the tab renders and takes real input without being switched to); only a call once emulation is on activates, and it never pulls Chrome over another app the user is in. Target.activateTarget is refused | ||||
screenshot | format(png\ | jpeg), quality(0-100), optional selector (@e/CSS), optional path | {format, path, sizeBytes, mimeType} | Returns a file path, not base64 — see Screenshots | |||
network | cmd(start\ | stop\ | list\ | detail), filter(URL substring, for list), requestId(for detail) | list: {count, requests:[{requestId, url, method, status, mimeType, completed}]}; detail: that request plus requestHeaders, requestBody, body (the response) | Capture is per tab, from start on. Call detail before stop — stopping releases the response bodies, and detail then returns bodyError instead of body | |
upload | selector, files(string[]) | {success, fileCount} | |||||
save_as_pdf | paper_format, landscape, scale, print_background, optional path | {path, sizeBytes, mimeType, pageTitle} | Render current page → PDF, returns a file path — see Save as PDF | ||||
list_tabs | — | {success, tabs:[{tabId, url, title, active, groupTitle}]} | Inspect tabs in the current session | ||||
list_browser_tabs | — | {success, tabs:[{tabId, windowId, url, title, active}]} | Inspect all tabs visible to this WebBridge connection, across windows; does not attach or focus a tab | ||||
attach_tab | tabId | {success, tabId, url, title, borrowed} | Attach a specific existing tab to this session without focusing it; borrowed tabs survive close_session | ||||
close_tab | — | {success, closed: bool} | Close the current tab in the session | ||||
close_session | — | {success, closed: int} | Close tabs opened by this session; borrowed tabs stay open. closed is the count. See Sessions for when to call |
Tabs and the current tab
Single-tab tools (snapshot, click, fill, screenshot, save_as_pdf) act on the current tab — the one you most recently opened with navigate, selected with find_tab, or attached with attach_tab.
- Opening pages: use
newTab:truewhen pages should coexist (comparing, cross-referencing); omit it to send the current tab to a new URL. - Going back to an earlier tab: call
find_tabto make a tab you opened earlier in this session the current one again. Pass the tab's URL — take it fromlist_tabsor the earliernavigateresult. Matching is by host:kimi.comalso finds awww.kimi.comtab, and the path is ignored. By defaultfind_tabsearches only this session's own tabs — it never reaches into the user's other tabs or windows. - Acting on a page the user already has open: call
list_browser_tabs, choose the tab by its URL/title andtabId, then callattach_tabwith that ID. This also works for tabs in other windows and does not change the user's foreground tab. The attached tab is borrowed and remains open afterclose_session. For the particular tab the user is currently viewing,find_tabwithactive:truestill works. - If
find_taberrors with "no tab matching … in this session", the page isn't open in this session —navigatewithnewTab:trueinstead.
Call Format
Every command carries a top-level session naming the current task — see Sessions below. The examples in later sections omit it only for brevity; in real calls always include it. Every reply is an envelope: {"ok":true,"data":…} on success (the Returns column above describes data) or {"ok":false,"error":{"code","message"}} on failure. The command format depends on the user's OS.
macOS / Linux — inline JSON is fine:
If the inline call fails — a shell quoting/syntax error from bash, or an HTTP 400 from the daemon — do not retry the same command unchanged. Resend the request as a file body:
- Write the JSON body to a uniquely-named temp file with your own file-write tool — never with shell
echo/heredoc, which mangles the JSON the same way. Use a fresh name per request (e.g./tmp/webbridge-req-<random>.json). - POST the file:
- Delete the temp file as soon as the request returns.
Windows (PowerShell / cmd) — the shell corrupts non-ASCII characters (Chinese etc.) carried inline in command arguments or pipes; they reach the daemon as ? and the text is unrecoverable. Send every request as a file body instead:
- Write the JSON body to a uniquely-named temp file with your own file-write tool — never with shell
echo/heredoc, which corrupts non-ASCII the same way. Give every request its own filename with a random suffix (e.g.webbridge-req-<random>.json) so concurrent requests never share a file and overwrite each other. - POST the file with
curl.exe— alwayscurl.exe, never barecurl, which Windows PowerShell aliases toInvoke-WebRequest:
- Delete the temp file as soon as the request returns — don't leave request bodies on disk.
Sessions
One task = one session = one tab group. A session collects every tab the task opens into one tab group, so the user sees a single group for "what the agent is doing right now". Pass it as a top-level field of the request body (not inside args).
- Pick one session name at the task's start, put it on every command, and never switch mid-task — even across different sites. Switching session names per site is the #1 cause of fragmented tab groups.
- Name it after the task, not the site (
camping-research,phone-compare). Use multiple sessions only for genuinely unrelated parallel tasks. group_titleis the human-readable group label — write it in the user's language, on the firstnavigateof the task.- When you create the group (the first
navigateof a task), tell the user once that this task's pages are collected under group «title», and that you'll close them whenever they ask.
Closing is always user-initiated: call close_session only when the user explicitly asks ("close those", "clear the tabs"). It clears the whole group in one call.
Screenshots
The daemon writes the image to disk and returns {format, path, sizeBytes, mimeType} — never base64, since the model can't read raw image bytes. Take the .path and open it with the Read tool to actually see it.
A caller-supplied path is honored verbatim (parent dirs created, existing file overwritten) — use a unique name to avoid clobbering. save_as_pdf follows the same rule.
Prefer snapshot over CSS/JS selectors
snapshot returns interactive elements with @e refs bound to the observed DOM nodes. Copy refs as opaque strings into click/fill. Re-reading a page preserves refs for the same nodes; a removed node or changed document/connection requires a fresh snapshot. Refs never automatically select a replacement by name.
For bounded text reads, call snapshot with format:"aria" and optionally max_chars (default 60000). This bounds tree_text, not metadata. If truncated:true, pass next_cursor back as cursor (without ref) to continue the same saved observation; continued:true identifies subsequent chunks. Concatenate tree_text without extra separators: chunks can split long lines, and budgets count UTF-16 code units without splitting surrogate pairs (a budget of 1 errors when the next character needs 2). Cursors expire after five minutes, cache eviction, navigation or connection reset; start a new snapshot on an expired-cursor error. Same-document content edits do not refresh saved text. The cache holds at most eight snapshots / eight million code units; observations above four million fail explicitly, so narrow the read. Alternatively, use find with a specific query to search the full main-document accessibility tree, then snapshot with the chosen match's ref to read its subtree. Search results carry ancestor paths to distinguish same-name matches. Scope and budget do not reassign existing refs; iframe content is not included in this search.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingkimi-webbridge/SKILL.md
Popularity
- Repository stars
- 455
- Repository forks
- 40
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mxyhi/ok-skills/kimi-webbridge)