MCP Tools Master Reference — Weavetab Docs
Official Weavetab documentation guide for Tools. Official documentation and technical reference for MCP Tools Master Reference from Weavetab, the local-...
---
title: "MCP Tools (40 Tools)"
description: "Complete reference of all 40 Weavetab automation tools."
product: mcp
section: tools
icon: Wrench
slug: tools
---
# MCP Tools Master Reference
Weavetab exposes **40 built-in MCP tools** for direct in-process CDP browser automation, visual inspection, desktop app orchestration, zero-API CAPTCHA solving, and physical input dispatch.
Every tool adheres to a strict contract:
- **Zod schema validation** for all runtime arguments
- **`withSecurity()` pipeline** enforcing rate limits, domain policies, and RBAC roles
- **Structured audit logging** via `logAction()`
- **Zero-waste token models** using volatile `w:NN` ref IDs, semantic deltas, and DOM pruning
---
## Tool Directory
| # | Tool Name | Category | Description |
| :--- | :--- | :--- | :--- |
| 1 | `browser_map` | Vision & Reading | DOM snapshotter with volatile `w:NN` ref IDs, cached map reuse, `depth: 0` DOM init, delta diffing, pruning, and AX tree fallback. Supports `app`. |
| 2 | `browser_navigate` | Navigation & Environment | Navigates to a URL with blocklist checks, network idle wait, Electron-safe defaults, and non-empty title fallback. Supports `app`. |
| 3 | `browser_click` | Input & Interaction | Physical click engine using Bézier Ghost Cursor kinematics with 5-layer targeting fallback and opt-in `include_map`. Supports `app`. |
| 4 | `browser_type` | Input & Interaction | Keystroke dispatch with humanized temporal jitter, exact ref/selector targeting, stuck-input breaking, and `clearFirst`. Supports `app`. |
| 5 | `browser_type_secret` | Input & Interaction | Blind credential injection from `secrets.json` (blocks empty-hostname URLs like `file://`/`about:blank`) without exposing values to LLM context. Supports `app`. |
| 6 | `browser_key` | Input & Interaction | Presses native key combinations (`Enter`, `Tab`, `Escape`, `Ctrl+C`, `Cmd+K`, etc.) with printable text payloads and Electron-safe Enter handling. Supports `app`. |
| 7 | `browser_scroll` | Input & Interaction | Directional and element-relative smooth scrolling via CDP wheel events; auto-scrolls off-screen target containers into view. Supports `app`. |
| 8 | `browser_dialog` | Dialog & Human Oversight | Accepts, dismisses, or responds to JavaScript `alert`, `confirm`, and `prompt` dialogs with deduplicated session listeners. Supports `app`. |
| 9 | `browser_burst` | Mission & Automation | Atomic multi-step action pipeline execution in a single JSON-RPC round-trip (`app` propagated in `batch` mode). Supports `app`. |
| 10 | `browser_tabs` | Tabs & Windows | Full tab & window CRUD lifecycle (`open`, `switch`, `close`, `consolidate` with Tab Armor + URL normalization, `heal`). Specify `app` for desktop apps. |
| 11 | `browser_wait` | Wait, Timing & Safety | Blocks execution until DOM element, text, URL pattern, network idle, or stability is met (returns `success: false` on timeout). Supports `app`. |
| 12 | `browser_captcha` | Wait, Timing & Safety | Autonomous zero-API solving of Turnstile, reCAPTCHA, GeeTest, and hCaptcha challenges. Supports `app`. |
| 13 | `browser_thoughts` | Dialog & Human Oversight | Visual agent-to-user status HUD overlay (feedback banner or interactive question modal, 120s default timeout). |
| 14 | `browser_pointer` | Input & Interaction | Precision mouse control for hover flyouts (`hover_chain`), clicks, double-clicks, and drag-and-drop with `buttons: 1` and `end_ref` verification. Supports `app`. |
| 15 | `browser_select` | Input & Interaction | Selects single (`value`) or multiple (`values`) options in native `<select>` or custom ARIA/Radix/Shadcn dropdowns, or highlights text ranges (`mode: "text"`). Supports `app`. |
| 16 | `browser_fill` | Input & Interaction | Smart multi-field form batch completion across text inputs, radios, checkboxes, selects, and `grid_data` spreadsheets (`AA`+ columns). Supports `app`. |
| 17 | `browser_highlight` | Canvas & Visual Overlays | Zero-token visual CDP overlay highlights with `textContent` XSS safety and validated colors. Supports `app`. |
| 18 | `browser_upload` | Input & Interaction | File input attachment bypassing OS pickers via CDP `DOM.setFileInputFiles` with cached ActionMap reuse. Supports `app`. |
| 19 | `browser_find` | Vision & Reading | Fast in-page text search via a leaf-optimized TreeWalker returning clean CSS selectors with secret redaction on matched labels. Supports `app`. |
| 20 | `browser_storage` | Storage & Cookies | Validated `localStorage`/`sessionStorage` CRUD with secret redaction on `get`/`list` and 2,000-char per-value cap on `list`. Supports `app`. |
| 21 | `browser_network_intercept` | Network & Security | Escaped glob request mocking/blocking, Response-stage passthrough, clean listener teardown, and TLS/timing telemetry. Supports `app`. |
| 22 | `browser_console` | Vision & Reading | Reads/clears buffered console logs (`0`/`false` preserved, noise filtered across all paths, secrets redacted, 1,000-char entry cap). Supports `app`. |
| 23 | `browser_pdf` | Output & Media | Prints the active page to PDF with basename path-traversal guards, auto `.pdf` suffix, scaling, landscape mode, and secret masking. Supports `app`. |
| 24 | `browser_eval` | Script Evaluation | Evaluates JS in page context, auto-invokes bare zero-arg functions (`() => ...`), and recursively redacts secrets across objects/arrays. Supports `app`. |
| 25 | `browser_cookies` | Storage & Cookies | Cookie CRUD via CDP Network domain (`get` \| `list` \| `set` \| `delete`) with secret redaction on read and real delete error reporting. Supports `app`. |
| 26 | `browser_canvas` | Canvas & Visual Overlays | Export canvas pixels as Base64 PNG or execute coordinate drag paths (`buttons: 1`). Supports `app`. |
| 27 | `browser_scrape` | Vision & Reading | Structured data extraction via CSS or XPath selectors with unified retry preserving `multiple: false`, live `.value`, and secret redaction. Supports `app`. |
| 28 | `browser_snapshot` | Vision & Reading | Capture or restore complete MHTML snapshots with MHTML secret redaction, verified restore paths, and `pathToFileURL()`. Supports `app`. |
| 29 | `browser_screenshot` | Vision & Reading | Visual viewport or full-page capture (PNG/JPEG/base64) with secret masking and accurate scaled dimensions on >1280px viewports. Supports `app`. |
| 30 | `browser_viewport` | Navigation & Environment | Configures viewport dimensions, DPR, mobile mode, real CDP touch emulation, color scheme (`no-preference` clear), and Electron-safe reset. Supports `app`. |
| 31 | `browser_clipboard` | Dialog & Human Oversight | System clipboard R/W (text and/or base64 image), native write priority, macOS `Cmd+V` paste, and secret redaction on read. Supports `app`. |
| 32 | `browser_inspect` | Vision & Reading | Parallel CDP element inspection returning computed styles, box model, and event listeners with Shadow DOM fallback. Supports `app`. |
| 33 | `browser_automation` | Mission & Automation | Injects persistent background scripts with clean new-document teardown on `stop`, 100-entry mailbox cap, and recursive redaction on `poll`. Supports `app`. |
| 34 | `browser_recording` | Output & Media | Video screencast recording (`.webp`, `.gif`, `.webm`, `.mp4`) with `sessionId` path-traversal validation and listener cleanup on error. Supports `app`. |
| 35 | `browser_detect` | Tabs & Windows | CRITICAL INITIALIZATION TOOL. Detects local browsers and configured desktop apps (case-insensitive `app` match) with status, tabs, and port. |
| 36 | `browser_performance` | Performance & Vitals | Retrieves CDP metrics (`Performance.enable()`), parallel Core Web Vitals (FCP, LCP, CLS) with observer teardown, and single-eval memory/resource timings. Supports `app`. |
| 37 | `browser_office` | Office Documents | Parses Word (`.docx`), Excel (`.xlsx`), PDF, and CSV files (25MB cap, native `FileReader`, ZIP `word/`/`xl/` sniffing, secret redaction). Supports `app`. |
| 38 | `browser_emulate` | Navigation & Environment | Emulates validated network presets, CPU multipliers (`>= 1`), geolocation, User-Agent, and color scheme (`no-preference` clear). Supports `app`. |
| 39 | `browser_checkpoint` | Storage & Safety | Snapshot and restore browser state (`mode: 0o600` files, bounded restore load wait) into named checkpoints for rollback. Supports `app`. |
| 40 | `browser_pattern_learn` | Self-Learning & Heuristics | Read, register, update, and record execution outcomes for named workflow patterns and site quirks per origin. Use `action: "get"` to inspect site profiles. |
---
## 1. Vision & DOM Reading
### `browser_map`
High-density DOM tree snapshotter with volatile `w:NN` ref IDs. The foundational tool for reading and understanding page structure with zero prompt waste.
**Core 3.0 Capabilities:**
- **Entity & Container Binding**: Binds action buttons/inputs directly to parent cards, rows, or list items under `┌ [Container Header]` trees.
- **Active Modal & Dialog Hoisting**: Automatically detects and isolates active dialogs/modals at the top of the map under `╔═ ACTIVE DIALOG: "..." ═╗`.
- **Nav & Footer Cluster Collapsing**: Compresses cascades of repetitive navigation/footer links (4+ links) into compact `[w:5…w:24] 20 links: "Home" … "Terms"` summaries.
- **High-Density Unified Grammar**: Single-line format distinguishing `val:"..."`, `ph:"..."`, `FOCUSED`, `checked`, and `disabled` states.
**Parameters:**
| Parameter | Type | Description |
|---|---|---|
| `delta` | `boolean?` | Diff mode: returns only elements added, removed, or modified since the previous snapshot. |
| `prune` | `boolean?` | One-shot semantic compression: collapses repetitive elements and strips non-interactable noise. |
| `scope` | `string?` | Restricts extraction to a semantic landmark or selector: `"navigation"`, `"main_content"` (alias `"main"`), `"sidebar"`, `"form"`, `"modal"`, `"utility"`, or a CSS selector. |
| `query` | `string?` | Filters elements by accessible name, ARIA role, or label substring. |
| `visual` | `boolean \| "auto"?` | Set-of-Marks visual grounding. Injects numbered badges `[1]…[N]` and returns an annotated screenshot. Use `"auto"` for canvas/WebGL pages with < 5 DOM elements. |
| `ax_tree` | `boolean?` | Uses Chromium Accessibility Tree directly (essential for closed Shadow DOM and canvas SPAs). |
| `full` | `boolean?` | Return full markdown table format with bounding boxes instead of compact list. |
| `force` | `boolean?` | Force full DOM map rebuild even if loop detection says nothing changed. Bypasses skip guard and resets loop strikes. |
| `tab_id` | `string?` | Read a specific background tab ID (the `tabId` returned by `browser_tabs`). |
| `app` | `string?` | Target desktop Electron app name (e.g. `"discord"`, `"vscode"`, `"figma"`). |
```typescript
// Standard high-density read
browser_map()
// Visual grounding for canvas/WebGL/Figma pages (auto-activates when DOM < 5 elements)
browser_map({ visual: "auto" })
// Scope specifically to open modal or active form
browser_map({ scope: "modal" })
browser_map({ scope: "form" })
// Efficient delta polling for changes
browser_map({ delta: true })
```
---
### `browser_find`
Fast in-page text search via a leaf-optimized, non-mutating TreeWalker shim returning clean CSS selectors. Filters out non-content elements (`<style>`, `<script>`, `<noscript>`, `<template>`) and internal Weavetab overlay hosts (`#wt-shadow-host`, `weavetab-host`, `[data-wt-ignore]`). Approximately 10x cheaper than `browser_map` when only checking for text presence or targeting elements by visible string. Channel/user prefixes (`#`, `@`) are stripped for token matching.
**Parameters:**
| Parameter | Type | Description |
|---|---|---|
| `query` | `string` *(required)* | Text search query string. |
| `all` | `boolean?` | Return all matching elements with bounding rects and selectors instead of just the first match. |
| `