set_visibility
Publish or unpublish a whole book by setting its visibility to PRIVATE, LINK_ONLY, or PUBLIC. Every chapter follows the book, and per-chapter visibility is overwritten.
Instructions
Publish or unpublish a whole book by setting its visibility (PRIVATE, LINK_ONLY, PUBLIC). Every chapter follows the book and any per-chapter visibility is overwritten: PUBLIC or LINK_ONLY gives every chapter — drafts included — that visibility and stamps it published now; PRIVATE hides every chapter. Volumes are clamped down on a downgrade (PRIVATE hides them all, LINK_ONLY turns PUBLIC volumes LINK_ONLY) but never raised. A non-PRIVATE visibility also sets the book's first-published date (kept from then on) and switches on the author's public page if it was off. Only the book owner can do this, and the API key needs the 'publish' scope, which keys are not given by default.
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": {
"bookId": "<bookId>",
"visibility": "<visibility>"
},
"name": "set_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bookId | Yes | Book ID | |
| visibility | Yes |