Chrome Tools MCP Server

execute_script

Input Schema

NameRequiredDescriptionDefault
scriptYesJavaScript code to execute in the tab
tabIdYesID of the Chrome tab to execute the script in

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "script": { "description": "JavaScript code to execute in the tab", "type": "string" }, "tabId": { "description": "ID of the Chrome tab to execute the script in", "type": "string" } }, "required": [ "tabId", "script" ], "type": "object" }