Skip to content

Built-in Tools

MoleClaw includes 37+ 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). annotate=true mode overlays numbered markers on interactive elements and returns an element_id mapping table for precise targeting
selection_contextGet the text selected by the user on the page along with its surrounding context

Page Operations

ToolDescription
cdp_inputPage interaction operations via CDP (trusted events). Supports click, double click, right click, hover, drag, type, key press, scroll, fill, clear, select, click by text, scroll into view, focus, wait for element/text/navigation, get element info. Two targeting modes: element_id (from page_snapshot, preferred) and CSS selector.
cdp_domCross-origin DOM operations via CDP: query elements, modify attributes, insert/remove nodes, read/write HTML, get precise box model, etc.
cdp_frameCross-iframe operations via CDP: list all page frames, execute JS in a specific frame (expression parameter), get iframe text snapshot. Solves cross-origin iframe issues
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
request_confirmationRequest user confirmation before performing sensitive or irreversible actions. The user sees the message and can approve or reject with an optional reason
ask_userAsk the user a question to gather missing information or let them choose between options. Supports preset options and/or free text input
save_workflowSave a user-confirmed workflow definition to the registry, used in the dialog-based recording confirmation flow

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

TIP

Page storage operations (storage_ prefix actions) and CSS style operations (css_ prefix actions) are now integrated into cdp_dom as unified actions.

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 + cdp_input(element_id=...) — Snapshot to locate elements, then operate precisely by element_id
  3. cdp_input(selector=...) — CSS selector-based operations when element_id is unavailable
  4. cdp_dom — DOM read/write, CSS styles, and page storage operations

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