Write author entries
set_page_dataWrite or replace 1–20 keyed entries in one collection on an owned HTML page without republishing it, leaving visitor entries untouched.
Instructions
Write an author entry (for example today's menu) without republishing the page. Creates or replaces 1-20 entries in one list (collection) of an owned HTML page or site, each addressed by key; typically a list with write: author. Visitors' entries stay untouched.
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": {
"collection": "<collection>",
"docs": "<docs>"
},
"name": "set_page_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Publication ID | |
| docs | Yes | Entries to write, 1-20 | |
| manageUrl | No | The page's private management link (https://brewpage.app/manage/...#k=...); stands in for namespace, id and ownerToken. | |
| namespace | No | Publication namespace | |
| collection | Yes | List (collection) name | |
| ownerToken | No | Owner token from create. Default: env BREWPAGE_OWNER_TOKEN (local server only). |