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

Summary

Retrieve a single node by target position.
  • Operation ID: getNode
  • API member path: editor.doc.getNode(...)
  • Mutates document: no
  • Idempotency: idempotent
  • Supports tracked mode: no
  • Supports dry run: no
  • Deterministic target resolution: yes

Expected result

Returns an SDNodeResult envelope with the projected SDM/1 node and canonical address.

Input fields

Variant 1 (kind=“block”)

Variant 2 (kind=“inline”)

Example request

Output fields

Example response

Pre-apply throws

  • TARGET_NOT_FOUND
  • ADDRESS_STALE

Non-applied failure codes

  • None

Raw schemas