Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Return document metadata including revision, node count, and capabilities.- Operation ID:
info - API member path:
editor.doc.info(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a DocumentInfo object with revision, word/paragraph/heading counts, and capability flags.Input fields
No fields.Example request
Output fields
| Field | Type | Required | Description |
|---|---|---|---|
capabilities | object | yes | |
capabilities.canComment | boolean | yes | |
capabilities.canFind | boolean | yes | |
capabilities.canGetNode | boolean | yes | |
capabilities.canReplace | boolean | yes | |
counts | object | yes | |
counts.comments | integer | yes | |
counts.headings | integer | yes | |
counts.images | integer | yes | |
counts.paragraphs | integer | yes | |
counts.tables | integer | yes | |
counts.words | integer | yes | |
outline | object[] | yes | |
revision | string | yes |
Example response
Pre-apply throws
- None
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

