Microsoft Word 365
Authentication: Microsoft OAuth. Requires a connected Microsoft 365 account with access to the relevant Microsoft resources, such as Word, OneDrive, or SharePoint depending on the tool.
Description: Read and create Microsoft Word documents.
Beta Notice
This tool is currently in beta testing and not yet available for general use.
To get the Microsoft Word 365 tool added to your Cotera workspace, please contact our support team at support.cotera.co.
Documents
Extract content from Word documents.
Read Document
Read a document to extract the text content of a Word file stored in OneDrive or SharePoint.
Operation Type: Query (Read)
Parameters:
- itemId
string(required): The drive item ID of the Word file to read. - driveId
string(nullable, defaultnull): A specific document library drive ID. Omit or null to use the signed-in user's OneDrive.
Returns:
- id
string: The drive item ID. - name
string: The file name. - size
number(nullable): The file size in bytes. - webUrl
string(nullable): A web URL to view the file. - text
string(nullable): The extracted plain text content.nullwhen the file was too large to read. - truncated
boolean: Whether the text was truncated due to size limits.
Size limits: Files larger than 25 MB return
text: nullandtruncated: truewithout downloading. Extracted text longer than 500,000 characters is truncated to that limit andtruncatedis set totrue.
Create Structured Document
Creates a structured Word document with sections, headings, and markdown-formatted content, then uploads it to OneDrive or SharePoint.
Operation Type: Mutation (Write)
Parameters:
- siteId
string(nullable, defaultnull): SharePoint site ID for destination. If omitted, uses OneDrive. - driveId
string(nullable, defaultnull): A specific document library drive ID to save into. Omit or null to use the signed-in user's OneDrive. - parentItemId
string(nullable, defaultnull): Parent folder item ID. If omitted, uploads to root. - fileName
string(required): Name for the new document, including the.docxextension (e.g."Summary.docx"). - fontFamily
string(nullable, defaultnull): Document-wide font family. If omitted, uses default. - sections
array(required): Array of section objects, each with:- heading
string(nullable): Section heading text. If null or empty, no heading is rendered for that section. - headingLevel
number(nullable): Heading level 1–6. If omitted, defaults to 1. - content
string(required): Markdown-formatted content. Supports:**bold**,*italic*,~~strikethrough~~,`inline code`,[links](url),- bullet lists,1. numbered lists,> blockquotes,```code blocks```, tables, and---horizontal rules.
- heading
- conflictBehavior
string(nullable, default"replace"): File conflict behavior:"replace"(default),"fail", or"rename".
Returns:
- id
string: The item ID of the uploaded file. - name
string: The name of the uploaded file. - webUrl
string(nullable): Web URL to access the file. - size
number(nullable): File size in bytes.