inject_css
Inject CSS rules into a live page for instant styling without editing its stylesheet. Re-injecting the same id replaces the old rules; changes persist until navigation or reload.
Instructions
Inject a CSS rule into the page. Stays until the next navigation or reload, and re-injecting the same id replaces it rather than stacking. Affects only what is rendered — the stylesheet of the site is untouched.
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": {
"css": "<css>"
},
"name": "inject_css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | Yes | One or more CSS rules, as they would appear in a stylesheet | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one |