chrome_inject_script
Inject JavaScript that executes before any page script on every navigation, enabling early instrumentation, customization, or interception in a Chrome tab.
Instructions
Inject a script that runs before any page script on every navigation
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": "chrome_inject_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | ||
| source | Yes | JavaScript source to inject |