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.
core14Primary read and write operations.
blocks6Block-level structural operations.
capabilities1Runtime support discovery for capability-aware branching.
create6Structured creation helpers.
sections18Section structure and page-setup operations.
format45Canonical formatting mutation with directive semantics ('on', 'off', 'clear').
styles2Document-level stylesheet mutations (docDefaults, style definitions).
lists44List inspection and list mutations.
comments5Comment authoring and thread lifecycle operations.
trackChanges3Tracked-change inspection and review operations.
query1Deterministic selector-based queries for mutation targeting.
mutations3Atomic mutation plan preview and execution.
format.paragraph21Paragraph-level direct formatting: alignment, indentation, spacing, borders, shading, and more.
styles.paragraph3Paragraph style reference operations (set/clear w:pStyle).
templates1Apply 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.
tables48Table structure, layout, styling, and cell operations.
history3Undo/redo history state and navigation.
toc10Table of contents lifecycle and configuration.
images27Image lifecycle, placement, and wrap configuration.
hyperlinks6Hyperlink discovery, creation, and metadata management.
headerFooters9Structure, references, and part lifecycle for document headers and footers.
contentControls55Content control (SDT) discovery, mutation, typed controls, and Word compatibility.
bookmarks5Named bookmark inspection, insertion, renaming, and removal.
footnotes6Footnote and endnote lifecycle and numbering configuration.
clipboard3Clipboard parsing, model insertion, and selection serialization.
crossRefs5Cross-reference field inspection, insertion, rebuild, and removal.
index11Index (TABLE OF AUTHORITIES / INDEX field) lifecycle and XE entry operations.
captions6Caption (SEQ field) inspection, insertion, update, removal, and numbering configuration.
fields5Raw field code inspection, insertion, rebuild, and removal.
citations15Citation, source, and bibliography lifecycle operations.
authorities11Table of authorities lifecycle and TA entry operations.
ranges1Deterministic range construction from explicit document anchors.
selection1Read the editor's current selection as a portable, addressable target.
diff3Snapshot-based document comparison and replay.
export1Modeful DOCX export (review-preserving / final / original) with a structured degradation report.
protection3Document-level protection state and editing restriction operations.
permissionRanges5Permission range exception operations for protected documents.
customXml5Custom 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.
metadata6Attach 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.