The Word connector provides Microsoft Word document operations through the Microsoft Graph API. It can be used as a Builder app for deterministic document workflows or as an MCP server for AI agents that need to create, inspect, convert, update, version, and manage .docx files stored in OneDrive or SharePoint.
Document Operations
Read metadata, download content, upload DOCX bytes, convert files, and delete documents
Structured Authoring
Build valid Word documents from a JSON specification with headings, paragraphs, tables, lists, images, and formatting
Governance & Lifecycle
Search files, inspect document structure, manage versions, checkout locks, following, and analytics
Prerequisites
- A Microsoft Entra ID / Azure AD application registered in your tenant
- A client secret for that application
- Microsoft Graph permissions granted with admin consent:
Files.Read.Allfor read-only document accessFiles.ReadWrite.Allfor upload, update, delete, checkout, check-in, restore, and follow operationsSites.Read.AllorSites.ReadWrite.Allwhen accessing SharePoint-hosted documents
- Your Directory (tenant) ID and Application (client) ID
- Optional SharePoint Site ID when the default target is a SharePoint site instead of the user’s OneDrive
- Usage as App
- Usage as MCP
Usage as App
Installation
- Go to Apps in your workspace
- Search for Word and install it
- Open the app instance configuration and fill in the required Microsoft Graph credentials
Configuration
File Access
Word operations target Microsoft Graph drive items. For OneDrive files, pass anitemId or path and optionally a driveId. For SharePoint files, also pass siteId or configure a default SharePoint Site ID on the app instance.Available Instructions
Every instruction resolves Microsoft Graph credentials through the workspace configuration. Most operations acceptdriveId and siteId to override the configured default target.Document Lookup & Search
Content Transfer & Creation
Metadata & Lifecycle
Versions
Checkout
Collaboration & Analytics
Arguments flagged with
* are required. buildDocument requires spec and either itemId for rewrite mode or path for create mode.DSUL Examples
Search for Word Documents
Build a New Word Document
Inspect and Convert a Document
Restore a Previous Version
Error Handling
Common Issues
“Authentication failed” - The Microsoft Graph credentials are missing, expired, or lack admin consent. Confirm the configured Azure app can acquire a token for Microsoft Graph. “Either itemId or path must be provided” -buildDocument supports rewrite mode with itemId or create mode with path. Provide one of them with a valid spec.
Upload exceeds 4 MB - uploadDocument, uploadDocumentByPath, and generated buildDocument uploads use the small-file Microsoft Graph upload path. Reduce the document size before retrying.
SharePoint document not found - SharePoint operations usually need the correct siteId and driveId. Configure a default SharePoint Site ID or pass these arguments per call.
External Resources
Microsoft Graph DriveItem API
Reference for OneDrive and SharePoint file metadata, content, versions, and lifecycle operations.
Tool Agents
Learn how to expose connector tools to AI agents through Prisme.ai capabilities.