browser_inject_css
Temporarily inject CSS into a page to test styling fixes without editing source files, then screenshot or audit the result before applying changes to code.
Instructions
Live-test a CSS fix on the page without editing files: inject CSS (replaces the previous CSS with the same id), then screenshot/audit to verify. remove:true removes it. Once it looks right, apply the same change to the source code. Lost on reload.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_inject_css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Name of this style block (default "default"). | |
| css | No | ||
| tabId | No | Tab to act on. Defaults to the tab last opened/selected by an agent, else the active tab. | |
| append | No | ||
| remove | No |