---
title: "Update Chapter Memory"
method: POST
path: "/api/mcp/update_chapter_memory"
tags: ["mcp"]
---

# Update Chapter Memory

`POST /api/mcp/update_chapter_memory`

## 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/update_chapter_memory`
- Auth: none declared

Edit saved continuity memory for a chapter/revision.

This is a manual correction path for bad extracted memory. It replaces
`carry_forward_facts` on the selected revision (latest by default). If
the edited revision is the latest revision, the chapter-level memory is
updated too so future prior-context ledgers stop carrying stale facts.

## Request body

- UpdateChapterMemoryInput
  - `job_id` string, required: The story job ID.
  - `chapter` integer, required: Chapter whose saved continuity memory should be edited.
  - `revision` integer, nullable: Optional revision to edit. None = latest.
  - `target` string, nullable: Optional edit target. Use 'active_revision' to edit a failed attempt snapshot.
  - `carry_forward_facts` string[]: Full replacement list of carry-forward facts for the selected chapter/revision.

## Response `200`

Successful Response

- GenericToolResponse: Fallback for tools whose payload is still being tightened.
  - `story_url` string, nullable
  - `article_url` string, nullable
  - `job_id` string, nullable
  - `status` string, nullable
  - `is_terminal` boolean, 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)
