Write page
write_pageCreate or replace an HTML page in the draft. Path "index.html" (or "/") is the home page; "about" becomes about.html served at /about.
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": "<site>",
"path": "<path>",
"html": "<html>"
},
"name": "write_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Complete HTML document | |
| path | Yes | ||
| site | Yes | Site slug (e.g. "kopitiam-muar") or id | |
| expected_revision | No | Revision from read_page; the save is refused if the file changed since. "new" = must not exist yet. |