vsl-mcp-server
v1.4.14VSL MCP Server — Model Context Protocol integration for AI agents (Claude Desktop, Cline, TaoCoder)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
vsl_get_snapshot
Get the current VSL snapshot of the page. Returns a VSL JSON with the semantic structure of elements. VSL (Visual Scene Language) is a JSON representation of the page where each element has: id (unique identifier, e.g. btn_123), type (button/input/link/text/image), text (text content), bbox ([x,y,width,height]), children (nested elements). Example: { viewport:{width:1920,height:1080}, objects:[{id:btn_1,type:button,text:Sign in,bbox:[100,200,80,30]},{id:inp_2,type:input,text:,bbox:[100,250,200,30]}] }. Usage: get the snapshot, find the desired element by id, then use vsl_execute_action to inte…
| Parameter | Type | Description |
|---|---|---|
detail_level | string | Snapshot detail level. 'low': interactive elements only (buttons, links, inputs). 'medium': interactive + containers (default). 'high': all objects (full DOM). Default: 'medium'. |
full | boolean | Full mode: returns the entire document without filters (replacement for the removed full snapshot tool) |
ttl | number | Cache TTL in milliseconds (default: 5000 = 5s). Set to 0 to disable caching. |
url | string | Page URL (optional, if not specified — uses the current page) |
vsl_execute_action
Execute an action on a VSL element. Find the element by id in the snapshot (vsl_get_snapshot), then call this action. Supported actions: click, type, fill, clear, select_text, copy, cut, paste, delete_text, scroll, select, hover, focus, blur, check, uncheck, press, download, upload, drag, drop, submit, reset, open, close, expand, collapse, wait, go_back, go_forward, refresh. Text editing: select_text (value "all" or "start:end"), copy, cut, paste (native Ctrl/Meta+V at cursor), delete_text. "select" still means choosing an <option>, not selecting text. BROWSER tool: acts in the VSL browser wit…
| Parameter | Type | Description |
|---|---|---|
action * | string | Action name (click, type, fill, clear, select_text, copy, cut, paste, delete_text, scroll, select, hover, focus, blur, check, uncheck, press, download, upload, drag, drop, submit, reset, open, close,… |
target_id * | string | Target element ID in VSL JSON |
return_state | boolean | If true, returns diff and snapshot after the action. Useful for tracking DOM changes without an extra snapshot call. Default: true — always return state to save agent steps. Set to false to disable. |
save_path | string | Path to save the downloaded file (only for download action) |
timeout | number | Download completion timeout in ms (only for download action) |
value | string | Value for the action (e.g. text for type/fill, option for select). For select_text/delete_text: "all" or "start:end"; for paste: text to insert at cursor. |
vsl_clear_cache
Clear the VSL snapshot cache. Use when you need a fresh snapshot from scratch (e.g. after significant page changes or when switching to a different site). Example: {}. The next vsl_get_snapshot call will create a new snapshot.
vsl_get_visual
Get a visual fragment (screenshot) of an element in base64 WebP format. Use for elements that are hard to classify by text alone (icons, charts, custom widgets). Returns {mediaType:image/webp, data:base64data}. Example: {element_id: img_5}. Supports iframe elements: use composite ID format iframe_N:element_Y (e.g. iframe_0:btn_1) to screenshot elements inside iframes. Parameter auto_refresh=true automatically refreshes the snapshot before searching for the element. IMPORTANT: works only with IDs from vsl_get_snapshot (browser DOM). Does NOT work with IDs from vsl_read_page (semantic IDs) — u…
| Parameter | Type | Description |
|---|---|---|
element_id * | string | Element ID in VSL JSON |
auto_refresh | boolean | If true, automatically refreshes the snapshot before searching for the element. Useful after navigation or actions that modify the DOM. Default: false. |
vsl_read_page
Read web pages. TWO PATHS: (1) HTTP path (default, fast) — a plain Node fetch WITHOUT the browser: it sends NO cookies, so it reads as an ANONYMOUS visitor (the user sign-in is NOT used) and the visible browser tab does NOT change; (2) BROWSER path — renders the page in the VSL browser using the signed-in profile cookies, and the page really opens in the agent tab. By default the strategy is automatic: static pages go via HTTP, SPAs are rendered via browser, and a failed HTTP request (403/404/timeout) falls back to the browser. Set use_browser=true to FORCE the browser path — required fo…
| Parameter | Type | Description |
|---|---|---|
url * | string | Page URL to read |
detail_level | string | Snapshot detail level (default medium): low — interactive elements only, medium — interactive + containers, high — all objects |
readable | boolean | Readable mode: filter noise (nav, footer, cookie banners) for clean content |
use_browser | boolean | Force the BROWSER path (default false). true — render the page in the VSL browser with the signed-in profile cookies (the page opens in the agent tab) and skip the HTTP request entirely. Use it for… |
vsl_get_text_block
Get the full text by txt_ref from lazy text loading (M1.7). When an element's text exceeds 200 characters, only txt_preview (first ~50 characters) and txt_ref (e.g. tb_001) are stored in the VSL JSON. Use this tool to retrieve the full text. Example: {block_id: "tb_001"}. Returns {block_id, text} with the full content.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | Text block ID from the txt_ref field of a VSL object (format: tb_xxx) |
vsl_click_coordinates
Perform multiple clicks at coordinates relative to a target element. Coordinates (x, y) are specified in pixels from the top-left corner of the element (use bbox from snapshot). Supports delays between clicks. Returns diff + snapshot + screenshot after all clicks. Example: {target_id: "iframe_2", clicks: [{x: 50, y: 50, delay_after_ms: 500}, {x: 150, y: 50}]}.
| Parameter | Type | Description |
|---|---|---|
clicks * | array | Array of clicks. Each click: {x: number, y: number, delay_after_ms?: number}. Coordinates in pixels from the top-left corner of the element. |
target_id * | string | Element ID in VSL JSON (e.g. iframe_2 for reCAPTCHA challenge iframe) |
return_state | boolean | If true (default), returns diff + snapshot + screenshot after all clicks. |
vsl_manual_login
Open a VISIBLE window of the SAME VSL browser profile (~/.vsl/browser-profile) so the user can sign in MANUALLY. Captcha, 2FA and anti-bot challenges are solved by the human — no automatic captcha bypass. Actions: open (open the login page in a visible window and return the link to the user; url is required for this action), status (check the sign-in signal without exposing secrets), finish (save the result and invalidate snapshot caches of all sessions). Cookies and localStorage stay in the shared profile, so all BROWSER tools (vsl_navigate, vsl_get_snapshot, vsl_execute_action, vsl_get_vis…
| Parameter | Type | Description |
|---|---|---|
action | string | Action to perform (default: open). open — visible login window + link for the user; status — check the sign-in; finish — save the result. |
restore_headless | boolean | Only for finish: return the browser to headless (default false — the visible window stays alive, so sessionStorage and session-only cookies survive). |
success_selector | string | CSS selector that proves the user is signed in (e.g. [data-testid=avatar]). No cookie or storage values are read. |
success_url_pattern | string | Substring of the page URL that proves the user is signed in (e.g. /dashboard). |
takeover | boolean | Only for open (default false): if VSL is connected via CDP to a HEADLESS VSL browser, close it and reopen it visible on the same profile. Without it the tool returns an error with instructions. A real… |
timeout_ms | number | Manual login timeout in ms (default 180000 from browser.manualLogin.timeoutMs, clamped to 1000..600000). |
url | string | Login page URL (required for action=open, http/https only). Returned to the user without query and hash. |
wait | boolean | Only for open: block until the sign-in signal is found or the timeout expires (default false — non-blocking). |
vsl_browser_attach
Attach the agent session to an EXISTING tab of a Chrome started with --remote-debugging-port, instead of a new anonymous tab created by VSL. Actions: list_tabs (tabs of ONE port and who owns them), attach (bind an existing tab to this session and take a cross-process lease on it; target_id is required for this action), detach (release the lease and unbind — the user tab is NEVER closed), status (default, safe: current attach state only, no network and no port resolution). Tab ownership is protected by a cross-process lease (~/.vsl/locks): a tab owned by another live agent is refused, force:t…
| Parameter | Type | Description |
|---|---|---|
action | string | Action to perform (default: status — safe, no side effects). list_tabs — tabs of one port with ownership; attach — bind an existing tab (needs target_id); detach — unbind and release the lease… |
confirm | boolean | Explicit consent: required to attach to a real (non-headless) browser unless browser.attach.allowUserBrowser:true, and required together with force:true. |
force | boolean | Only for attach: take over a tab owned by ANOTHER live agent. Requires confirm:true as well. |
port | number | CDP port of the browser to inspect/attach (1..65535). If omitted, resolved read-only: browser.attach.port > explicitly set browser.cdpPort/VSL_CDP_PORT > DevToolsActivePort of the VSL profile > 9222.… |
target_id | string | CDP target id of the tab (required for action=attach, taken from list_tabs). |
vsl_browser_tabs
Manage tabs of the CURRENT browser of this process. Links with target=_blank, window.open and PDF documents often open a NEW tab: if a click seems to do nothing, call action:list to see new tabs. Actions: list (default, safe: tracked tabs and pending downloads, the browser is NOT launched), select (switch the session to a tab and reset VSL ids — tab_id is required), wait_new (wait for a tab opened by the last click, returns a warning on timeout), close (only closes VSL's OWN tabs and NEVER tabs of an attached user browser; closing the ACTIVE tab requires confirm:true). There is NO automatic…
| Parameter | Type | Description |
|---|---|---|
action | string | Action to perform (default: list — safe, no side effects). select switches the session to a tab and resets VSL ids; wait_new waits for a tab opened by the last click; close only closes VSL's own tab… |
confirm | boolean | Only for close: explicit consent required to close the ACTIVE tab of this session. |
opener_tab_id | string | Only for wait_new: accept only tabs opened by this tab (opener_tab_id from action:list). |
since_ms | number | Only for wait_new: epoch ms lower bound for the tab opening time (default: the moment of the call — pass the time BEFORE the click if the click already happened). |
tab_id | string | Tab id from action:list (required for select and close), e.g. tab_2. |
timeout_ms | number | Only for wait_new: how long to wait for a new tab (500..60000, default browser.tabs.newTabTimeoutMs = 5000). |