Write text file
write_fileCreate or replace a text file (css, js, json, svg, txt, xml) in the draft, e.g. "css/site.css".
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>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| site | Yes | Site slug (e.g. "kopitiam-muar") or id | |
| content | Yes | ||
| expected_revision | No | Revision from read_page; the save is refused if the file changed since. "new" = must not exist yet. |