Try a CSS fix on the live page before editing files
visual_applyApplies CSS hypotheses to elements in a throwaway page and re-measures at the original viewports to confirm a finding is fixed and check for collateral issues, without writing to disk.
Instructions
Takes a hypothesis as CSS declarations, applies them to the element(s) in a throwaway page, and re-measures at the same viewports and condition where the finding was observed. Reports whether the target observation disappeared AND whether new observations appeared elsewhere (collateral). It also captures the computed value before and after each declaration: an inline style can lose to an !important rule, and a patch that applies but changes nothing would otherwise look like a fix. Nothing is written to disk — this validates the hypothesis, then you edit the real file.
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": {
"patches": "<patches>"
},
"name": "visual_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Verification mode. Default fast (1 pass). | |
| patches | Yes | The hypothesis. Applied as inline styles, so it beats ordinary author rules. | |
| sessionId | No | Session from visual_audit/crawl. Defaults to the most recent. | |
| findingIds | No | Findings you are trying to fix. Their viewports and condition are reused. Omit to keep the whole session. |