patch_html
Patch HTML elements in a file by CSS selector. Supply file_path, selector, and html to substitute or add markup.
Instructions
Patch HTML element(s) by CSS selector
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": {
"file_path": "<file_path>",
"selector": "<selector>",
"html": "<html>"
},
"name": "patch_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | ||
| selector | Yes | ||
| file_path | Yes |