---
title: "Resume Writing"
method: POST
path: "/api/mcp/resume_writing"
tags: ["mcp"]
---

# Resume Writing

`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

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.

## Request body

- JobInput
  - `job_id` string, required: The story job ID.

## Response `200`

Successful Response

- StoryMutationResponse
  - `job_id` string, nullable
  - `status` string, nullable
  - `story_url` string, nullable
  - `chapter` integer, nullable
  - `kind` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api.md) · [All operations](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api/revisions/ce5e2a89ab4d?raw)
