Skip to main content
Glama

boj_browser_execute_js

Execute JavaScript code directly within the current webpage context to automate tasks, manipulate content, or interact with page elements programmatically.

Instructions

Execute JavaScript in the current page context

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptYesJavaScript code to execute

Implementation Reference

  • The tool `boj_browser_execute_js` is handled in `mcp-bridge/main.js`. It delegates the execution to a remote cartridge named "browser-mcp" via the `invokeCartridge` helper function, passing the action name (extracted from the tool name) and the arguments.
    case "boj_browser_execute_js": {
      const action = toolName.replace("boj_browser_", "");
      const result = await invokeCartridge("browser-mcp", { action, ...args });
      sendResult(id, { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] });
      break;
    }

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/hyperpolymath/boj-server'

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