---
title: "Clear Chat"
method: POST
path: "/api/mcp/clear_chat"
tags: ["mcp"]
---

# Clear Chat

`POST /api/mcp/clear_chat`

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

Delete the saved chat thread for a chapter+revision.

Irreversible. Subsequent `get_chat` calls return an empty list.
Does not affect the chapter prose, only the conversation history.

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

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