Skip to main content
This reference is sourced from packages/document-api/src/contract/*. Document API is currently alpha and subject to breaking changes.

Browse by namespace

NamespaceCanonical opsAliasesTotal surfaceReference
Core13013Open
Blocks101Open
Capabilities101Open
Create606Open
Sections18018Open
Format44145Open
Styles101Open
Lists29029Open
Comments505Open
Track Changes303Open
Query101Open
Mutations202Open
Paragraph Formatting17017Open
Paragraph Styles202Open
Tables42042Open
History303Open
Table of Contents10010Open
Images27027Open
Hyperlinks606Open
Headers & Footers909Open
Content Controls55055Open
Bookmarks505Open
Footnotes606Open
Cross-References505Open
Index11011Open
Captions606Open
Fields505Open
Citations15015Open
Table of Authorities11011Open

Available operations

The tables below are grouped by namespace.

Core

OperationAPI member pathDescription
geteditor.doc.get(…)Read the full document as an SDDocument structure.
findeditor.doc.find(…)Search the document for text or node matches using SDM/1 selectors.
getNodeeditor.doc.getNode(…)Retrieve a single node by target position.
getNodeByIdeditor.doc.getNodeById(…)Retrieve a single node by its unique ID.
getTexteditor.doc.getText(…)Extract the plain-text content of the document.
getMarkdowneditor.doc.getMarkdown(…)Extract the document content as a Markdown string.
getHtmleditor.doc.getHtml(…)Extract the document content as an HTML string.
markdownToFragmenteditor.doc.markdownToFragment(…)Convert a Markdown string into an SDM/1 structural fragment.
infoeditor.doc.info(…)Return document metadata including revision, node count, and capabilities.
clearContenteditor.doc.clearContent(…)Clear all document body content, leaving a single empty paragraph.
inserteditor.doc.insert(…)Insert content at a target position, or at the end of the document when target is omitted. Accepts two input shapes: legacy string-based (value + type) or structural SDFragment (content). Supports text (default), markdown, and html content types via the type field in legacy mode. Structural mode accepts an SDFragment with typed nodes (paragraphs, tables, images, etc.).
replaceeditor.doc.replace(…)Replace content at a target position with new content. Accepts two input shapes: legacy string-based (text) or structural SDFragment (content). Structural mode replaces the target range with typed nodes (paragraphs, tables, images, etc.).
deleteeditor.doc.delete(…)Delete content at a target position.

Blocks

OperationAPI member pathDescription
blocks.deleteeditor.doc.blocks.delete(…)Delete an entire block node (paragraph, heading, list item, table, image, or sdt) deterministically.

Capabilities

OperationAPI member pathDescription
capabilities.geteditor.doc.capabilities()Query runtime capabilities supported by the current document engine.

Create

OperationAPI member pathDescription
create.paragrapheditor.doc.create.paragraph(…)Create a new paragraph at the target position.
create.headingeditor.doc.create.heading(…)Create a new heading at the target position.
create.sectionBreakeditor.doc.create.sectionBreak(…)Create a section break at the target location with optional initial section properties.
create.tableeditor.doc.create.table(…)Create a new table at the target position.
create.tableOfContentseditor.doc.create.tableOfContents(…)Insert a new table of contents at the target position.
create.imageeditor.doc.create.image(…)Insert a new image at the target position.

Sections

OperationAPI member pathDescription
sections.listeditor.doc.sections.list(…)List sections in deterministic order with section-target handles.
sections.geteditor.doc.sections.get(…)Retrieve full section information by section address.
sections.setBreakTypeeditor.doc.sections.setBreakType(…)Set the section break type.
sections.setPageMarginseditor.doc.sections.setPageMargins(…)Set page-edge margins for a section.
sections.setHeaderFooterMarginseditor.doc.sections.setHeaderFooterMargins(…)Set header/footer margin distances for a section.
sections.setPageSetupeditor.doc.sections.setPageSetup(…)Set page size/orientation properties for a section.
sections.setColumnseditor.doc.sections.setColumns(…)Set column configuration for a section.
sections.setLineNumberingeditor.doc.sections.setLineNumbering(…)Enable or configure line numbering for a section.
sections.setPageNumberingeditor.doc.sections.setPageNumbering(…)Set page numbering format/start for a section.
sections.setTitlePageeditor.doc.sections.setTitlePage(…)Enable or disable title-page behavior for a section.
sections.setOddEvenHeadersFooterseditor.doc.sections.setOddEvenHeadersFooters(…)Enable or disable odd/even header-footer mode in document settings.
sections.setVerticalAligneditor.doc.sections.setVerticalAlign(…)Set vertical page alignment for a section.
sections.setSectionDirectioneditor.doc.sections.setSectionDirection(…)Set section text flow direction (LTR/RTL).
sections.setHeaderFooterRefeditor.doc.sections.setHeaderFooterRef(…)Set or replace a section header/footer reference for a variant.
sections.clearHeaderFooterRefeditor.doc.sections.clearHeaderFooterRef(…)Clear a section header/footer reference for a specific variant.
sections.setLinkToPreviouseditor.doc.sections.setLinkToPrevious(…)Set or clear link-to-previous behavior for a header/footer variant.
sections.setPageBorderseditor.doc.sections.setPageBorders(…)Set page border configuration for a section.
sections.clearPageBorderseditor.doc.sections.clearPageBorders(…)Clear page border configuration for a section.

Format

OperationAPI member pathDescription
format.applyeditor.doc.format.apply(…)Apply inline run-property patch changes to the target range with explicit set/clear semantics.
format.boldeditor.doc.format.bold(…)Set or clear the bold inline run property on the target text range.
format.italiceditor.doc.format.italic(…)Set or clear the italic inline run property on the target text range.
format.strikeeditor.doc.format.strike(…)Set or clear the strike inline run property on the target text range.
format.underlineeditor.doc.format.underline(…)Set or clear the underline inline run property on the target text range.
format.highlighteditor.doc.format.highlight(…)Set or clear the highlight inline run property on the target text range.
format.coloreditor.doc.format.color(…)Set or clear the color inline run property on the target text range.
format.fontSizeeditor.doc.format.fontSize(…)Set or clear the fontSize inline run property on the target text range.
format.fontFamilyeditor.doc.format.fontFamily(…)Set or clear the fontFamily inline run property on the target text range.
format.letterSpacingeditor.doc.format.letterSpacing(…)Set or clear the letterSpacing inline run property on the target text range.
format.vertAligneditor.doc.format.vertAlign(…)Set or clear the vertAlign inline run property on the target text range.
format.positioneditor.doc.format.position(…)Set or clear the position inline run property on the target text range.
format.dstrikeeditor.doc.format.dstrike(…)Set or clear the dstrike inline run property on the target text range.
format.smallCapseditor.doc.format.smallCaps(…)Set or clear the smallCaps inline run property on the target text range.
format.capseditor.doc.format.caps(…)Set or clear the caps inline run property on the target text range.
format.shadingeditor.doc.format.shading(…)Set or clear the shading inline run property on the target text range.
format.bordereditor.doc.format.border(…)Set or clear the border inline run property on the target text range.
format.outlineeditor.doc.format.outline(…)Set or clear the outline inline run property on the target text range.
format.shadoweditor.doc.format.shadow(…)Set or clear the shadow inline run property on the target text range.
format.embosseditor.doc.format.emboss(…)Set or clear the emboss inline run property on the target text range.
format.imprinteditor.doc.format.imprint(…)Set or clear the imprint inline run property on the target text range.
format.charScaleeditor.doc.format.charScale(…)Set or clear the charScale inline run property on the target text range.
format.kerningeditor.doc.format.kerning(…)Set or clear the kerning inline run property on the target text range.
format.vanisheditor.doc.format.vanish(…)Set or clear the vanish inline run property on the target text range.
format.webHiddeneditor.doc.format.webHidden(…)Set or clear the webHidden inline run property on the target text range.
format.specVanisheditor.doc.format.specVanish(…)Set or clear the specVanish inline run property on the target text range.
format.rtleditor.doc.format.rtl(…)Set or clear the rtl inline run property on the target text range.
format.cseditor.doc.format.cs(…)Set or clear the cs inline run property on the target text range.
format.bCseditor.doc.format.bCs(…)Set or clear the bCs inline run property on the target text range.
format.iCseditor.doc.format.iCs(…)Set or clear the iCs inline run property on the target text range.
format.eastAsianLayouteditor.doc.format.eastAsianLayout(…)Set or clear the eastAsianLayout inline run property on the target text range.
format.emeditor.doc.format.em(…)Set or clear the em inline run property on the target text range.
format.fitTexteditor.doc.format.fitText(…)Set or clear the fitText inline run property on the target text range.
format.snapToGrideditor.doc.format.snapToGrid(…)Set or clear the snapToGrid inline run property on the target text range.
format.langeditor.doc.format.lang(…)Set or clear the lang inline run property on the target text range.
format.oMatheditor.doc.format.oMath(…)Set or clear the oMath inline run property on the target text range.
format.rStyleeditor.doc.format.rStyle(…)Set or clear the rStyle inline run property on the target text range.
format.rFontseditor.doc.format.rFonts(…)Set or clear the rFonts inline run property on the target text range.
format.fontSizeCseditor.doc.format.fontSizeCs(…)Set or clear the fontSizeCs inline run property on the target text range.
format.ligatureseditor.doc.format.ligatures(…)Set or clear the ligatures inline run property on the target text range.
format.numFormeditor.doc.format.numForm(…)Set or clear the numForm inline run property on the target text range.
format.numSpacingeditor.doc.format.numSpacing(…)Set or clear the numSpacing inline run property on the target text range.
format.stylisticSetseditor.doc.format.stylisticSets(…)Set or clear the stylisticSets inline run property on the target text range.
format.contextualAlternateseditor.doc.format.contextualAlternates(…)Set or clear the contextualAlternates inline run property on the target text range.
format.strikethrougheditor.doc.format.strikethrough(…)Convenience alias for format.strike with value: true.

Styles

OperationAPI member pathDescription
styles.applyeditor.doc.styles.apply(…)Apply document-level default style changes to the stylesheet (word/styles.xml). Targets docDefaults run and paragraph channels with set-style patch semantics.

Lists

OperationAPI member pathDescription
lists.listeditor.doc.lists.list(…)List all list nodes in the document, optionally filtered by scope.
lists.geteditor.doc.lists.get(…)Retrieve a specific list node by target.
lists.inserteditor.doc.lists.insert(…)Insert a new list at the target position.
lists.createeditor.doc.lists.create(…)Create a new list from one or more paragraphs, or convert existing paragraphs into a new list.
lists.attacheditor.doc.lists.attach(…)Convert non-list paragraphs to list items under an existing list sequence.
lists.detacheditor.doc.lists.detach(…)Remove numbering properties from list items, converting them to plain paragraphs.
lists.indenteditor.doc.lists.indent(…)Increase the indentation level of a list item.
lists.outdenteditor.doc.lists.outdent(…)Decrease the indentation level of a list item.
lists.joineditor.doc.lists.join(…)Merge two adjacent list sequences into one.
lists.canJoineditor.doc.lists.canJoin(…)Check whether two adjacent list sequences can be joined.
lists.separateeditor.doc.lists.separate(…)Split a list sequence at the target item, creating a new sequence from that point forward.
lists.setLeveleditor.doc.lists.setLevel(…)Set the absolute nesting level (0..8) of a list item.
lists.setValueeditor.doc.lists.setValue(…)Set an explicit numbering value at the target item. Mid-sequence targets are atomically separated first.
lists.continuePreviouseditor.doc.lists.continuePrevious(…)Continue numbering from the nearest compatible previous list sequence.
lists.canContinuePreviouseditor.doc.lists.canContinuePrevious(…)Check whether the target sequence can continue numbering from a previous compatible sequence.
lists.setLevelRestarteditor.doc.lists.setLevelRestart(…)Set the restart behavior for a specific list level.
lists.convertToTexteditor.doc.lists.convertToText(…)Convert list items to plain paragraphs, optionally prepending the rendered marker text.
lists.applyTemplateeditor.doc.lists.applyTemplate(…)Apply a captured ListTemplate to the target list, optionally filtered to specific levels.
lists.applyPreseteditor.doc.lists.applyPreset(…)Apply a built-in list formatting preset to the target list.
lists.setTypeeditor.doc.lists.setType(…)Convert a list to ordered or bullet and merge adjacent compatible sequences to preserve continuous numbering.
lists.captureTemplateeditor.doc.lists.captureTemplate(…)Capture the formatting of a list as a reusable ListTemplate.
lists.setLevelNumberingeditor.doc.lists.setLevelNumbering(…)Set the numbering format, pattern, and optional start value for a specific list level.
lists.setLevelBulleteditor.doc.lists.setLevelBullet(…)Set the bullet marker text for a specific list level.
lists.setLevelPictureBulleteditor.doc.lists.setLevelPictureBullet(…)Set a picture bullet for a specific list level by its OOXML lvlPicBulletId.
lists.setLevelAlignmenteditor.doc.lists.setLevelAlignment(…)Set the marker alignment (left, center, right) for a specific list level.
lists.setLevelIndentseditor.doc.lists.setLevelIndents(…)Set the paragraph indentation values (left, hanging, firstLine) for a specific list level.
lists.setLevelTrailingCharactereditor.doc.lists.setLevelTrailingCharacter(…)Set the trailing character (tab, space, nothing) after the marker for a specific list level.
lists.setLevelMarkerFonteditor.doc.lists.setLevelMarkerFont(…)Set the font family used for the marker character at a specific list level.
lists.clearLevelOverrideseditor.doc.lists.clearLevelOverrides(…)Remove instance-level overrides for a specific list level, restoring abstract definition values.

Comments

OperationAPI member pathDescription
comments.createeditor.doc.comments.create(…)Create a new comment thread (or reply when parentCommentId is given).
comments.patcheditor.doc.comments.patch(…)Patch fields on an existing comment (text, target, status, or isInternal).
comments.deleteeditor.doc.comments.delete(…)Remove a comment or reply by ID.
comments.geteditor.doc.comments.get(…)Retrieve a single comment thread by ID.
comments.listeditor.doc.comments.list(…)List all comment threads in the document.

Track Changes

OperationAPI member pathDescription
trackChanges.listeditor.doc.trackChanges.list(…)List all tracked changes in the document.
trackChanges.geteditor.doc.trackChanges.get(…)Retrieve a single tracked change by ID.
trackChanges.decideeditor.doc.trackChanges.decide(…)Accept or reject a tracked change (by ID or scope: all).

Query

OperationAPI member pathDescription
query.matcheditor.doc.query.match(…)Deterministic selector-based search with cardinality contracts for mutation targeting.

Mutations

OperationAPI member pathDescription
mutations.previeweditor.doc.mutations.preview(…)Dry-run a mutation plan, returning resolved targets without applying changes.
mutations.applyeditor.doc.mutations.apply(…)Execute a mutation plan atomically against the document.

Paragraph Formatting

OperationAPI member pathDescription
format.paragraph.resetDirectFormattingeditor.doc.format.paragraph.resetDirectFormatting(…)Strip all direct paragraph formatting while preserving style reference, numbering, and section metadata.
format.paragraph.setAlignmenteditor.doc.format.paragraph.setAlignment(…)Set paragraph alignment (justification) on a paragraph-like block.
format.paragraph.clearAlignmenteditor.doc.format.paragraph.clearAlignment(…)Remove direct paragraph alignment, reverting to style-defined or default alignment.
format.paragraph.setIndentationeditor.doc.format.paragraph.setIndentation(…)Set paragraph indentation properties (left, right, firstLine, hanging) in twips.
format.paragraph.clearIndentationeditor.doc.format.paragraph.clearIndentation(…)Remove all direct paragraph indentation.
format.paragraph.setSpacingeditor.doc.format.paragraph.setSpacing(…)Set paragraph spacing properties (before, after, line, lineRule) in twips.
format.paragraph.clearSpacingeditor.doc.format.paragraph.clearSpacing(…)Remove all direct paragraph spacing.
format.paragraph.setKeepOptionseditor.doc.format.paragraph.setKeepOptions(…)Set keep-with-next, keep-lines-together, and widow/orphan control flags.
format.paragraph.setOutlineLeveleditor.doc.format.paragraph.setOutlineLevel(…)Set the paragraph outline level (0–9) or null to clear.
format.paragraph.setFlowOptionseditor.doc.format.paragraph.setFlowOptions(…)Set contextual spacing, page-break-before, and suppress-auto-hyphens flags.
format.paragraph.setTabStopeditor.doc.format.paragraph.setTabStop(…)Add or replace a tab stop at a given position.
format.paragraph.clearTabStopeditor.doc.format.paragraph.clearTabStop(…)Remove a tab stop at a given position.
format.paragraph.clearAllTabStopseditor.doc.format.paragraph.clearAllTabStops(…)Remove all tab stops from a paragraph.
format.paragraph.setBordereditor.doc.format.paragraph.setBorder(…)Set border properties for a specific side of a paragraph.
format.paragraph.clearBordereditor.doc.format.paragraph.clearBorder(…)Remove border for a specific side or all sides of a paragraph.
format.paragraph.setShadingeditor.doc.format.paragraph.setShading(…)Set paragraph shading (background fill, pattern color, pattern type).
format.paragraph.clearShadingeditor.doc.format.paragraph.clearShading(…)Remove all paragraph shading.

Paragraph Styles

OperationAPI member pathDescription
styles.paragraph.setStyleeditor.doc.styles.paragraph.setStyle(…)Set the paragraph style reference (w:pStyle) on a paragraph-like block.
styles.paragraph.clearStyleeditor.doc.styles.paragraph.clearStyle(…)Remove the paragraph style reference from a paragraph-like block.

Tables

OperationAPI member pathDescription
tables.convertFromTexteditor.doc.tables.convertFromText(…)Convert a text range into a table.
tables.deleteeditor.doc.tables.delete(…)Delete the target table from the document.
tables.clearContentseditor.doc.tables.clearContents(…)Clear the contents of the target table or cell range.
tables.moveeditor.doc.tables.move(…)Move a table to a new position in the document.
tables.spliteditor.doc.tables.split(…)Split a table into two tables at the target row.
tables.convertToTexteditor.doc.tables.convertToText(…)Convert a table back to plain text.
tables.setLayouteditor.doc.tables.setLayout(…)Set the layout mode of the target table.
tables.insertRoweditor.doc.tables.insertRow(…)Insert a new row into the target table.
tables.deleteRoweditor.doc.tables.deleteRow(…)Delete a row from the target table.
tables.setRowHeighteditor.doc.tables.setRowHeight(…)Set the height of a table row.
tables.distributeRowseditor.doc.tables.distributeRows(…)Distribute row heights evenly across the target table.
tables.setRowOptionseditor.doc.tables.setRowOptions(…)Set options on a table row such as header repeat or page break.
tables.insertColumneditor.doc.tables.insertColumn(…)Insert a new column into the target table.
tables.deleteColumneditor.doc.tables.deleteColumn(…)Delete a column from the target table.
tables.setColumnWidtheditor.doc.tables.setColumnWidth(…)Set the width of a table column.
tables.distributeColumnseditor.doc.tables.distributeColumns(…)Distribute column widths evenly across the target table.
tables.insertCelleditor.doc.tables.insertCell(…)Insert a new cell into a table row.
tables.deleteCelleditor.doc.tables.deleteCell(…)Delete a cell from a table row.
tables.mergeCellseditor.doc.tables.mergeCells(…)Merge a range of table cells into one.
tables.unmergeCellseditor.doc.tables.unmergeCells(…)Unmerge a previously merged table cell.
tables.splitCelleditor.doc.tables.splitCell(…)Split a table cell into multiple cells.
tables.setCellPropertieseditor.doc.tables.setCellProperties(…)Set properties on a table cell such as vertical alignment or text direction.
tables.sorteditor.doc.tables.sort(…)Sort table rows by a column value.
tables.setAltTexteditor.doc.tables.setAltText(…)Set the alternative text description for a table.
tables.setStyleeditor.doc.tables.setStyle(…)Apply a named table style to the target table.
tables.clearStyleeditor.doc.tables.clearStyle(…)Remove the applied table style, reverting to defaults.
tables.setStyleOptioneditor.doc.tables.setStyleOption(…)Toggle a conditional style option such as banded rows or first column.
tables.setBordereditor.doc.tables.setBorder(…)Set border properties on a table or cell range.
tables.clearBordereditor.doc.tables.clearBorder(…)Remove border formatting from a table or cell range.
tables.applyBorderPreseteditor.doc.tables.applyBorderPreset(…)Apply a border preset (e.g. all borders, outside only) to a table.
tables.setShadingeditor.doc.tables.setShading(…)Set the background shading color on a table or cell range.
tables.clearShadingeditor.doc.tables.clearShading(…)Remove shading from a table or cell range.
tables.setTablePaddingeditor.doc.tables.setTablePadding(…)Set default cell padding for the entire table.
tables.setCellPaddingeditor.doc.tables.setCellPadding(…)Set padding on a specific table cell or cell range.
tables.setCellSpacingeditor.doc.tables.setCellSpacing(…)Set the cell spacing for the target table.
tables.clearCellSpacingeditor.doc.tables.clearCellSpacing(…)Remove custom cell spacing from the target table.
tables.geteditor.doc.tables.get(…)Retrieve table structure and dimensions by locator.
tables.getCellseditor.doc.tables.getCells(…)Retrieve cell information for a table, optionally filtered by row or column.
tables.getPropertieseditor.doc.tables.getProperties(…)Retrieve layout and style properties of a table.
tables.getStyleseditor.doc.tables.getStyles(…)List all table styles and the document-level default table style setting.
tables.setDefaultStyleeditor.doc.tables.setDefaultStyle(…)Set the document-level default table style (w:defaultTableStyle in settings.xml).
tables.clearDefaultStyleeditor.doc.tables.clearDefaultStyle(…)Remove the document-level default table style setting.

History

OperationAPI member pathDescription
history.geteditor.doc.history.get(…)Query the current undo/redo history state of the active editor.
history.undoeditor.doc.history.undo(…)Undo the most recent history-safe mutation in the active editor.
history.redoeditor.doc.history.redo(…)Redo the most recently undone action in the active editor.

Table of Contents

OperationAPI member pathDescription
toc.listeditor.doc.toc.list(…)List all tables of contents in the document.
toc.geteditor.doc.toc.get(…)Retrieve details of a specific table of contents.
toc.configureeditor.doc.toc.configure(…)Update the configuration switches of a table of contents.
toc.updateeditor.doc.toc.update(…)Rebuild or refresh the materialized content of a table of contents.
toc.removeeditor.doc.toc.remove(…)Remove a table of contents from the document.
toc.markEntryeditor.doc.toc.markEntry(…)Insert a TC (table of contents entry) field at the target paragraph.
toc.unmarkEntryeditor.doc.toc.unmarkEntry(…)Remove a TC (table of contents entry) field from the document.
toc.listEntrieseditor.doc.toc.listEntries(…)List all TC (table of contents entry) fields in the document body.
toc.getEntryeditor.doc.toc.getEntry(…)Retrieve details of a specific TC (table of contents entry) field.
toc.editEntryeditor.doc.toc.editEntry(…)Update the properties of a TC (table of contents entry) field.

Images

OperationAPI member pathDescription
images.listeditor.doc.images.list(…)List all images in the document.
images.geteditor.doc.images.get(…)Get details for a specific image by its stable ID.
images.deleteeditor.doc.images.delete(…)Delete an image from the document.
images.moveeditor.doc.images.move(…)Move an image to a new location in the document.
images.convertToInlineeditor.doc.images.convertToInline(…)Convert a floating image to inline placement.
images.convertToFloatingeditor.doc.images.convertToFloating(…)Convert an inline image to floating placement.
images.setSizeeditor.doc.images.setSize(…)Set explicit width/height for an image.
images.setWrapTypeeditor.doc.images.setWrapType(…)Set the text wrapping type for a floating image.
images.setWrapSideeditor.doc.images.setWrapSide(…)Set which side(s) text wraps around a floating image.
images.setWrapDistanceseditor.doc.images.setWrapDistances(…)Set the text-wrap distance margins for a floating image.
images.setPositioneditor.doc.images.setPosition(…)Set the anchor position for a floating image.
images.setAnchorOptionseditor.doc.images.setAnchorOptions(…)Set anchor behavior options for a floating image.
images.setZOrdereditor.doc.images.setZOrder(…)Set the z-order (relativeHeight) for a floating image.
images.scaleeditor.doc.images.scale(…)Scale an image by a uniform factor applied to both dimensions.
images.setLockAspectRatioeditor.doc.images.setLockAspectRatio(…)Lock or unlock the aspect ratio for an image.
images.rotateeditor.doc.images.rotate(…)Set the absolute rotation angle for an image.
images.flipeditor.doc.images.flip(…)Set horizontal and/or vertical flip state for an image.
images.cropeditor.doc.images.crop(…)Apply rectangular edge-percentage crop to an image.
images.resetCropeditor.doc.images.resetCrop(…)Remove all cropping from an image.
images.replaceSourceeditor.doc.images.replaceSource(…)Replace the image source while preserving identity and placement.
images.setAltTexteditor.doc.images.setAltText(…)Set the accessibility description (alt text) for an image.
images.setDecorativeeditor.doc.images.setDecorative(…)Mark or unmark an image as decorative.
images.setNameeditor.doc.images.setName(…)Set the object name for an image.
images.setHyperlinkeditor.doc.images.setHyperlink(…)Set or remove the hyperlink attached to an image.
images.insertCaptioneditor.doc.images.insertCaption(…)Insert a caption paragraph below the image.
images.updateCaptioneditor.doc.images.updateCaption(…)Update the text of an existing caption paragraph.
images.removeCaptioneditor.doc.images.removeCaption(…)Remove the caption paragraph from below the image.
OperationAPI member pathDescription
hyperlinks.listeditor.doc.hyperlinks.list(…)List all hyperlinks in the document, with optional filtering by href, anchor, or display text.
hyperlinks.geteditor.doc.hyperlinks.get(…)Retrieve details of a specific hyperlink by its inline address.
hyperlinks.wrapeditor.doc.hyperlinks.wrap(…)Wrap an existing text range with a hyperlink.
hyperlinks.inserteditor.doc.hyperlinks.insert(…)Insert new linked text at a target position.
hyperlinks.patcheditor.doc.hyperlinks.patch(…)Update hyperlink metadata (destination, tooltip, target, rel) without changing display text.
hyperlinks.removeeditor.doc.hyperlinks.remove(…)Remove a hyperlink. Mode ‘unwrap’ preserves display text; ‘deleteText’ removes the linked content entirely.

Headers & Footers

OperationAPI member pathDescription
headerFooters.listeditor.doc.headerFooters.list(…)List header/footer slot entries across sections.
headerFooters.geteditor.doc.headerFooters.get(…)Get a single header/footer slot entry by address.
headerFooters.resolveeditor.doc.headerFooters.resolve(…)Resolve the effective header/footer reference for a slot, walking the section inheritance chain.
headerFooters.refs.seteditor.doc.headerFooters.refs.set(…)Set an explicit header/footer reference on a section slot.
headerFooters.refs.cleareditor.doc.headerFooters.refs.clear(…)Clear an explicit header/footer reference from a section slot.
headerFooters.refs.setLinkedToPreviouseditor.doc.headerFooters.refs.setLinkedToPrevious(…)Link or unlink a header/footer slot to/from the previous section.
headerFooters.parts.listeditor.doc.headerFooters.parts.list(…)List unique header/footer part records from document relationships.
headerFooters.parts.createeditor.doc.headerFooters.parts.create(…)Create a new independent header/footer part, optionally cloned from an existing part.
headerFooters.parts.deleteeditor.doc.headerFooters.parts.delete(…)Delete a header/footer part and its associated relationship when no section slots reference it.

Content Controls

OperationAPI member pathDescription
create.contentControleditor.doc.create.contentControl(…)Create a new content control (SDT) in the document.
contentControls.listeditor.doc.contentControls.list(…)List all content controls in the document with optional type/tag filtering.
contentControls.geteditor.doc.contentControls.get(…)Retrieve a single content control by target.
contentControls.listInRangeeditor.doc.contentControls.listInRange(…)List content controls within a block range.
contentControls.selectByTageditor.doc.contentControls.selectByTag(…)Select content controls matching a specific tag value.
contentControls.selectByTitleeditor.doc.contentControls.selectByTitle(…)Select content controls matching a specific title (alias) value.
contentControls.listChildreneditor.doc.contentControls.listChildren(…)List direct child content controls nested inside the target.
contentControls.getParenteditor.doc.contentControls.getParent(…)Get the parent content control of the target, if any.
contentControls.wrapeditor.doc.contentControls.wrap(…)Wrap existing content with a new content control.
contentControls.unwrapeditor.doc.contentControls.unwrap(…)Remove the content control wrapper, preserving its content in place.
contentControls.deleteeditor.doc.contentControls.delete(…)Delete a content control and its content from the document.
contentControls.copyeditor.doc.contentControls.copy(…)Copy a content control to a destination position. Copied SDTs receive new IDs.
contentControls.moveeditor.doc.contentControls.move(…)Move a content control to a new position. Preserves original IDs.
contentControls.patcheditor.doc.contentControls.patch(…)Patch metadata properties on a content control (tag, alias, appearance, color, etc.).
contentControls.setLockModeeditor.doc.contentControls.setLockMode(…)Set the lock mode on a content control.
contentControls.setTypeeditor.doc.contentControls.setType(…)Transition a content control to a different semantic type. Metadata-only; no implicit content rewrite.
contentControls.getContenteditor.doc.contentControls.getContent(…)Get the text content of a content control.
contentControls.replaceContenteditor.doc.contentControls.replaceContent(…)Replace the entire content of a content control.
contentControls.clearContenteditor.doc.contentControls.clearContent(…)Clear all content inside a content control, leaving it empty.
contentControls.appendContenteditor.doc.contentControls.appendContent(…)Append content to the end of a content control.
contentControls.prependContenteditor.doc.contentControls.prependContent(…)Prepend content to the beginning of a content control.
contentControls.insertBeforeeditor.doc.contentControls.insertBefore(…)Insert content immediately before a content control.
contentControls.insertAftereditor.doc.contentControls.insertAfter(…)Insert content immediately after a content control.
contentControls.getBindingeditor.doc.contentControls.getBinding(…)Get the data binding metadata (w:dataBinding) of a content control.
contentControls.setBindingeditor.doc.contentControls.setBinding(…)Set data binding metadata on a content control.
contentControls.clearBindingeditor.doc.contentControls.clearBinding(…)Remove data binding metadata from a content control.
contentControls.getRawPropertieseditor.doc.contentControls.getRawProperties(…)Get the raw sdtPr properties of a content control as a passthrough hash.
contentControls.patchRawPropertieseditor.doc.contentControls.patchRawProperties(…)Apply raw XML-level patches to the sdtPr subtree of a content control.
contentControls.validateWordCompatibilityeditor.doc.contentControls.validateWordCompatibility(…)Validate a content control for Word compatibility issues.
contentControls.normalizeWordCompatibilityeditor.doc.contentControls.normalizeWordCompatibility(…)Normalize a content control to resolve Word compatibility issues.
contentControls.normalizeTagPayloadeditor.doc.contentControls.normalizeTagPayload(…)Normalize a content control tag between plain-string and JSON-encoded formats.
contentControls.text.setMultilineeditor.doc.contentControls.text.setMultiline(…)Set or clear the multiline attribute on a plain-text content control.
contentControls.text.setValueeditor.doc.contentControls.text.setValue(…)Set the text value of a plain-text content control.
contentControls.text.clearValueeditor.doc.contentControls.text.clearValue(…)Clear the text value of a plain-text content control.
contentControls.date.setValueeditor.doc.contentControls.date.setValue(…)Set the date value of a date content control.
contentControls.date.clearValueeditor.doc.contentControls.date.clearValue(…)Clear the date value of a date content control.
contentControls.date.setDisplayFormateditor.doc.contentControls.date.setDisplayFormat(…)Set the display format string for a date content control.
contentControls.date.setDisplayLocaleeditor.doc.contentControls.date.setDisplayLocale(…)Set the display locale for a date content control.
contentControls.date.setStorageFormateditor.doc.contentControls.date.setStorageFormat(…)Set the XML storage format for a date content control.
contentControls.date.setCalendareditor.doc.contentControls.date.setCalendar(…)Set the calendar type for a date content control.
contentControls.checkbox.getStateeditor.doc.contentControls.checkbox.getState(…)Get the checked state of a checkbox content control.
contentControls.checkbox.setStateeditor.doc.contentControls.checkbox.setState(…)Set the checked state of a checkbox content control.
contentControls.checkbox.toggleeditor.doc.contentControls.checkbox.toggle(…)Toggle the checked state of a checkbox content control.
contentControls.checkbox.setSymbolPaireditor.doc.contentControls.checkbox.setSymbolPair(…)Set the checked and unchecked symbol glyphs for a checkbox content control.
contentControls.choiceList.getItemseditor.doc.contentControls.choiceList.getItems(…)Get the list items and selected value of a comboBox or dropDownList content control.
contentControls.choiceList.setItemseditor.doc.contentControls.choiceList.setItems(…)Replace the list items of a comboBox or dropDownList content control.
contentControls.choiceList.setSelectededitor.doc.contentControls.choiceList.setSelected(…)Set the selected value of a comboBox or dropDownList content control.
contentControls.repeatingSection.listItemseditor.doc.contentControls.repeatingSection.listItems(…)List the repeating section items inside a repeating section content control.
contentControls.repeatingSection.insertItemBeforeeditor.doc.contentControls.repeatingSection.insertItemBefore(…)Insert a new item before a specific index in a repeating section.
contentControls.repeatingSection.insertItemAftereditor.doc.contentControls.repeatingSection.insertItemAfter(…)Insert a new item after a specific index in a repeating section.
contentControls.repeatingSection.cloneItemeditor.doc.contentControls.repeatingSection.cloneItem(…)Clone a repeating section item at the given index. Cloned SDTs receive new IDs.
contentControls.repeatingSection.deleteItemeditor.doc.contentControls.repeatingSection.deleteItem(…)Delete a repeating section item at the given index.
contentControls.repeatingSection.setAllowInsertDeleteeditor.doc.contentControls.repeatingSection.setAllowInsertDelete(…)Set the allowInsertDelete flag on a repeating section.
contentControls.group.wrapeditor.doc.contentControls.group.wrap(…)Wrap a content control inside a new group content control. Always nests; not idempotent.
contentControls.group.ungroupeditor.doc.contentControls.group.ungroup(…)Remove the group designation from a group content control.

Bookmarks

OperationAPI member pathDescription
bookmarks.listeditor.doc.bookmarks.list(…)List all bookmarks in the document.
bookmarks.geteditor.doc.bookmarks.get(…)Get detailed information about a specific bookmark.
bookmarks.inserteditor.doc.bookmarks.insert(…)Insert a new named bookmark at a target location.
bookmarks.renameeditor.doc.bookmarks.rename(…)Rename an existing bookmark.
bookmarks.removeeditor.doc.bookmarks.remove(…)Remove a bookmark from the document.

Footnotes

OperationAPI member pathDescription
footnotes.listeditor.doc.footnotes.list(…)List all footnotes and endnotes in the document.
footnotes.geteditor.doc.footnotes.get(…)Get detailed information about a specific footnote or endnote.
footnotes.inserteditor.doc.footnotes.insert(…)Insert a new footnote or endnote at a target location.
footnotes.updateeditor.doc.footnotes.update(…)Update the content of an existing footnote or endnote.
footnotes.removeeditor.doc.footnotes.remove(…)Remove a footnote or endnote from the document.
footnotes.configureeditor.doc.footnotes.configure(…)Configure numbering and placement for footnotes or endnotes.

Cross-References

OperationAPI member pathDescription
crossRefs.listeditor.doc.crossRefs.list(…)List all cross-reference fields in the document.
crossRefs.geteditor.doc.crossRefs.get(…)Get detailed information about a specific cross-reference field.
crossRefs.inserteditor.doc.crossRefs.insert(…)Insert a new cross-reference field at a target location.
crossRefs.rebuildeditor.doc.crossRefs.rebuild(…)Rebuild (recalculate) a cross-reference field.
crossRefs.removeeditor.doc.crossRefs.remove(…)Remove a cross-reference field from the document.

Index

OperationAPI member pathDescription
index.listeditor.doc.index.list(…)List all index blocks in the document.
index.geteditor.doc.index.get(…)Get detailed information about a specific index block.
index.inserteditor.doc.index.insert(…)Insert a new index block at a target location.
index.configureeditor.doc.index.configure(…)Update the configuration of an existing index block.
index.rebuildeditor.doc.index.rebuild(…)Rebuild (regenerate) an index block from its entries.
index.removeeditor.doc.index.remove(…)Remove an index block from the document.
index.entries.listeditor.doc.index.entries.list(…)List all XE (index entry) fields in the document.
index.entries.geteditor.doc.index.entries.get(…)Get detailed information about a specific XE index entry.
index.entries.inserteditor.doc.index.entries.insert(…)Insert a new XE index entry field at a target location.
index.entries.updateeditor.doc.index.entries.update(…)Update the properties of an existing XE index entry.
index.entries.removeeditor.doc.index.entries.remove(…)Remove an XE index entry field from the document.

Captions

OperationAPI member pathDescription
captions.listeditor.doc.captions.list(…)List all caption paragraphs in the document.
captions.geteditor.doc.captions.get(…)Get detailed information about a specific caption paragraph.
captions.inserteditor.doc.captions.insert(…)Insert a new caption paragraph adjacent to a target block.
captions.updateeditor.doc.captions.update(…)Update the text of an existing caption paragraph.
captions.removeeditor.doc.captions.remove(…)Remove a caption paragraph from the document.
captions.configureeditor.doc.captions.configure(…)Configure numbering format for a caption label.

Fields

OperationAPI member pathDescription
fields.listeditor.doc.fields.list(…)List all fields in the document.
fields.geteditor.doc.fields.get(…)Get detailed information about a specific field.
fields.inserteditor.doc.fields.insert(…)Insert a raw field code at a target location.
fields.rebuildeditor.doc.fields.rebuild(…)Rebuild (recalculate) a field.
fields.removeeditor.doc.fields.remove(…)Remove a field from the document.

Citations

OperationAPI member pathDescription
citations.listeditor.doc.citations.list(…)List all citation marks in the document.
citations.geteditor.doc.citations.get(…)Get detailed information about a specific citation mark.
citations.inserteditor.doc.citations.insert(…)Insert a new citation mark at a target location.
citations.updateeditor.doc.citations.update(…)Update an existing citation mark’s source references.
citations.removeeditor.doc.citations.remove(…)Remove a citation mark from the document.
citations.sources.listeditor.doc.citations.sources.list(…)List all citation sources in the document store.
citations.sources.geteditor.doc.citations.sources.get(…)Get detailed information about a specific citation source.
citations.sources.inserteditor.doc.citations.sources.insert(…)Register a new citation source in the document store.
citations.sources.updateeditor.doc.citations.sources.update(…)Update the fields of an existing citation source.
citations.sources.removeeditor.doc.citations.sources.remove(…)Remove a citation source from the document store.
citations.bibliography.geteditor.doc.citations.bibliography.get(…)Get information about the bibliography block.
citations.bibliography.inserteditor.doc.citations.bibliography.insert(…)Insert a bibliography block at a target location.
citations.bibliography.rebuildeditor.doc.citations.bibliography.rebuild(…)Rebuild the bibliography from current sources.
citations.bibliography.configureeditor.doc.citations.bibliography.configure(…)Configure the bibliography style.
citations.bibliography.removeeditor.doc.citations.bibliography.remove(…)Remove the bibliography block from the document.

Table of Authorities

OperationAPI member pathDescription
authorities.listeditor.doc.authorities.list(…)List all table-of-authorities blocks in the document.
authorities.geteditor.doc.authorities.get(…)Get detailed information about a specific table-of-authorities block.
authorities.inserteditor.doc.authorities.insert(…)Insert a new table-of-authorities block at a target location.
authorities.configureeditor.doc.authorities.configure(…)Update the configuration of an existing table-of-authorities block.
authorities.rebuildeditor.doc.authorities.rebuild(…)Rebuild a table-of-authorities block from its entries.
authorities.removeeditor.doc.authorities.remove(…)Remove a table-of-authorities block from the document.
authorities.entries.listeditor.doc.authorities.entries.list(…)List all TA (authority entry) fields in the document.
authorities.entries.geteditor.doc.authorities.entries.get(…)Get detailed information about a specific TA authority entry.
authorities.entries.inserteditor.doc.authorities.entries.insert(…)Insert a new TA authority entry field at a target location.
authorities.entries.updateeditor.doc.authorities.entries.update(…)Update the properties of an existing TA authority entry.
authorities.entries.removeeditor.doc.authorities.entries.remove(…)Remove a TA authority entry field from the document.