Summary
Read the numbering-aware list state for a paragraph (numId, ilvl, abstract reference, level format). Returns null when the target is not a list item. Available on v2-backed sessions only; v1-backed sessions currently returnCAPABILITY_UNAVAILABLE.
- Operation ID:
lists.getState - API member path:
editor.doc.lists.getState(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a ListsGetStateResult withisListItem plus numId/ilvl/abstract/numFmt metadata when present.
Input fields
| Field | Type | Required | Description |
|---|---|---|---|
target | object(kind=“block”) | object(kind=“block”) | yes | One of: object(kind=“block”), object(kind=“block”) |
Example request
Output fields
Variant 1 (success=true)
| Field | Type | Required | Description |
|---|---|---|---|
abstractNumId | string | null | no | |
ilvl | integer | yes | |
isListItem | boolean | yes | |
lvlText | string | null | no | |
numFmt | string | null | no | |
numId | string | null | no | |
seed | enum | null | no | "bullet", "ordered", null |
success | true | yes | Constant: true |
Variant 2 (success=false)
| Field | Type | Required | Description |
|---|---|---|---|
failure | object | yes | |
failure.code | enum | yes | "TARGET_NOT_FOUND", "CAPABILITY_UNAVAILABLE" |
failure.details | any | no | |
failure.message | string | yes | |
success | false | yes | Constant: false |
Example response
Pre-apply throws
TARGET_NOT_FOUNDCAPABILITY_UNAVAILABLE
Non-applied failure codes
TARGET_NOT_FOUNDCAPABILITY_UNAVAILABLE
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

