Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Search the document for text or node matches using SDM/1 selectors.- Operation ID:
find - API member path:
editor.doc.find(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
no
Expected result
Returns an SDFindResult envelope ({ total, limit, offset, items }). Each item is an SDNodeResult ({ node, address }).Input fields
| Field | Type | Required | Description | |
|---|---|---|---|---|
limit | integer | no | ||
offset | integer | no | ||
options | object | no | ||
options.includeContext | boolean | no | ||
options.includeProvenance | boolean | no | ||
options.includeResolved | boolean | no | ||
select | object(type=“text”) \ | object(type=“node”) | yes | One of: object(type=“text”), object(type=“node”) |
within | object | no | ||
within.anchor | object | no | ||
within.anchor.end | object | no | ||
within.anchor.end.blockId | string | no | ||
within.anchor.end.offset | integer | no | ||
within.anchor.start | object | no | ||
within.anchor.start.blockId | string | no | ||
within.anchor.start.offset | integer | no | ||
within.evaluatedRevision | string | no | ||
within.kind | enum | no | "content", "inline", "annotation", "section" | |
within.nodeId | string | no | ||
within.path | string \ | integer[] | no | |
within.stability | enum | no | "stable", "ephemeral" |
Example request
Output fields
| Field | Type | Required | Description |
|---|---|---|---|
items | object[] | yes | |
limit | integer | yes | |
offset | integer | yes | |
total | integer | yes |
Example response
Pre-apply throws
CAPABILITY_UNAVAILABLEINVALID_INPUTADDRESS_STALE
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

