Skip to main content

Module scripts

Module scripts 

Source
Expand description

JavaScript payloads injected into the browser by MCP tools.

Constantsยง

FETCH_JS
Performs a fetch from the page context. Receives JSON-string args.
GET_CLIP_RECT_JS
Resolves a selector to a clip rectangle in document coordinates, scrolling the element into view first. Returns null when the selector matches nothing or the element has zero area (hidden / detached).
GET_DOM_JS
Serializes the DOM with shadow roots included.
SELECT_ELEMENT_JS
Interactive element picker. Resolves with the selector string for the picked element.