Replace BrewPage publication content
update_publicationReplace an existing publication using its kind and target or private manageUrl. A site update fully replaces its file bundle. File updates fetch a public HTTP(S) URL. KV writes one key. A missing publication is never created.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "update_publication"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Publication id, or a secret's 10-character ref | |
| key | No | KV key. Excludes hosting. | |
| url | No | Public HTTP(S) URL fetched directly by the tool. No local download needed. | |
| json | No | Pass objects/arrays directly: {"x":1}. Strings are stored as strings. | |
| kind | No | Publication kind returned by publish or list; secret with its ref as id | |
| tags | No | Tags. Updates accept tags only on HTML and sites | |
| entry | No | Required for sites. Keep the existing entryFile unless changing it. | |
| files | No | Full site bundle. | |
| state | No | Page data configuration for HTML-format pages and sites. {} enables, null disables on update | |
| value | No | String value for kind=kv | |
| format | No | Omit to keep the saved format. Send html when replacing with HTML. | |
| content | No | HTML, Markdown or code. | |
| filename | No | Original filename. | |
| verbatim | No | Preserve inline source by default. False allows paste repair. | |
| manageUrl | No | Private link as target and proof. | |
| namespace | No | ||
| ownerToken | No | Private owner proof. |