mcp

Resume Writing

Resume chapter generation for a story with unwritten outlines.

Detects the gap between plan.chapter_outlines and written chapters (those with non-empty text). Kicks off a background worker that writes only the missing chapters in outline order, seeding ledger context from chapters already on disk.

Use when:

  • A prior generation failed or was cancelled mid-write.
  • The user grew the outline post-generation through the Outline chat (refine_outline → Apply) and wants the new chapter(s) written.

No-op if every outline already has a written chapter — settles the story back at status='completed'. Refused (409) while a write or revision is already in flight.

post/api/mcp/resume_writing

Request

  • Base URL: https://writer.swapp1990.org (the document declares no server; this is the origin it was published from)
  • URL: https://writer.swapp1990.org/api/mcp/resume_writing
  • Auth: none declared

Request body

job_idstring required

The story job ID.

Response

Successful Response

job_idstring nullable
statusstring nullable
story_urlstring nullable
chapterinteger nullable
kindstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.