toggle_script
Enable or disable a userscript to control its injection into matching pages. Temporarily deactivate scripts without removing them.
Instructions
Enable or disable a userscript. Disabled scripts are not injected into matching pages. Use this to temporarily turn off a script without deleting it.
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": {
"scriptId": "<scriptId>",
"enabled": "<enabled>"
},
"name": "toggle_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true to enable, false to disable | |
| scriptId | Yes | The ID of the script to enable/disable |