Inject Css
inject_cssInject CSS into a page for its lifetime to hide cookie banners, paywalls, and modals or highlight elements for screenshots, enabling cleaner page interaction and capture.
Instructions
Inject , persists page lifetime. Hide cookie banner/paywall/modal, highlight for screenshot.
Ex: inject_css('t0', '.cookie-banner{display:none!important}') → {"injected":true}
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": {
"tab_id": "<tab_id>",
"css": "<css>"
},
"name": "inject_css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | Yes | ||
| tab_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||