inject_preload_script
Inject JavaScript code that runs before any page scripts, enabling early hooking or modification of webpage behavior.
Instructions
Inject arbitrary preload JavaScript via BiDi script.addPreloadScript. Source runs before page scripts.
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": {
"source": "<source>"
},
"name": "inject_preload_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes |