Read a BrewPage publication
read_publicationRead a BrewPage publication's content, owner source, settings, statistics, server code, or secret status to inspect published sites, files, JSON, KV entries, and protected content.
Instructions
Read content, owner source, owner settings, statistics or server code for a publication. Site content returns its manifest or named path. File content returns a download reference. KV without key lists keys. Continue long content with the returned offset. A secret ({"kind":"secret","id":} or its manage link) returns its state, views and open times, never its content.
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": "read_publication"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Publication id, or a secret's 10-character ref | |
| tz | No | Stats only. IANA time zone, default UTC | |
| key | No | KV key. Excludes hosting. | |
| kind | No | Publication kind returned by publish or list; secret with its ref as id | |
| path | No | Relative site file path. Omit for the owner manifest | |
| view | No | Default content. HTML source, settings, stats and lambda are owner reads; lambda: server code of a page or site with switches, counters, usage and the newest runs with logs | |
| range | No | Stats only. Days, default 30 | |
| offset | No | Next character offset from a previous read; view lambda: the returned nextOffset of older runs | |
| password | No | Reader password when content is protected | |
| manageUrl | No | Private link as target and proof. | |
| namespace | No | ||
| ownerToken | No | Private owner proof. |