Outbox: publish HTML or Markdown
outbox_publishPublish an HTML or Markdown page under a slug, rendered server-side into safe HTML using your account template; create a new page or republish as a new version with private-by-default visibility.
Instructions
Publishes a page from raw html or markdown (rendered server-side into safe HTML with the account template). Creates the slug or republishes it as a new version (previous versions are kept). model is required. New pages are private by default. Republishing keeps title, tags, summary, description, contentType, visibility, draft and TTL unless they are sent. expectedVersion makes the publish fail with 409 version_conflict if the page changed since it was read. draft:true keeps it private until outbox_go_live.
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": {
"slug": "<slug>",
"model": "<model>"
},
"name": "outbox_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Visibility TTL (e.g. '24h', '7d'); the page reverts to private when it expires. Non-private only | |
| html | No | Raw HTML (served as-is; max 5 MB). Mutually exclusive with markdown | |
| slug | Yes | Page slug/path; hierarchical paths are allowed (e.g. 'briefings/today') | |
| tags | No | Tags (max 20; each 1-50 chars of letters, digits, '.', '_' or '-', no spaces). Stored in lowercase | |
| draft | No | true = draft: effectively private until outbox_go_live | |
| model | Yes | Required: id of the model that generated the content (e.g. 'claude-opus-4-8') | |
| owner | No | Handle of a team/org the account belongs to, to publish under that namespace. Omitted = own namespace | |
| title | No | Page title | |
| summary | No | Short summary (derived from the title when missing on a new page) | |
| approval | No | Client Approve button on/off | |
| markdown | No | Markdown source, rendered server-side to safe HTML. Mutually exclusive with html | |
| file_path | No | Local .html/.md file (relative to OUTBOX_FILES_DIR). Mutually exclusive with html/markdown | |
| visibility | No | private / unlisted / public. Omitted: private for new pages, unchanged when republishing | |
| contentType | No | Free content type: briefing | report | notes | post | mockup | ... | |
| description | No | Long description | |
| notifySlack | No | Slack channel to notify, e.g. '#team' (not a URL) | |
| idempotencyKey | No | Idempotency key. Reuse the same key when retrying the same write (e.g. after a timeout) so it is not applied twice. Omitted = generated | |
| expectedVersion | No | Version that was read: the `version` returned by outbox_pull (or outbox_export / outbox_versions, read BEFORE the content). If the page changed since, the publish fails with 409 version_conflict | |
| rejectOnSecrets | No | true = if the content appears to include credentials (API keys, tokens, private keys) it is NOT published (422 secrets_detected with type and line). Omitted = it is published and the result warns in warnings.secrets | |
| inheritFolderVisibility | No | true = inherit the visibility of the closest folder |