web_set_text
Update a paired HTML node's text with a revision guard to avoid overwriting stale content. Supply the expected revision from your most recent read.
Instructions
Set the text of one paired HTML node. Pass expected_rev from your last read.
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>",
"text": "<text>",
"expected_rev": "<expected_rev>"
},
"name": "web_set_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | New plain text (escaped by Site Studio). | |
| file_id | Yes | HTML file id. | |
| node_id | Yes | Node id. | |
| expected_rev | Yes | Revision returned by your most recent read. Stale revisions refuse; read again. |