Skip to main content
Alpha: Document API is currently alpha and subject to breaking changes.

Summary

Undo the most recent history-safe mutation in the active editor.
  • Operation ID: history.undo
  • API member path: editor.doc.history.undo(...)
  • Mutates document: yes
  • Idempotency: non-idempotent
  • Supports tracked mode: no
  • Supports dry run: no
  • Deterministic target resolution: yes

Expected result

Returns a HistoryActionResult with noop flag and revision before/after; noop is true when the undo stack is empty.

Input fields

No fields.

Example request

Output fields

Example response

Pre-apply throws

  • CAPABILITY_UNAVAILABLE

Non-applied failure codes

  • None

Raw schemas