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
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | JavaScript code to execute |
Implementation Reference
- mcp-bridge/main.js:695-700 (handler)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; }