update_draft
Writes a new version of an existing draft, or renames its preview address. Acts as a patch: files you send are written as a new version, files you omit carry forward unchanged, and earlier versions are kept. For when the user wants to change the copy, sections or layout of a draft that already exists, or give its preview a different readable name. Returns the version and preview_url. Cannot spend money.
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": {
"draft_id": "<draft_id>"
},
"name": "update_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | A domain your account has proven it owns and attached as a draft host (POST /agency-hosts). With label, the draft is also published at https://{label}.{host}, noindex and with no Scopeweb banner. Send host and label together. | |
| slug | No | New readable word for the preview address; the draft keeps its random tag where it can (ninkasi-k7q becomes brewing-k7q). The previous address keeps redirecting. Send slug alone to rename without writing a new version. | |
| files | No | ||
| label | No | The address on host, for example ninkasi for ninkasi.example.com. 3 to 40 lowercase letters, digits and single hyphens; names that imitate login, payment or brand pages are refused. | |
| draft_id | Yes |