---
title: "Get Chapter Text"
method: POST
path: "/api/mcp/get_chapter_text"
tags: ["mcp"]
---

# Get Chapter Text

`POST /api/mcp/get_chapter_text`

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

Fetch text for a specific chapter revision — used when switching versions.

## Request body

- ChatHistoryInput
  - `job_id` string, required: The story job ID.
  - `chapter` integer, required
  - `revision` integer: Revision number. 0 = general chapter chat.
  - `slot` string, nullable: Optional non-chapter chat slot, e.g. selected paragraph thread.

## Response `200`

Successful Response

- GetChapterTextResponse
  - `job_id` string, nullable
  - `chapter` integer, nullable
  - `revision` unknown
  - `text` string, nullable
  - `word_count` integer, nullable
  - `segment_breaks` unknown[], nullable
    - unknown
  - `paragraphs` Paragraph[], nullable
    - `index` integer, required
    - `text` string, required
    - `hash` string, required

## 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)
