mcp

Selected Paragraph Undo

Restore specific paragraphs to a client-provided snapshot.

Pure DB write — no LLM call. The client snapshots the pre-apply paragraphs before calling selected_paragraph_apply_plan; if the user dislikes the result, the snapshot comes back here and we write it into the chapter's latest revision in-place. Costs 0 credits (free undo).

post/api/mcp/paragraph_undo

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_undo
  • Auth: none declared

Request body

job_idstring required

The story job ID.

chapterinteger required

Chapter number containing the paragraphs.

paragraph_indicesinteger[] required

0-based paragraph indices to restore.

restored_paragraphsstring[] required

Pre-apply text for each index, in the same order.

base_revisioninteger nullable

Revision number to restore into. None = latest.

operation_idstring nullable

Optional operation_id from the apply ledger/event used for stronger map-snapshot correlation. Optional for current clients.

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.