read_draft_file
Read-only. One text file of the draft (HTML, CSS, SVG, JSON …) as it is now, with sha256 and draft_version (key scope deploy:write). Use it before write_files when you change a page: write_files replaces whole files. A picture answers 415 binary_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": {
"site": "<site>",
"path": "<path>"
},
"name": "read_draft_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path in the draft (e.g. "index.html", "css/site.css") | |
| site | Yes | Site ID (the id from list_sites, e.g. "my-shop") |