Tools¶
Every tool is available to every client (#525): there are no capability groups or task
modes to configure. Which tools need your approval is set in the Kitsune extension's
options; Your tabs and approvals lists every check that limits the agent.
KITSUNE_CAPS, KITSUNE_PUBLISH and KITSUNE_MODE were removed in 0.8.0; a
configuration that still sets one fails at startup, so the limit it expected is not
silently dropped.
| Setting | Tools in tools/list |
The other tools |
|---|---|---|
Default (KITSUNE_SCRIPTING unset or 1) |
6: the code-first surface | Python API; direct recovery via browser_tools_call |
KITSUNE_SCRIPTING=0 |
30: the 27 core tools and 3 gateway tools |
Gateway search, call and publish |
On main the server publishes the 6-tool code-first surface,
including browser_run_python for trusted local Python composition. The 0.8.0 release
still publishes the previous fourteen-tool default.
Ordinary reads, inputs and waits use Python. browser_tools_call(name) describes a direct
recovery tool; supplying arguments executes it. Search and publication are absent.
Old direct names remain callable for compatibility but are not advertised.
Python has host file/network access, not a sandbox. See
Python scripting.
With KITSUNE_SCRIPTING=0 the server publishes the legacy list instead: the 25 tools of
Playwright MCP's default capabilities, with
the same names, descriptions, input schemas and annotations, as its core group (see
Core tools), with Kitsune's browser_resume, which continues a call that
stopped for you, and browser_ask_user, with which the agent asks you for what it cannot
do (#376), plus the gateway tools that reach the other
groups' tools.
The groups only sort the tools:
| Group | Tools for |
|---|---|
browse |
Scrolling, forward navigation, checkboxes, focus, form submits, real mouse clicks |
read |
Page text and Markdown, forms, DOM, links, images, metadata |
inspect |
Element bounds, computed styles, selector checks, highlights |
tabs |
Pinning, muting, zoom, windows, tab tags, keep-alive |
automation |
Batches, retries, workflows, parallel tabs, and resuming an interrupted batch |
network |
Downloads, request interception and capture |
admin |
Connection status, logs, audit, cache, policy |
storage, history |
Cookies, page storage, clipboard and saved sessions; history and bookmarks. History lookups also need the user to allow them in the extension's options |
The tool list names every tool in each group. browser_status (admin)
reports this server's mcp_tools: the surface (minimal or legacy), on the legacy
surface how many tools are unlisted, and its audit client and tab owner ids.
Finding tools without a restart¶
On the legacy surface (KITSUNE_SCRIPTING=0) tools/list has the 27 core tools and
three gateway tools, which reach every other tool in the same connection:
browser_tools_search(query, limit=5)finds the tools this server runs but does not list, best match first, each with its full description, input schema and annotations. An empty query lists their names by group.browser_tools_call(name, arguments)runs one and returns its own result, images included, and its error status.browser_tools_publish(names)adds tools, or whole groups, to this session'stools/listand sendsnotifications/tools/list_changed; clients that refresh on it can then call them directly.
The gateway never runs more than a direct call could. A call through browser_tools_call
takes the direct call's path, so argument validation, confirmation tokens, protected user
tabs, redaction
and file name roots apply the same way, and its audit entries record
via: {"gateway": "browser_tools_call", "tool": …}. Your client's permission prompt may
show only browser_tools_call and its conservative annotations (destructive,
open-world), not the tool it runs, so do not rely on per-tool client prompts for these
calls. browser_tools_publish changes only that session's list, never another session's.
Clients differ in whether they act on notifications/tools/list_changed; the notification
is not proof that the model sees the new tools, and browser_tools_call works either way.
This reaches tools that are already installed. Upgrading Kitsune still needs a restart.
The Kitsune-owned tools take tab_id to target background tabs; without it they act on
the current tab like the core tools. They share an action
contract (ref, wait, expect, confirm_token, first; confirm_token is the
approval fallback for clients without elicitation) documented on
browser_check; see the API reference and the
tool list.
Every tool includes MCP annotations. The core tools carry Playwright MCP's; the
Kitsune-owned ones have a human-readable title and read-only, destructive, idempotent,
and open-world hints, annotated for their most dangerous operation. Clients can use
these hints to inform permission prompts; enforcement depends on the client. The hints
are not enforced policy. The bridge enforces browser_set_policy
(readonly, allow/deny, and ask-before-act).
Core tools¶
The core tools other than browser_resume and browser_ask_user are Playwright MCP's, published verbatim from
src/kitsune/playwright_tools.json (captured from @playwright/mcp with
node scripts/update_playwright_tools.mjs), so a client or prompt written for Playwright
MCP works unchanged. They drive your own browser through the Kitsune extension and return
Kitsune's compact JSON results, not Playwright's Markdown. Where the two differ:
- Current tab. Tools act on the tab
browser_tabsneworselectmade current;selectdoes not switch your view. It takes any tab, yours and other clients' too, so the agent can read it; on a tab it cannot write, the result saysread_only: true. Kitsune's own tools called withouttab_id, andbrowser_batch,browser_retryandbrowser_workflowcommands that name notabId, act on the current tab too. Until there is one, reads act on the active tab, and writes and navigations that name no tab returnno_current_tabwithout sending anything (No current tab). An MCP server that restarts starts without a current tab; itsno_current_tabthen lists the open tabs its MCP client opened before, the most recent first, instate.ownTabs, and the hint names that tab, so the agent can pass it astab_id(to a core tool, which takes none, the hint names itsbrowser_tabsindex to select). The server does not pick one itself: the tab may belong to an earlier conversation. Persistent ownership survives bridge/extension restarts and browser session restore for the same client id; handed-off tabs return when their session ends (Tab owners). A tab a batch or workflownewTabopens, or an action on the current tab opens (a click on atarget=_blanklink, for example), becomes current, and the result names it incurrent_tab.browser_navigateandbrowser_navigate_backalso accept atab_idthat Playwright MCP's schema does not list.indexis the position inbrowser_tabslist, which also marksactiveand agent-ownedtabs, and thecurrentone regardless of ownership. Selection does not grant ownership (Protecting your tabs).closereturns the tabs after the change in the same form;newandselectreturn theindex, thetabthey made current in that form, andtab_count(#488).closetakesindexortab_id, else the current tab; without one it returnsno_current_tab(#481).tab_idis refused forlist,newandselect.browser_closecloses the current tab, never the browser; closing a user or other client's tab is refused withuser_tab_read_onlyby default. - Targets.
targetis a snapshot ref (e12) or a CSS selector. Actions require one actionable match (elseambiguous_target). Actions and scoped snapshots also accept a subset of Playwright selectors:text=(also/regex/),role=…[name="…"](also[name=/regex/]),internal:text=,internal:role=,internal:label=,:has-text(),:text-is(),:text(),:visible, CSS lists,>>chains (also starting at a ref, as ine12 >> xpath=..),nth=Nandxpath=(refused on pages holding redacted content); see Target selectors. Unsupported forms returnunsupported_selectorwith a hint, not a retryable missing target. Element screenshots use the same resolver and capture the exact selected node, including inside shadow roots. Refs survive newer observations while their nodes remain attached in the same document; navigation or replacement nodes require new refs. - Snapshots. Default core snapshots include redacted static text and resolved HTTP(S) link
URLs (same-origin ones as paths; a link repeating the previous sibling link's URL, or, first
under its parent, the page's, has no
/urlline). Returned inline they are capped at 12,000 characters, cut between blocks so a product card or paragraph is never split (a long navigation, banner or footer outsidemainis shown as its line and a… not shownmarker untilmainis listed), withtruncated: trueand a hint towardbrowser_find, a scopedtargetorfilename(which saves the whole snapshot; seebrowser_snapshot). Existing line clipping, structural collapsing and depth rules still apply: past the fifth of a run of similar items the snapshot shows- … N more similar items; snapshot e14 to list allwhen that hides at least three items whose lines total more than 600 characters (a run of up to seven, or of short items, is listed in full), and a snapshot withtargete14(the items' container) lists up to 100 of them.browser_findsearches collapsed items too. In the full toolset,text=Falseis compact andtext=Trueenables explicitly bounded readable output (12,000 final public chars). Explicit HTTPmaxCharsand post-action limits also apply after URL redaction; scoped snapshots remain useful for large pages. - Sliders and repeated keys.
browser_fill_formtype: "slider"andbrowser_type(withoutslowly) set a native<input type=range>directly. An ARIA slider or spinbutton (role=sliderorspinbuttonwith a numericaria-valuenowand no native input, the usual custom widget) is set as a user would: the extension focuses it and presses arrow keys (Home/Endfor an end) until itsaria-valuenowis the value, all in one call, and returns the finalvalue. If the value is outsidearia-valuemin/aria-valuemax, the call fails withvalue_not_reachedbefore any key; if it is not reached (the steps skip it, the widget stops moving, or 1,000 keys or 20 s run out) it fails the same way withstate.value(Action errors).browser_press_keyalso accepts arepeatcount (1–100) that Playwright MCP's schema does not list; the extension presses the key that many times in one call, a task apart. - Dialogs.
browser_handle_dialogsets how the current tab answers its next dialogs (Firefox answers dialogs synchronously, so one already open cannot be answered). - Uploads and drops. A synthetic click opens no file chooser, so
browser_file_uploadfills the file input last clicked (or the input inside it, else the page's only file input).browser_dropfiresdragenter/dragover/dropwith the files and data. - JavaScript.
browser_evaluateneeds the developer extension build and runs in the content-script context; the result is JSON-parsed. - Console and network.
browser_console_messagesstarts capture on first use, so earlier messages are missed.browser_network_requestslists the page's resource timing entries since it loaded; there are no headers or bodies, sobrowser_network_requestwithpartanswersnot_supported. - Screenshots.
browser_take_screenshotreturns an inline image;filenamesaves PNG or JPEG.typechooses the encoding; otherwise.jpg/.jpegfilenames infer JPEG, with PNG as the default. Other formats answernot_supported;scaleis ignored. - Not supported.
browser_emulate_mediaandbrowser_run_code_unsafeare listed but answernot_supported(retryable: false): an extension cannot override CSS media features, and there is no Playwright page to run code against. - File names. A relative
filenameis resolved againstKITSUNE_OUTPUT_DIRif set, else the firstfile://root the MCP client lists (MCProots, asked for on each call with afilename; no answer within 5 seconds counts as none), else the MCP server's working directory. Absolute names and~are used as given.saved_tois the absolute path written.
Ask-before-act holds still apply. On a client with elicitation the MCP server asks the
user and repeats a held call itself (see Approving held actions).
The core schemas have no confirm_token, the fallback for clients without elicitation; the
tools accept it anyway, so on such a client, after the user approves a held action, an agent
can repeat the call with confirm_token from the needs_user error.