- Category: documents
- Auth: OAUTH2
- Composio-managed OAuth available? No
- Tools: 23
- Triggers: 0
- Slug:
MICROSOFT_WORD - Version: 20261101_00
Tools
Add Comment
Add Comment
Slug:
MICROSOFT_WORD_ADD_COMMENTAdd 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
Optional exact eTag concurrency guard; required when paragraph_locator selects an eTag-bound target.
Output
Append Content
Append Content
Slug:
MICROSOFT_WORD_APPEND_CONTENTAppend 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
Content format; Markdown supports safe links and Courier New code text.
Plain text or supported Markdown to append. Markdown preserves safe http, https, and mailto links; inline and fenced code use Courier New.
Output
Copy DOCX
Copy DOCX
Slug:
MICROSOFT_WORD_COPY_DOCXCopy 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 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.
Maximum time to wait for Microsoft to report completion. A timeout is ambiguous because the server-side copy can continue.
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
Create DOCX
Create DOCX
Slug:
MICROSOFT_WORD_CREATE_DOCXCreate 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
Ordered paragraph, table, inline-image, and page-break blocks. Legacy objects containing only text and style remain valid paragraphs.
Constrained HTML or Markdown source. Provide exactly one of source or blocks; parsed content is converted to the same validated block model.
Optional default, first, and even footer paragraphs.
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.
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
Create DOCX sharing link
Create DOCX sharing link
Slug:
MICROSOFT_WORD_CREATE_DOCX_SHARING_LINKCreate 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
Link behavior: read-only view, read-write edit, or embeddable embed. Defaults to view.
Optional audience: anonymous, organization, or specified users. When omitted, Graph uses the drive’s default link scope, which can be anonymous.
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.
Optional link expiration timestamp in ISO 8601 format. On personal OneDrive, this capability may require a Microsoft 365 Personal or Family paid plan.
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
Delete DOCX
Delete DOCX
Edit DOCX
Edit DOCX
Slug:
MICROSOFT_WORD_EDIT_DOCXAtomically 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
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.
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
Export DOCX to PDF
Export DOCX to PDF
Fill Template
Fill Template
Slug:
MICROSOFT_WORD_FILL_TEMPLATEFill 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
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.
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.
Output
Find DOCX files
Find DOCX files
Slug:
MICROSOFT_WORD_FIND_DOCX_FILESBrowse 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
Browse one folder’s immediate children or search the entire drive.
Maximum upstream items to inspect on this page (1-200). Filtering can yield fewer returned items.
Output
Get Microsoft Word account context
Get Microsoft Word account context
Slug:
MICROSOFT_WORD_GET_ACCOUNT_CONTEXTReturn 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
Invite DOCX recipients
Invite DOCX recipients
Slug:
MICROSOFT_WORD_INVITE_DOCX_RECIPIENTSGrant 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
Required recipients, each identified by exactly one email, alias, or directory objectId.
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.
Optional sharing permission expiration timestamp in ISO 8601 format. On personal OneDrive, this capability may require a Microsoft 365 Personal or Family paid plan.
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
List DOCX versions
List DOCX versions
Slug:
MICROSOFT_WORD_LIST_DOCX_VERSIONSValidate 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
Opaque cursor returned by the prior page. Omit it for the first page and pass it back unchanged to continue.
Output
List OneDrive drives
List OneDrive drives
Slug:
MICROSOFT_WORD_LIST_ONEDRIVESReturn 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
Opaque cursor returned by the prior page. Omit it for the first page and pass it back unchanged to continue.
Output
Move or rename DOCX
Move or rename DOCX
Slug:
MICROSOFT_WORD_MOVE_OR_RENAME_DOCXRename 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
Destination folder driveItem ID in the same drive. At least one of new_name or destination_folder_id is required.
Output
Read DOCX
Read DOCX
Slug:
MICROSOFT_WORD_READ_DOCXInspect 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
OOXML text-bearing parts to read. Document includes body paragraphs, table cells, and text boxes in the main document part.
Maximum paragraphs, runs, tables, rows, cells, images, page breaks, sections, and section references returned across selected parts in package order (1-20000).
Output
Replace Text
Replace Text
Slug:
MICROSOFT_WORD_REPLACE_TEXTReplace 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
Output
Resolve Tracked Changes
Resolve Tracked Changes
Slug:
MICROSOFT_WORD_RESOLVE_TRACKED_CHANGESAccept 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
Accept or reject all revisions, or selected READ_DOCX revision locators.
Optional exact eTag concurrency guard; required for accept or reject with eTag-bound revision locators.
Output
Restore DOCX version
Restore DOCX version
Slug:
MICROSOFT_WORD_RESTORE_DOCX_VERSIONRestore 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
Exact current eTag returned by READ_DOCX. The restore is rejected before the request if the document has already changed.
Output
Upsert DOCX
Upsert DOCX
Slug:
MICROSOFT_WORD_UPSERT_DOCXCreate 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
Ordered paragraph, table, inline-image, and page-break blocks. Legacy objects containing only text and style remain valid paragraphs.
Constrained HTML or Markdown source. Provide exactly one of source or blocks; parsed content is converted to the same validated block model.
Optional default, first, and even footer paragraphs.
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.