Publish a Markdown document
publish_docPublish Markdown as a beautifully typeset page and receive its https://lucid.page/ URL. Works anonymously; with an lp_ API key the page is owned by the account and can be updated later. Anonymous publishes return a one-time claim_token — hand your human the claim link https://lucid.page/claim?slug=&token=<claim_token> so they can claim the page into their account (agents: POST /api/docs//claim).
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": {
"markdown": "<markdown>"
},
"name": "publish_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Lifetime in seconds (min 60). Omit for a page that never expires. | |
| title | No | Optional display title. | |
| markdown | Yes | The Markdown source to publish (max 1 MB). | |
| visibility | No | Defaults to unlisted. Private requires an lp_ API key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The live page URL. | |
| slug | Yes | ||
| expires_at | Yes | ISO timestamp, or null when the page never expires | |
| visibility | Yes | ||
| claim_token | No | One-time ownership token (anonymous publishes only). A human claims the page at https://lucid.page/claim?slug=<slug>&token=<claim_token>; agents claim with POST /api/docs/<slug>/claim. |