Reference

Document API reference

Search and inspect every operation generated from the canonical Document API contract.

Search all 423 operations in contract 0.1.0. Learn with the task guides, then use this reference for exact inputs, results, and failures.

core14

Primary read and write operations.

blocks6

Block-level structural operations.

capabilities1

Runtime support discovery for capability-aware branching.

create6

Structured creation helpers.

sections18

Section structure and page-setup operations.

format45

Canonical formatting mutation with directive semantics ('on', 'off', 'clear').

styles2

Document-level stylesheet mutations (docDefaults, style definitions).

lists44

List inspection and list mutations.

comments5

Comment authoring and thread lifecycle operations.

trackChanges3

Tracked-change inspection and review operations.

query1

Deterministic selector-based queries for mutation targeting.

mutations3

Atomic mutation plan preview and execution.

format.paragraph21

Paragraph-level direct formatting: alignment, indentation, spacing, borders, shading, and more.

styles.paragraph3

Paragraph style reference operations (set/clear w:pStyle).

templates1

Apply detected DOCX template/substrate (styles, numbering, settings, theme, font table, web settings, custom XML) from a source package onto the current document while preserving body content.

tables48

Table structure, layout, styling, and cell operations.

history3

Undo/redo history state and navigation.

toc10

Table of contents lifecycle and configuration.

images27

Image lifecycle, placement, and wrap configuration.

hyperlinks6

Hyperlink discovery, creation, and metadata management.

headerFooters9

Structure, references, and part lifecycle for document headers and footers.

contentControls55

Content control (SDT) discovery, mutation, typed controls, and Word compatibility.

bookmarks5

Named bookmark inspection, insertion, renaming, and removal.

footnotes6

Footnote and endnote lifecycle and numbering configuration.

clipboard3

Clipboard parsing, model insertion, and selection serialization.

crossRefs5

Cross-reference field inspection, insertion, rebuild, and removal.

index11

Index (TABLE OF AUTHORITIES / INDEX field) lifecycle and XE entry operations.

captions6

Caption (SEQ field) inspection, insertion, update, removal, and numbering configuration.

fields5

Raw field code inspection, insertion, rebuild, and removal.

citations15

Citation, source, and bibliography lifecycle operations.

authorities11

Table of authorities lifecycle and TA entry operations.

ranges1

Deterministic range construction from explicit document anchors.

selection1

Read the editor's current selection as a portable, addressable target.

diff3

Snapshot-based document comparison and replay.

export1

Modeful DOCX export (review-preserving / final / original) with a structured degradation report.

protection3

Document-level protection state and editing restriction operations.

permissionRanges5

Permission range exception operations for protected documents.

customXml5

Custom XML Data Storage Part operations (ECMA-376 §15.2.5, §15.2.6). Raw read and write of custom XML parts in the OOXML package.

metadata6

Attach a JSON payload to a span of text and read it back across DOCX round-trips. Backed by hidden inline content controls and namespaced Custom XML Data Storage Parts; consumers see one operation set.

Common tasks