---
name: publish-book
title: Publish a finished book to the Commons
description: Use when a book is ready to go public — checking the quality-first publish gate, filling any missing pieces (pen name, blurb, genre, cover), and listing it. Publishing is outward-facing, so confirm with the author first.
version: 1.1.0
requires_tools: [publish_readiness, book_set_blurb, book_set_genre, persona_set, media_cover_generate, media_cover_upload, media_cover_commit, book_set_public, book_publish_all_chapters, chapter_publish, chapter_publish_updates, chapter_read_published]
related: [draft-chapter, browse-marketplace]
---

# Publish a book

Publishing is **quality-first**, not bare-minimum: a listing must carry a cover, at least one chapter of prose, a publishable rating, a pen name, a blurb, and a genre. There is no silent auto-fill — the author supplies each, so a published book is presentable.

## Prerequisites
- The book id. Publishing is outward-facing and only half-reversible (you can unlist, but the pen name goes public and indexing happens) — **always confirm with the author before making a book public.**

## Steps
1. **Check readiness.** `publish_readiness` reports each gate: a real title, cover, prose, publishable rating, pen name, blurb, genre. Its `can_publish` is exactly what publishing will accept — an Adult (A-rated) title reports `false` (it is manuscript-only).
2. **Fill what's missing**, naming each gap to the author:
   - Title still "Book 1" or "Untitled" → ask the author for the real title and set it with `book_update`. Never invent one. Renaming later also updates the live listing.
   - Blurb → `book_set_blurb`. Genre → `book_set_genre`. Pen name → `persona_set` (there is no auto-created pen name; the author must set one).
   - Cover → `media_cover_generate` then `media_cover_commit`. For an image the author already has at an HTTPS link, `media_cover_upload`, which costs nothing, checks the image, and sets it at once if it passes. Covers are often best generated in the app, where a safeguard tracks the job — offer that if the MCP cover flow stalls.
3. **Confirm, then publish.** With explicit go-ahead, `book_set_public` with `public: true`. It re-checks the whole gate and returns a specific error (`placeholder_title` / `no_cover` / `insufficient_prose` / `no_persona` / `no_blurb` / `no_genre` / `manuscript_only`) for anything still missing.
4. **Mention the pen name going public** if it was previously hidden — a listed book is always attributed.
5. **Say what happens to the chapters.** Listing a book is not the same as making it readable. If the book was imported and no chapter is public yet, its imported chapters are rated and published in the background, usually within a few minutes; any the rating check is unsure about stay private and the author is notified to review them. A built book's chapters are **not** published by this step.
6. **Offer the bulk release only when it fits.** For a book the author has FINISHED and wants out whole, call `book_publish_all_chapters` — `dry_run` defaults to true, so read the plan back first ("18 ready; 2 have no finished text yet; 1 you switched off stays off") and get an explicit yes before calling again with `dry_run:false`. For a serial being released as it is written, do not offer it: releasing chapter by chapter is the point. Either way the count it returns is chapters ATTEMPTED — each is rated on the way out, and anything low-confidence or Adult stays private — so never report it as chapters live.

7. **Release, revise or withdraw one chapter.** `chapter_publish { chapter_id, public }` releases one chapter (or, with `public:false`, takes it down; readers who unlocked it lose it too). `dry_run` defaults to true: say what it will do and get a yes first. A chapter whose Content Review is settled goes live at once and notifies followers; one without is rated on the way out (`queued:true`) and may stay private for the author to review, so check with `chapter_read_published` before saying it is live. Readers are served a frozen copy: after editing a live chapter, `chapter_publish_updates` pushes the newer text (dry_run first) and reports translations or narration that are now out of date. `chapter_read_published` shows exactly what readers get. To list an imported book while keeping every chapter private, call `book_set_public` with `publish_imported_chapters:false`, then release chapters one at a time.

## Credits
The gate checks and metadata writes are free. A cover generation debits credits; `credits_estimate` covers it.

## Done when
`book_set_public` returns `status: "published"`. To take it down later, `book_set_public` with `public: false` unlists it (the pen name stays public).
