mcp

Selected Paragraph Chat

Multi-purpose chat about one selected paragraph.

This is the chat-first replacement for the inline note apply flow. It can explain, critique, retrieve prior context through story-query tools, discuss revision options, or prepare for a later rewrite plan. It does not change story text.

post/api/mcp/paragraph_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/paragraph_chat
  • Auth: none declared

Request body

job_idstring required

The story job ID.

chapterinteger required
paragraph_indexinteger required

0-based selected paragraph index.

selected_textstring nullable

Client-visible selected paragraph text for drift checks/debug context.

messagestring required

User message about the selected paragraph.

modelstring nullable

Model override.

revisioninteger nullable

Which revision to use as context. None = latest.

use_story_toolboolean

Allow story-query tools when the user asks for prior context.

auto_saveboolean

Append user+assistant turns to the paragraph-specific chat slot.

request_idstring nullable

Idempotency key - see ChapterChatInput.request_id.

Response

Successful Response

story_urlstring nullable
article_urlstring nullable
job_idstring nullable
statusstring nullable
is_terminalboolean nullable

Changes

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