web_move
Move an HTML node to a new position relative to another node in the same file, using a revision check to prevent stale edits.
Instructions
Move a node relative to another node in the same 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": {
"file_id": "<file_id>",
"node_id": "<node_id>",
"parent_id": "<parent_id>",
"position": "<position>",
"expected_rev": "<expected_rev>"
},
"name": "web_move"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | HTML file id. | |
| node_id | Yes | Node to move. | |
| position | Yes | One of first, last, before, after. | |
| parent_id | Yes | Destination node id. | |
| expected_rev | Yes | Revision returned by your most recent read. Stale revisions refuse; read again. |