Logo

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, default null): 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. null when 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: null and truncated: true without downloading. Extracted text longer than 500,000 characters is truncated to that limit and truncated is set to true.


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, default null): SharePoint site ID for destination. If omitted, uses OneDrive.
  • driveId string (nullable, default null): A specific document library drive ID to save into. Omit or null to use the signed-in user's OneDrive.
  • parentItemId string (nullable, default null): Parent folder item ID. If omitted, uploads to root.
  • fileName string (required): Name for the new document, including the .docx extension (e.g. "Summary.docx").
  • fontFamily string (nullable, default null): 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.
  • 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.