web_insert_section
Insert a complete fragment into an HTML file relative to a parent node; choose first, last, before, or after placement.
Instructions
Insert a fragment relative to a parent node.
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_id": "<file_id>",
"parent_id": "<parent_id>",
"position": "<position>",
"html": "<html>",
"expected_rev": "<expected_rev>"
},
"name": "web_insert_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | A complete <section>...</section> fragment. | |
| file_id | Yes | HTML file id. | |
| position | Yes | One of first, last, before, after. | |
| parent_id | Yes | Parent node id. | |
| expected_rev | Yes | Revision returned by your most recent read. Stale revisions refuse; read again. |