Publish on BrewPage
publishShared public namespace: public:true (or namespace:"public"); ordinary link-only: omit both. HTML: content; kind=site: files; kind=file: url; kind=json: json; kind=kv: key,value. Site: {"kind":"site","public":true,"files":[{"path":"index.html","content":"Hi"}]}. A public input URL does not request listing. New HTML titles go in ; preserve supplied HTML. For visitor input read get_guide topic page-data first; publish HTML and state together. Use domain for an owned hostname, linkName for a readable public link. To share a password or key: {"kind":"secret","title":"...","text":"..."}, a private link that stops working after maxViews openings; returns its owner token and manage link.
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": "publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | KV key. Excludes hosting. | |
| ttl | No | kind=secret only. How long it stays readable, default 7d | |
| 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 | Default html. secret: one-time secret link from title and text (optional filename, note, tags, ttl, maxViews, ownerToken) | |
| note | No | kind=secret only. Your own note; the recipient never sees it | |
| tags | No | Tags. Updates accept tags only on HTML and sites | |
| text | No | kind=secret only. The password, key or file text; encrypted by this server before upload | |
| entry | No | Site entry path, default index.html | |
| files | No | Full site bundle. | |
| state | No | Page data configuration for HTML-format pages and sites. {} enables, null disables on update | |
| title | No | At most 200 Unicode code points. kind=secret: required, one line the recipient sees before opening; never the secret itself. HTML create: checks the existing static document head title before publishing, not stored metadata or script changes; omit when no check is needed. | |
| value | No | String value for kind=kv | |
| domain | No | Hostname on HTML-format pages or sites, with the required owning profile | |
| format | No | HTML only. html, markdown or a code language | |
| public | No | True selects the shared public namespace. Conflicting namespace refuses. Omit for existing defaults; false disallows namespace=public. | |
| content | No | HTML, Markdown or code. | |
| ttlDays | No | ||
| filename | No | Original filename. | |
| linkName | No | Readable name for the public link of a page, site or file, with the required owning profile: 6-20 of a-z, 0-9 and hyphens, with a letter | |
| maxViews | No | kind=secret only. Openings allowed, 1-10, default 1 | |
| password | No | New reader password. Omit for no password. Send only the exact password requested, never a placeholder. | |
| template | No | Template slug for an HTML copy | |
| verbatim | No | Preserve inline source by default. False allows paste repair. | |
| namespace | No | Use public for the shared public namespace, or a custom namespace. Omit for existing defaults. | |
| ownerToken | No | Private owner proof. | |
| deliveryMode | No | ||
| requireAccount | No | Require account ownership. |