Kitsune
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| KITSUNE_HOME | No | Data directory (0700) | ~/.kitsune |
| KITSUNE_TOKEN | No | Override the token in ~/.kitsune/token | |
| KITSUNE_WS_PORT | No | Extension WebSocket. Change WS_URL in extension/background/background.js too | 47652 |
| KITSUNE_HTTP_PORT | No | Bridge HTTP API | 47651 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Shared browser. Every tab is readable; writes, scroll, hover and focus need your own tab. browser_tabs request asks the user to hand over a tab (DOM writes, no native input). browser_tabs new opens a background current tab; select makes any tab current without switching the user's view. Until new/select (an MCP restart clears current), reads use the viewed tab and writes/navigation need tab_id. Prefer page controls, else browser_ask_user, to hand a step to the user. Use browser_run_python for reads, input and waits. Group known actions and return only the next needed observation; inspect before choosing unknown targets. Scripts do not change selection and do not need it: their tab defaults to the viewed tab, browser.tab(id) reaches the others. Use browser_tools_call only for direct recovery/approval, not the ordinary browsing loop.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| browser_resumeA | Continue a call whose result has call and resume_token (a needs_user stop, batch, parallel or workflow); nothing that ran ok is sent again. |
| browser_ask_userA | Ask the user to do what you cannot: sign in, pass a CAPTCHA (human_check), click a control that ignores your clicks (trusted_input), or choose (other). |
| browser_take_screenshotA | Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions. |
| browser_tabsC | Manage tabs; request a handoff. |
| browser_tools_callA | Recover one operation after a Python script stops for user approval/help. Pass an existing direct tool name alone to inspect its schema; pass arguments ({} for no args) to execute it with normal validation, approvals and error handling. Never replay completed script work. Use browser_run_python for ordinary reads, actions and waits. |
| browser_run_pythonA | Browse with Python: read, click, scroll, hover, drag, type, fill and wait in one call. Trusted local Python with host file/network access, NOT a sandbox. The supplied browser uses this client's session and permissions. time, re and json are preloaded; import other modules yourself. kitsune.connect() is not needed. Variables reset each call; tabs persist. tab is the MCP-selected Tab, else the tab the user views (None with several windows). Scripts need no browser_tabs list/select first: browser.tabs() lists tabs and browser.tab(id) reads or acts on any of them. browser.tabs() returns list[dict] (id, url, title, owned); browser.tab(id) wraps a tab ID, NOT a list index. browser.new_tab(url) returns a Tab; scripts do not change MCP selection. Return JSON via result or print selected output. Group actions whose targets are already known, then read the needed result once. Do not guess refs or replay a failed script. Refs die when an action loads a new document; only a link's ref is followed to the one same link with the same destination there (reported as remapped). Else use a selector or new snapshot. Print/result share 16,000 UTF-8 bytes: scope reads, filter locally, return evidence with coverage. Action/scoped-snapshot targets: refs like e12 or supported selectors, not DOM ref attributes. tab.snapshot(target=None, max_depth=None, text=True) includes visible text; no depth/boxes args. tab.find(query) searches descriptions, not text/regex; filter scoped reads in Python for those. tab.query(selector, fields=['text', 'href'], limit=20) is CSS-only, current document; no refs. Its href/src are absolute URLs; tab.navigate(url) also takes a path like '/deals/48'. tab.text(); tab.forms(); tab.info(). tab.click(target); tab.double_click(target); tab.hover(target); tab.drag(source, destination). tab.scroll('down', 700, target=None) scrolls window or element; also up/left/right/top/bottom. tab.fill(target, value) replaces; tab.type(target, text): fields append, editors insert at caret. tab.fill_form({'#name': 'Ada'}); tab.check(target, True); tab.select_option(target, value, by_text=False). tab.press('Enter', target=None, modifiers={'ctrl': True}); omitted target uses focus, not the last target. tab.navigate(url); tab.back(). tab.wait_for(text='Done', timeout=10000) or target/url/text_gone (one condition, timeout in ms). wait_for(target=...) accepts CSS/refs, not :has-text or text=/role=; actions may use those. Example: tab.fill('e12', 'Ada'); r = tab.click('e15'); result = r['snapshot']. click/fill/type/check/select_option/press/hover/navigate return what changed, with refs, in r['snapshot'] (the new page after a navigation; max 4,000 chars). A script that prints nothing and sets no result returns its last action's snapshot. Call tab.snapshot() only if that is not enough. help(tab.scroll) prints a specific method's signature. Prefer this API over page evaluate. Limits: 16 KB output/result, 100 API calls, fresh variables, no top-level await. A failed read or wait_for raises KitsuneError (TimedOut on a timeout); try/except may catch it. Any other failed call, and any needs_user or policy refusal, stops even if caught; earlier writes remain. For needs_user use the failed operation's direct tool via browser_tools_call, then run ONLY remaining work. Never put confirm/resume tokens in scripts. Use browser_tabs for handoff (request), browser_ask_user for human help, and browser_take_screenshot for images. For a page dict t from browser.tabs(), use browser.tab(t["id"]).snapshot(text=True). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool has a clearly distinct role: Python execution for browsing, human assistance, resuming stopped calls, tab/handoff management, screenshots, and recovery of direct tool operations. Although browser_run_python is broad, the descriptions explicitly route tab handoff, human help, screenshots, and recovery to the other tools.
All names use a consistent browser_ prefix and snake_case, making the set predictable. A few names are noun-only or verb-only (browser_tabs, browser_resume), so it is not a strict verb_noun pattern throughout.
Six tools is well-scoped for a browser automation server: one broad execution surface plus focused support tools for user interaction, resumption, tabs, screenshots, and recovery. No tool appears redundant or excessive.
The set covers the core browser workflow: executing page actions, reading results, managing tabs, handling human interrupts, resuming calls, and capturing screenshots. Minor direct-operation gaps are handled through browser_run_python or browser_tools_call rather than standalone primitives.