Skip to content

Built-in Tools

MoleClaw includes 35+ built-in tools covering all aspects of browser automation. The AI automatically selects the most suitable tools based on your natural language instructions.

Page Awareness

ToolDescription
page_viewerGet the current page's visible text content for understanding page information
page_snapshotTake a structured snapshot of the page, supports query-based element targeting, returns element tree and element_id
page_skeletonExtract page skeleton structure for a quick overview of the overall layout
page_assertAssert whether the page state meets expectations, used for verification after critical operations
page_repairWhen page_assert fails, attempt to automatically repair the page state
screenshotTake page screenshots — supports visible area, full page, region, and element screenshots (CDP enhanced)
selection_contextGet the text selected by the user on the page along with its surrounding context

Page Operations

ToolDescription
page_actionExecute page interaction operations with two targeting modes: element_id (from page_snapshot, preferred) and CSS selector. Supports click, fill, scroll, scroll into view, hover, keypress, wait for element, get element info, etc.
dom_manipulateDirect DOM manipulation: query elements, modify attributes, insert/remove nodes, etc.
js_executeExecute custom JavaScript code in the page context for complex page interactions
ToolDescription
tab_navigateTab navigation: navigate URL in current tab, open new tab, close tab, etc.
fetch_urlMake HTTP requests in the background to fetch URL content without affecting the current page

Browser Capabilities

ToolDescription
clipboard_opsClipboard operations: read and write clipboard content
storage_kvKey-value storage: read/write data in the extension's local storage, supports cross-session persistence
notificationSend browser desktop notifications
bookmark_opsBookmark operations: search, create, delete bookmarks
history_searchSearch browser history
download_fileDownload files to local disk

Timers & Automation

ToolDescription
timerUnified timer management: set delayed tasks, recurring tasks, clear timers, and list active timers
resident_runtimeResident runner: continuously run tasks in the background, suitable for long-term monitoring or periodic execution

Workflows & Tasks

ToolDescription
site_workflowExecute predefined site workflows, automatically matches available workflows based on the current page URL
spawn_subtaskSplit independent sub-goals into isolated tasks, each with its own context

CDP Enhanced Tools Chrome DevTools Protocol

Connected to Chrome DevTools Protocol via the chrome.debugger API, providing browser-process-level deep control. These tools are especially critical when regular Content Script approaches are limited (anti-bot detection, cross-origin iframes, network details, etc.).

Input & Interaction

ToolDescription
cdp_inputSend trusted mouse/keyboard events (isTrusted=true): click, double-click, right-click, hover, drag, type text, keypress, scroll. Bypasses anti-bot event source detection
cdp_dialogQuery and handle JavaScript dialogs (alert/confirm/prompt/beforeunload), supports manual handling and auto strategies

Pages & Frames

ToolDescription
cdp_frameCross-iframe operations: list all page frames, execute JS in a specific frame, get iframe text snapshot. Solves cross-origin iframe issues (CAPTCHAs, payment forms, etc.)

Network & Cookies

ToolDescription
cdp_networkCDP-enhanced network monitoring: complete request/response data (including body and headers), statistical summaries, and cross-origin Cookie read/write (get/set/delete)

Environment Emulation

ToolDescription
cdp_emulationDevice and environment emulation: viewport size (mobile), User-Agent override, geolocation spoofing, language/timezone settings, network condition simulation (3G/offline, etc.)

Request Interception

ToolDescription
cdp_fetchRequest interception and modification (Fetch domain): intercept page network requests to modify and continue, return custom responses (Mock API), or simulate failures. Useful for auth header injection, data mocking, and CORS bypass

Deep DOM Operations

ToolDescription
cdp_domCross-origin DOM operations (DOM domain): query/modify DOM nodes via CDP, ignoring same-origin policy. Supports CSS selector queries, HTML read/write, attribute operations, precise element box model (margin/border/padding/content), and node removal

Page Storage

ToolDescription
cdp_storagePage storage operations (DOMStorage domain): read/write the target page's localStorage and sessionStorage without content scripts. Useful for reading login tokens, modifying cache configs, and clearing storage data

Style Operations

ToolDescription
cdp_cssCSS style inspection and modification (CSS domain): get computed styles and matching CSS rules, modify inline styles, dynamically add CSS rules, read/write complete stylesheets. Useful for style diagnostics, dynamic CSS injection, and design token extraction

Visual Highlighting

ToolDescription
cdp_overlayElement highlighting (Overlay domain): highlight specified DOM nodes, elements matching CSS selectors, or rectangular regions with custom colors. Visually marks AI operation targets so users can observe what's being operated on

Debug & Diagnostics

ToolDescription
cdp_consoleCapture page console.log/warn/error output and uncaught JavaScript exceptions to help AI diagnose page issues

Note

CDP tools require the debugger permission. A debugger notification bar will appear at the top of the browser during use — this is Chrome's security mechanism and is expected behavior.

Tool Selection Priority

When the AI needs to operate on a page, it selects tools in this priority order:

  1. site_workflow — Preferred: use predefined workflows when available for the current page, fast and reliable
  2. page_snapshot + page_action(element_id=...) — Snapshot to locate elements, then operate precisely by element_id
  3. page_action(selector=...) — CSS selector-based operations when element_id is unavailable
  4. cdp_input — When anti-bot detection blocks regular clicks, use CDP to send trusted events
  5. dom_manipulate — Direct DOM manipulation as a last resort

TIP

You don't need to manually choose tools — just describe your needs in natural language, and the AI will automatically select the best tool combination for the task.

Released under the AGPL-3.0 License