mxyhi/ok-skills/kimi-webbridge

Claude Code and agent skill by mxyhi/ok-skills

Trust tier 2
  • community
LLM review pending
Source check pending

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-webbridge

SKILL.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 data
  • references/cli-creator/login-handling.md — when the site requires login
  • references/cli-creator/go-layout.md — when the CLI is written in Go
  • references/cli-creator/companion-skill-template.md — the template for the skill that tells agents how to use the CLI

Tools

ToolArgsReturnsNote
navigateurl, newTab(bool), group_title{success, url, tabId}First call opens a tab — see Tabs. group_title sets the group's visible label
find_taburl, active(bool){success, url, tabId, borrowed}Re-select a tab this session opened; active:true borrows the tab the user is viewing — see Tabs
snapshotoptional ref; format:"aria" opts into text with optional max_chars (1–60000), or cursor to continueDefault {url, title, tree}; ARIA {url, title, tree_text}Accessibility tree (text) — use this to read page content and locate elements
clickselector (@e ref or CSS){success, tag, text}Synthetic el.click()
fillselector, value{success, tag, mode}Works on <input>/<textarea> AND [contenteditable] (ProseMirror/Lexical/Slate). mode is "value" or "contenteditable"
evaluatecode (for await, wrap it in an async IIFE — top-level await is a SyntaxError){type, value}
cdpmethod, paramsraw CDP responseRaw 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
screenshotformat(png\jpeg), quality(0-100), optional selector (@e/CSS), optional path{format, path, sizeBytes, mimeType}Returns a file path, not base64 — see Screenshots
networkcmd(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
uploadselector, files(string[]){success, fileCount}
save_as_pdfpaper_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_tabtabId{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:true when 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_tab to make a tab you opened earlier in this session the current one again. Pass the tab's URL — take it from list_tabs or the earlier navigate result. Matching is by host: kimi.com also finds a www.kimi.com tab, and the path is ignored. By default find_tab searches 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 and tabId, then call attach_tab with 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 after close_session. For the particular tab the user is currently viewing, find_tab with active:true still works.
  • If find_tab errors with "no tab matching … in this session", the page isn't open in this session — navigate with newTab:true instead.
bash
curl -s -X POST http://127.0.0.1:10086/command \
-d '{"action":"find_tab","args":{"url":"https://www.kimi.com","active":true},"session":"k26-research"}'
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:

bash
curl -s -X POST http://127.0.0.1:10086/command \
-H 'Content-Type: application/json' \
-d '{"action":"navigate","args":{"url":"https://example.com","newTab":true,"group_title":"My task"},"session":"my-task"}'

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:

  1. 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).
  2. POST the file:
bash
curl -s -X POST http://127.0.0.1:10086/command -H 'Content-Type: application/json' --data-binary @/tmp/webbridge-req-<random>.json
  1. 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:

  1. 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.
  2. POST the file with curl.exe — always curl.exe, never bare curl, which Windows PowerShell aliases to Invoke-WebRequest:
powershell
curl.exe -s -X POST http://127.0.0.1:10086/command -H "Content-Type: application/json" --data-binary "@$env:TEMP\webbridge-req-<random>.json"
  1. 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_title is the human-readable group label — write it in the user's language, on the first navigate of the task.
  • When you create the group (the first navigate of 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.
bash
# First tab: set session + a human label (in the user's language)
curl -s -X POST http://127.0.0.1:10086/command \
-d '{"action":"navigate","args":{"url":"https://www.kimi.com","newTab":true,"group_title":"K2.6 feature research"},"session":"k26-research"}'
# Another site, same task → same session → joins the same group automatically
curl -s -X POST http://127.0.0.1:10086/command \
-d '{"action":"navigate","args":{"url":"https://www.moonshot.cn","newTab":true},"session":"k26-research"}'

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.

bash
# Default: PNG of the visible viewport, daemon picks a temp path
curl ... -d '{"action":"screenshot","args":{}}'
# Options (each independent): JPEG quality, element-only via @e/CSS selector, custom output path
curl ... -d '{"action":"screenshot","args":{"format":"jpeg","quality":60}}'
curl ... -d '{"action":"screenshot","args":{"selector":"@e123"}}'

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mxyhi/ok-skills/kimi-webbridge/badge)](https://verified-skill.com/skills/mxyhi/ok-skills/kimi-webbridge)

Something wrong with this skill or its page? Tell us.