browser_add_init_script
Inject custom JavaScript to run on every page load, enabling persistent setup and automated modifications across browser sessions.
Instructions
Add initialization script to run on every page load
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script": "<script>"
},
"name": "browser_add_init_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | JavaScript code to execute |