Skip to main content
Glama

browser_evaluate

Execute JavaScript code within browser sessions to automate web interactions, test functionality, or extract data using Playwright's isolated environments.

Instructions

Run JavaScript

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
functionYes

Implementation Reference

  • The 'browser_evaluate' tool registration and handler implementation. It uses 'proxyToolCall' to forward the request to an underlying browser instance.
    server.tool('browser_evaluate', 'Run JavaScript', { function: z.string() },
      async (args) => {
        const check = requireActivePage();
        if (check) return check;
        return proxyToolCall('browser_evaluate', args);
      });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OMGEverdo/browser-pool-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server