MCP reference
Scripting
Scripting — MCP tools exposed to agents.
2 tools in this group.
browser_evaluate
Execute JavaScript in the browser to extract data, query the DOM, or inspect page state. Returns the evaluated result. Use this to get text content, attributes, element data, or any information from the page.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
expression | string | yes | JavaScript expression to evaluate |
browser_sleep
Pause execution for a specified number of milliseconds. Use sparingly — prefer browser_wait or browser_wait_for_url when possible.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ms | number | yes | Number of milliseconds to sleep (max 30000) |