Skip to main content

Summary

Resolve two explicit anchors into a contiguous document range. Returns a transparent SelectionTarget, a mutation-ready ref, and preview metadata. Stateless and deterministic.
  • Operation ID: ranges.resolve
  • API member path: editor.doc.ranges.resolve(...)
  • Mutates document: no
  • Idempotency: idempotent
  • Supports tracked mode: no
  • Supports dry run: no
  • Deterministic target resolution: yes

Expected result

Returns a ResolveRangeOutput with evaluatedRevision, handle.ref, target (SelectionTarget), and preview metadata.

Input fields

Example request

Output fields

Example response

Pre-apply throws

  • INVALID_INPUT
  • INVALID_TARGET
  • TARGET_NOT_FOUND
  • INVALID_CONTEXT
  • REVISION_MISMATCH

Non-applied failure codes

  • None

Raw schemas