Edit HTML
edit_htmlWrite HTML + Tailwind into a frame or element.
replace_content (default): replace the target's children. Elements carrying an existing data-id are updated in place; elements without one reuse the existing element at the same place with the same tag; the rest is created; children not present anymore are deleted. A written back without data-items keeps its rows. Other data-id values are your own keys (data-id="save"): the result gives the id each one got.
append / prepend: add inside the target.
insert_before / insert_after: add next to the target element.
replace: replace the target element itself. Keep its data-id on the new element to keep its id, comments and selection (even with another tag).
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": {
"fileId": "<fileId>",
"targetId": "<targetId>",
"html": "<html>"
},
"name": "edit_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Values for <template data-each> and {{field}} placeholders in the html. | |
| html | Yes | ||
| mode | No | replace_content | |
| fileId | Yes | ||
| targetId | Yes | Frame or element id (data-id). |