> ## Documentation Index
> Fetch the complete documentation index at: https://composio-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Word

> Microsoft Word tools for finding, downloading, updating, and managing DOCX files in OneDrive and SharePoint through Microsoft Graph

![Microsoft Word logo](https://mintcdn.com/composio-preview/9YPuzjEU4UlMnwGq/images/toolkits/microsoft_word.svg?fit=max\&auto=format\&n=9YPuzjEU4UlMnwGq\&q=85\&s=88c9589dcca4122006e60cb501593102)

* **Category:** documents
* **Auth:** OAUTH2
* **Composio-managed OAuth available?** No
* **Tools:** 23
* **Triggers:** 0
* **Slug:** `MICROSOFT_WORD`
* **Version:** 20261101\_00

## Tools

> [accordion] Add Comment
>
> **Slug:** `MICROSOFT_WORD_ADD_COMMENT`
>
> Add a Word comment to a paragraph selected by a READ\_DOCX locator or by exact text that uniquely matches a main-document paragraph. A locator requires the document’s eTag.
>
> #### Input Parameters
>
> **author** `string` *required*
>
> Comment author.
>
> **comment** `string` *required*
>
> Comment text.
>
> **item\_id** `string` *required*
>
> DOCX item ID.
>
> **drive\_id** `string` *required*
>
> Drive ID.
>
> **initials** `string`
>
> Optional author initials.
>
> **anchor\_text** `string`
>
> Exact text of one document paragraph to comment.
>
> **expected\_etag** `string`
>
> Optional exact eTag concurrency guard; required when paragraph\_locator selects an eTag-bound target.
>
> **upload\_strategy** `string ("auto" | "direct" | "resumable")`
>
> Upload mode.
>
> **paragraph\_locator** `string`
>
> READ\_DOCX paragraph locator; use instead of anchor\_text.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Append Content
>
> **Slug:** `MICROSOFT_WORD_APPEND_CONTENT`
>
> Append plain text or supported Markdown paragraphs, headings, formatted runs, lists, rectangular tables, safe http/https/mailto links, and Courier New inline or fenced code to a DOCX body.
>
> #### Input Parameters
>
> **format** `string ("markdown" | "plain")`
>
> Content format; Markdown supports safe links and Courier New code text.
>
> **content** `string` *required*
>
> Plain text or supported Markdown to append. Markdown preserves safe http, https, and mailto links; inline and fenced code use Courier New.
>
> **item\_id** `string` *required*
>
> DOCX item ID.
>
> **drive\_id** `string` *required*
>
> Drive ID.
>
> **expected\_etag** `string`
>
> Optional exact eTag concurrency guard.
>
> **upload\_strategy** `string ("auto" | "direct" | "resumable")`
>
> Upload mode.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Copy DOCX
>
> **Slug:** `MICROSOFT_WORD_COPY_DOCX`
>
> Copy a Graph DOCX item with both a .docx filename and DOCX MIME type to a OneDrive or SharePoint folder, wait boundedly for the asynchronous operation, and return verified destination metadata. If waiting times out, the server-side copy may continue.
>
> #### Input Parameters
>
> **new\_name** `string`
>
> New filename ending in .docx; omit to keep the source filename. Cannot be combined with include\_all\_version\_history because Graph can ignore version-history copying when a new name is supplied.
>
> **source\_item\_id** `string` *required*
>
> Source DOCX driveItem ID.
>
> **source\_drive\_id** `string` *required*
>
> Drive containing the source DOCX.
>
> **destination\_drive\_id** `string` *required*
>
> Drive where the copied DOCX will be created.
>
> **wait\_timeout\_seconds** `number`
>
> Maximum time to wait for Microsoft to report completion. A timeout is ambiguous because the server-side copy can continue.
>
> **destination\_folder\_id** `string` *required*
>
> Destination folder driveItem ID.
>
> **include\_all\_version\_history** `boolean`
>
> Copy all source versions instead of only the latest version. Requires new\_name to be omitted because Graph can ignore version-history copying when a new name is supplied.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create DOCX
>
> **Slug:** `MICROSOFT_WORD_CREATE_DOCX`
>
> Create a safe DOCX containing styled paragraphs and formatted runs, bullet or decimal lists, rectangular tables, or constrained HTML/Markdown source with safe external links and inline or fenced code rendered in Courier New, plus validated inline PNG/JPEG images, page breaks, and default/first/even headers and footers. Literal content is escaped and raw XML or image URLs are never accepted. The create-only default fails on a filename conflict. overwrite\_existing remains available for backward compatibility; prefer UPSERT\_DOCX when replacement is intended.
>
> #### Input Parameters
>
> **blocks** `array`
>
> Ordered paragraph, table, inline-image, and page-break blocks. Legacy objects containing only text and style remain valid paragraphs.
>
> **source** `string`
>
> Constrained HTML or Markdown source. Provide exactly one of source or blocks; parsed content is converted to the same validated block model.
>
> **footers** `object`
>
> Optional default, first, and even footer paragraphs.
>
> **headers** `object`
>
> Optional default, first, and even header paragraphs.
>
> **drive\_id** `string` *required*
>
> Destination OneDrive or SharePoint document-library drive ID.
>
> **filename** `string` *required*
>
> Destination filename ending in .docx. Path separators are rejected.
>
> **upload\_strategy** `string ("auto" | "direct" | "resumable")`
>
> Upload mode. Keep the recommended auto setting to use direct upload through 10 MiB and resilient resumable upload above it. Force direct only when resumability is unwanted, or resumable when interruption recovery is required for a smaller document.
>
> **parent\_folder\_id** `string` *required*
>
> Destination folder driveItem ID.
>
> **overwrite\_existing** `boolean`
>
> Deprecated compatibility field. When true, replace a same-name item; prefer UPSERT\_DOCX for that intent. The safe false default creates only and fails on a name conflict.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create DOCX sharing link
>
> **Slug:** `MICROSOFT_WORD_CREATE_DOCX_SHARING_LINK`
>
> Create a view, edit, or embed sharing link for a verified DOCX. When link\_scope is omitted, Graph uses the drive's default scope, which can be anonymous. Returns Graph's capability-bearing URL; treat it as a secret. Sharing can change the document eTag, so call READ\_DOCX again before editing. Setting retain\_inherited\_permissions=false removes all existing permissions when the item is shared for the first time.
>
> #### Input Parameters
>
> **item\_id** `string` *required*
>
> DOCX driveItem ID.
>
> **drive\_id** `string` *required*
>
> Drive containing the DOCX to share.
>
> **link\_type** `string ("view" | "edit" | "embed")`
>
> Link behavior: read-only view, read-write edit, or embeddable embed. Defaults to view.
>
> **link\_scope** `string ("anonymous" | "organization" | "users")`
>
> Optional audience: anonymous, organization, or specified users. When omitted, Graph uses the drive's default link scope, which can be anonymous.
>
> **sharing\_passcode** `string`
>
> Optional password sent to Graph for this link. Availability depends on tenant sharing policy and plan; personal OneDrive may require a Microsoft 365 Personal or Family paid plan.
>
> **expiration\_datetime** `string`
>
> Optional link expiration timestamp in ISO 8601 format. On personal OneDrive, this capability may require a Microsoft 365 Personal or Family paid plan.
>
> **retain\_inherited\_permissions** `boolean`
>
> Whether to retain inherited permissions when sharing the item for the first time. Setting false removes all existing permissions, which is destructive; omit to use Graph's default behavior.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete DOCX
>
> **Slug:** `MICROSOFT_WORD_DELETE_DOCX`
>
> Move one DOCX to the provider recycle bin only when its current eTag matches. This action does not bypass shared locks or checked-out state. A successful result does not guarantee permanent erasure.
>
> #### Input Parameters
>
> **item\_id** `string` *required*
>
> DOCX driveItem ID to move to the provider recycle bin.
>
> **drive\_id** `string` *required*
>
> Drive containing the DOCX.
>
> **expected\_etag** `string` *required*
>
> Current driveItem eTag; deletion fails if the item changed.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Edit DOCX
>
> **Slug:** `MICROSOFT_WORD_EDIT_DOCX`
>
> Atomically edit literal text, paragraphs, independent Latin/non-complex and complex-script run formatting, lists, rectangular tables including plain cells and rows outside merged regions, uploaded inline PNG/JPEG images, semantic comments, tracked text changes, revision acceptance or rejection, safe external hyperlinks, paired footnotes, section headers or footers, and explicit page breaks in a DOCX. Targets are semantic locators from READ\_DOCX and remain valid only for its eTag. The complete package is validated before one guarded replacement upload.
>
> #### Input Parameters
>
> **item\_id** `string` *required*
>
> DOCX driveItem ID.
>
> **drive\_id** `string` *required*
>
> OneDrive or SharePoint document-library drive ID.
>
> **operations** `array` *required*
>
> Ordered, eTag-bound semantic edits. Every operation must change content and succeed atomically. Text is limited to 1,000,000 characters; at most 20 uploaded images, 10 MiB each and 25 MiB total, may be inserted.
>
> **expected\_etag** `string` *required*
>
> Exact eTag returned by READ\_DOCX; the edit fails if the document changed.
>
> **upload\_strategy** `string ("auto" | "direct" | "resumable")`
>
> Upload mode. Keep the recommended auto setting to use direct upload through 10 MiB and resilient resumable upload above it. Force direct only when resumability is unwanted, or resumable when interruption recovery is required for a smaller document.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Export DOCX to PDF
>
> **Slug:** `MICROSOFT_WORD_EXPORT_DOCX`
>
> Convert a DOCX of at most 2 MB to PDF through Microsoft Graph and return a temporary file reference. The provider's preauthenticated redirect URL is followed internally and is never returned.
>
> #### Input Parameters
>
> **item\_id** `string` *required*
>
> DOCX driveItem ID.
>
> **drive\_id** `string` *required*
>
> Drive containing the DOCX to export.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Fill Template
>
> **Slug:** `MICROSOFT_WORD_FILL_TEMPLATE`
>
> Fill run-spanning placeholders in main-document paragraphs of a validated DOCX template snapshot, then create a new document. Strict mode requires every requested placeholder to be found; non-strict mode can create a partial fill and reports found, filled, and unfilled keys.
>
> #### Input Parameters
>
> **values** `object` *required*
>
> Placeholder keys mapped to literal values. Keys contain 1 to 255 characters and cannot contain braces. The original main document may contain at most 100 unique placeholders under the same key grammar.
>
> **file\_name** `string` *required*
>
> New .docx filename.
>
> **expected\_etag** `string`
>
> Optional exact template eTag guard before destination creation.
>
> **fail\_on\_missing** `boolean`
>
> When true, fail before destination creation if any requested main-document placeholder is absent. When false, create a partial fill and report absent requested keys by comparing the requested values keys with placeholders\_filled.
>
> **upload\_strategy** `string ("auto" | "direct" | "resumable")`
>
> Filled-copy upload mode.
>
> **template\_item\_id** `string` *required*
>
> Template DOCX item ID.
>
> **placeholder\_style** `string ("\{\{key\}\}" | "\{key\}")`
>
> Placeholder delimiter style.
>
> **template\_drive\_id** `string` *required*
>
> Drive containing the template and destination folder.
>
> **wait\_timeout\_seconds** `number`
>
> Deprecated compatibility field; filling no longer performs an async copy.
>
> **destination\_folder\_id** `string` *required*
>
> Destination folder in template\_drive\_id.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Find DOCX files
>
> **Slug:** `MICROSOFT_WORD_FIND_DOCX_FILES`
>
> Browse one folder or search a drive for DOCX files. Browse pages also return folders for navigation. Search results can be eventually consistent; use a direct read action when authoritative current state is required.
>
> #### Input Parameters
>
> **mode** `string ("browse" | "search")` *required*
>
> Browse one folder's immediate children or search the entire drive.
>
> **query** `string`
>
> Filename, metadata, or content search text; required in search mode.
>
> **cursor** `string`
>
> Opaque cursor returned by the prior page; omit for the first page.
>
> **drive\_id** `string` *required*
>
> OneDrive or SharePoint document-library drive ID.
>
> **page\_size** `integer`
>
> Maximum upstream items to inspect on this page (1-200). Filtering can yield fewer returned items.
>
> **folder\_item\_id** `string`
>
> Folder driveItem ID; required in browse mode. Use the actual root item ID, not the word root.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Find SharePoint sites
>
> **Slug:** `MICROSOFT_WORD_FIND_SHAREPOINT_SITES`
>
> Find accessible SharePoint sites by keyword, or resolve one known hostname and site path to its site ID.
>
> #### Input Parameters
>
> **query** `string`
>
> Free-text site keyword query; required only when lookup\_mode is search. This searches matching sites and does not enumerate every accessible site.
>
> **cursor** `string`
>
> Opaque cursor returned by a prior search page; omit for the first page and for path lookup.
>
> **hostname** `string`
>
> SharePoint hostname such as tenant.sharepoint.com; required only for path lookup.
>
> **page\_size** `integer`
>
> Maximum sites to return on this search page (1-100); ignored for path lookup.
>
> **site\_path** `string`
>
> Server-relative site path without the hostname, such as sites/Legal; required only for path lookup.
>
> **lookup\_mode** `string ("search" | "path")` *required*
>
> Use search for a keyword query or path when the SharePoint hostname and site-relative path are known.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Microsoft Word account context
>
> **Slug:** `MICROSOFT_WORD_GET_ACCOUNT_CONTEXT`
>
> Return the signed-in Microsoft identity and primary OneDrive identifiers needed to start OneDrive DOCX work. Microsoft Graph documents that GET /me/drive automatically provisions OneDrive when the delegated user is licensed but does not yet have a drive.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Invite DOCX recipients
>
> **Slug:** `MICROSOFT_WORD_INVITE_DOCX_RECIPIENTS`
>
> Grant read or write access to required named recipients. send\_invitation and require\_sign\_in are required; emailing an invitation is an irreversible external side effect. Partial success is reported per recipient. Sharing can change the document eTag, so call READ\_DOCX again before editing. Setting retain\_inherited\_permissions=false removes all existing permissions when the item is shared for the first time.
>
> #### Input Parameters
>
> **roles** `array` *required*
>
> Required read and/or write roles to grant.
>
> **item\_id** `string` *required*
>
> DOCX driveItem ID.
>
> **message** `string`
>
> Optional plain-text invite message, up to 500 characters.
>
> **drive\_id** `string` *required*
>
> Drive containing the DOCX to share.
>
> **recipients** `array` *required*
>
> Required recipients, each identified by exactly one email, alias, or directory objectId.
>
> **require\_sign\_in** `boolean` *required*
>
> Required: whether recipients must sign in to access the DOCX.
>
> **send\_invitation** `boolean` *required*
>
> Required: whether Graph should email the sharing invitation.
>
> **sharing\_passcode** `string`
>
> Optional password sent to Graph for this sharing permission. Availability depends on tenant sharing policy and plan; personal OneDrive may require a Microsoft 365 Personal or Family paid plan.
>
> **expiration\_datetime** `string`
>
> Optional sharing permission expiration timestamp in ISO 8601 format. On personal OneDrive, this capability may require a Microsoft 365 Personal or Family paid plan.
>
> **retain\_inherited\_permissions** `boolean`
>
> Whether to retain inherited permissions when sharing the item for the first time. Setting false removes all existing permissions, which is destructive; omit to use Graph's default behavior.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List DOCX versions
>
> **Slug:** `MICROSOFT_WORD_LIST_DOCX_VERSIONS`
>
> Validate the selected drive item as a DOCX, then return one page of retained versions in Microsoft Graph's newest-first order. Provider download URLs and raw identity objects are omitted.
>
> #### Input Parameters
>
> **cursor** `string`
>
> Opaque cursor returned by the prior page. Omit it for the first page and pass it back unchanged to continue.
>
> **item\_id** `string` *required*
>
> DOCX driveItem ID.
>
> **drive\_id** `string` *required*
>
> Drive containing the DOCX.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List OneDrive drives
>
> **Slug:** `MICROSOFT_WORD_LIST_ONEDRIVES`
>
> Return one page of drives available to the signed-in user as the Microsoft Word toolkit's OneDrive-drive selector for DOCX workflows. Unlike GET\_ACCOUNT\_CONTEXT, this lists drives without returning identity context or selecting only the primary drive. Use LIST\_SHAREPOINT\_LIBRARIES for a specific SharePoint site's document libraries; general OneDrive file automation may use ONE\_DRIVE\_LIST\_DRIVES instead.
>
> #### Input Parameters
>
> **cursor** `string`
>
> Opaque cursor returned by the prior page. Omit it for the first page and pass it back unchanged to continue.
>
> **page\_size** `integer`
>
> Maximum OneDrive drives to return on this page (1-200).
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List SharePoint document libraries
>
> **Slug:** `MICROSOFT_WORD_LIST_SHAREPOINT_LIBRARIES`
>
> Return one page of document libraries and available root folder item IDs for a SharePoint site ID.
>
> #### Input Parameters
>
> **cursor** `string`
>
> Opaque cursor returned by the prior page. Omit it for the first page and pass it back unchanged to continue.
>
> **site\_id** `string` *required*
>
> SharePoint site ID returned by FIND\_SHAREPOINT\_SITES.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Move or rename DOCX
>
> **Slug:** `MICROSOFT_WORD_MOVE_OR_RENAME_DOCX`
>
> Rename a DOCX, move it within the same drive, or do both, guarded by its current eTag. At least one of new\_name or destination\_folder\_id is required.
>
> #### Input Parameters
>
> **item\_id** `string` *required*
>
> DOCX driveItem ID.
>
> **drive\_id** `string` *required*
>
> Drive containing the DOCX.
>
> **new\_name** `string`
>
> New filename ending in .docx. At least one of new\_name or destination\_folder\_id is required.
>
> **expected\_etag** `string` *required*
>
> Current driveItem eTag; the update fails if the item changed.
>
> **destination\_folder\_id** `string`
>
> Destination folder driveItem ID in the same drive. At least one of new\_name or destination\_folder\_id is required.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Read DOCX
>
> **Slug:** `MICROSOFT_WORD_READ_DOCX`
>
> Inspect a DOCX as bounded rich OOXML, including paragraphs, formatted runs, tables, images, hyperlinks, footnotes, comments, revisions, page breaks, sections and styles. Returns an eTag for locators, withholds download URLs, external relationship targets and document bytes, and applies a 100-megapixel aggregate bound to PNG and JPEG image records.
>
> #### Input Parameters
>
> **parts** `array`
>
> OOXML text-bearing parts to read. Document includes body paragraphs, table cells, and text boxes in the main document part.
>
> **item\_id** `string` *required*
>
> DOCX driveItem ID.
>
> **drive\_id** `string` *required*
>
> OneDrive or SharePoint document-library drive ID.
>
> **max\_characters** `integer`
>
> Maximum text characters to return across all selected parts (1000-500000).
>
> **max\_paragraphs** `integer`
>
> Maximum paragraphs to return across all selected parts (1-2000).
>
> **max\_structural\_elements** `integer`
>
> Maximum paragraphs, runs, tables, rows, cells, images, page breaks, sections, and section references returned across selected parts in package order (1-20000).
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Replace Text
>
> **Slug:** `MICROSOFT_WORD_REPLACE_TEXT`
>
> Replace the first or all occurrences of literal text in the main document of a DOCX, including matches across Word run boundaries. Matching can be case-sensitive or case-insensitive, and replacements can be recorded as tracked revisions. An optional eTag guards against editing a different document version.
>
> #### Input Parameters
>
> **find** `string` *required*
>
> Literal text to find.
>
> **author** `string`
>
> Revision author when tracking changes.
>
> **item\_id** `string` *required*
>
> DOCX item ID.
>
> **replace** `string` *required*
>
> Literal replacement text.
>
> **drive\_id** `string` *required*
>
> Drive ID.
>
> **match\_case** `boolean`
>
> Use case-sensitive matching.
>
> **occurrence** `string ("first" | "all")`
>
> Replace the first or all matches.
>
> **expected\_etag** `string`
>
> Optional exact eTag concurrency guard.
>
> **track\_changes** `boolean`
>
> Record replacements as revisions.
>
> **upload\_strategy** `string ("auto" | "direct" | "resumable")`
>
> Upload mode.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Resolve Tracked Changes
>
> **Slug:** `MICROSOFT_WORD_RESOLVE_TRACKED_CHANGES`
>
> Accept or reject supported pending run-level insertions and deletions in a DOCX, either all or selected revision locators returned by READ\_DOCX. Accept-all and reject-all fail if the document contains unsupported revision forms; selected locators require the corresponding eTag.
>
> #### Input Parameters
>
> **mode** `string ("accept_all" | "reject_all" | "accept" | "reject")` *required*
>
> Accept or reject all revisions, or selected READ\_DOCX revision locators.
>
> **item\_id** `string` *required*
>
> DOCX item ID.
>
> **drive\_id** `string` *required*
>
> Drive ID.
>
> **expected\_etag** `string`
>
> Optional exact eTag concurrency guard; required for accept or reject with eTag-bound revision locators.
>
> **upload\_strategy** `string ("auto" | "direct" | "resumable")`
>
> Upload mode.
>
> **revision\_locators** `array`
>
> Required unique revision locators for accept or reject.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Restore DOCX version
>
> **Slug:** `MICROSOFT_WORD_RESTORE_DOCX_VERSION`
>
> Restore a retained DOCX version as a new current version, preserving version history, then observe the item's current metadata in a post-operation read. That metadata does not independently prove which version supplied the current content. A required eTag check rejects already-stale callers before mutation, but Graph does not document an atomic If-Match precondition for this operation.
>
> #### Input Parameters
>
> **item\_id** `string` *required*
>
> DOCX driveItem ID.
>
> **drive\_id** `string` *required*
>
> Drive containing the DOCX.
>
> **version\_id** `string` *required*
>
> Version ID returned by LIST\_DOCX\_VERSIONS.
>
> **expected\_etag** `string` *required*
>
> Exact current eTag returned by READ\_DOCX. The restore is rejected before the request if the document has already changed.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Share DOCX
>
> **Slug:** `MICROSOFT_WORD_SHARE_DOCX`
>
> Share a verified DOCX by creating a link or inviting named recipients, returning sanitized permission outcomes and a partial-success flag; recipient identities may not be included. Sharing links are capability URLs to treat as secrets, and disabling inherited-permission retention can remove existing permissions on first share.
>
> #### Input Parameters
>
> **mode** `string ("create_link" | "invite")`
>
> Use create\_link for a view, edit, or embed link or invite for named recipients. Defaults to create\_link.
>
> **roles** `array`
>
> Required for invite mode: read and/or write roles to grant.
>
> **item\_id** `string` *required*
>
> DOCX driveItem ID.
>
> **message** `string`
>
> Optional plain-text invite message, up to 500 characters.
>
> **drive\_id** `string` *required*
>
> Drive containing the DOCX to share.
>
> **link\_type** `string ("view" | "edit" | "embed")`
>
> For create\_link, create a read-only view, read-write edit, or embeddable embed link. Defaults to view. Omit this field in invite mode.
>
> **link\_scope** `string ("anonymous" | "organization" | "users")`
>
> Optional create\_link audience: anonymous, organization, or specified users. Use invite mode to grant named recipients directly. When omitted, Graph uses the drive's default link scope, which can be anonymous.
>
> **recipients** `array`
>
> Required for invite mode: recipients identified by exactly one email, alias, or directory objectId.
>
> **require\_sign\_in** `boolean`
>
> Required for invite mode: whether recipients must sign in.
>
> **send\_invitation** `boolean`
>
> Required for invite mode: whether Graph should email the invitation.
>
> **sharing\_passcode** `string`
>
> Optional password sent to Graph for this sharing permission. Availability depends on tenant sharing policy and plan; personal OneDrive may require a Microsoft 365 Personal or Family paid plan.
>
> **expiration\_datetime** `string`
>
> Optional sharing permission expiration timestamp in ISO 8601 format. On personal OneDrive, this capability may require a Microsoft 365 Personal or Family paid plan.
>
> **retain\_inherited\_permissions** `boolean`
>
> Whether to retain inherited permissions when sharing the item for the first time. Setting false removes all existing permissions, which is destructive; omit to use Graph's default behavior.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Upsert DOCX
>
> **Slug:** `MICROSOFT_WORD_UPSERT_DOCX`
>
> Create or replace a same-name DOCX containing the same validated content supported by CREATE\_DOCX. Replacement is always enabled; use CREATE\_DOCX for create-only conflict behavior.
>
> #### Input Parameters
>
> **blocks** `array`
>
> Ordered paragraph, table, inline-image, and page-break blocks. Legacy objects containing only text and style remain valid paragraphs.
>
> **source** `string`
>
> Constrained HTML or Markdown source. Provide exactly one of source or blocks; parsed content is converted to the same validated block model.
>
> **footers** `object`
>
> Optional default, first, and even footer paragraphs.
>
> **headers** `object`
>
> Optional default, first, and even header paragraphs.
>
> **drive\_id** `string` *required*
>
> Destination OneDrive or SharePoint document-library drive ID.
>
> **filename** `string` *required*
>
> Destination filename ending in .docx. Path separators are rejected.
>
> **upload\_strategy** `string ("auto" | "direct" | "resumable")`
>
> Upload mode. Keep the recommended auto setting to use direct upload through 10 MiB and resilient resumable upload above it. Force direct only when resumability is unwanted, or resumable when interruption recovery is required for a smaller document.
>
> **parent\_folder\_id** `string` *required*
>
> Destination folder driveItem ID.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not
