update_page
Replace the entire code of a page. Read it with get_page first and send the whole page back, changed where it was asked and untouched everywhere else. Webas keeps the previous version so the owner can undo this. If the site is published, the change is live immediately.
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": {
"site_id": "<site_id>",
"page_id": "<page_id>",
"code": "<code>"
},
"name": "update_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The complete page: HTML with its CSS in <style> and its JavaScript in <script>, no <!DOCTYPE>/<html>/<head>/<body>, nothing loaded from outside. A <form> carries no action attribute: Webas wires it. Under 500,000 characters. | |
| page_id | Yes | From list_sites. | |
| site_id | Yes | From list_sites. |