get_draft
Read-only; changes nothing. The site's draft (key scope deploy:write): draft_version (pass it as expected_draft_version to write_files; 0 means no draft yet), the files (path, sha256, size; up to 500), the pictures waiting to be adopted (candidates, from request_upload), blobs_missing (files whose bytes did not arrive — write them again), published_version (the draft version that is live; smaller than draft_version means unpublished changes), live_deploy_id (pass it as expected_live_deploy to publish_draft; null when nothing is published), last_publish (the last publish operation), and versions (the last 20 draft versions: restore_draft's from_version). Call it before the first write_files of a conversation and after any 409.
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>"
},
"name": "get_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site ID (the id from list_sites, e.g. "my-shop") |