Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Retrieve details of a specific table of contents.- Operation ID:
toc.get - API member path:
editor.doc.toc.get(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a TocInfo object with the instruction, source/display configuration, and entry count.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
target | object(kind=“block”) | yes |
Example request
Output fields
| Field | Type | Required | Description |
|---|---|---|---|
kind | "block" | yes | Constant: "block" |
nodeType | "tableOfContents" | yes | Constant: "tableOfContents" |
properties | object | yes |
Example response
Pre-apply throws
TARGET_NOT_FOUND
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

