About Microsoft Word
Microsoft Word is a powerful word processing service designed for business users to create, edit, and format documents such as reports, proposals, resumes, and letters with ease. It offers intelligent built-in features like grammar and spell checking, advanced page layout options, and rich text and font formatting to enhance document quality and professionalism. Integration with Microsoft 365 enables seamless collaboration, cloud storage, and access across desktop, web, and mobile devices, facilitating remote and hybrid work environments. Businesses benefit from tools that support document comparison, content merging, and inclusion of graphics and diagrams to improve communication and presentation. Additionally, AI-powered enhancements like Microsoft Copilot assist users in drafting, editing, and refining content, boosting productivity and reducing manual effort.
Available Actions
These are the specific actions that AI agents can perform with this tool
This endpoint closes a specified Word document with options to save changes, specify the format, and route the document if needed.
SaveChanges
Specifies the save action for the document.
OriginalFormat
Specifies the save format for the document.
RouteDocument
True if the document should be routed to the next recipient, ignored if no routing slip is attached.
Create a new document within the Word application using the JavaScript API.
accessToken
The OAuth 2.0 access token to be included in the Authorization header for authenticating the API call.
documentName
The name of the new document to be created.
content
Optional initial content for the new document.
Create Word Document
1 input
Create a Word document with content from another document using a Base64-encoded string
externalDocument
The Base64-encoded string representation of the document content to be inserted.
Delete Document Content
2 inputs
Delete a specified number of characters or words from a Word document
Unit
The unit by which the collapsed selection is to be deleted.
Count
The number of units to be deleted. Use a positive number to delete units after the selection, and a negative number to delete units before the selection.
Get Document Content
2 inputs
Retrieve the entire document content from a Word add-in using the Word JavaScript API
documentId
The unique identifier for the document from which to retrieve content.
accessToken
OAuth 2.0 access token for authorizing the request.
Open Word Document
16 inputs
Open a Word document and add it to the Documents collection.
FileName
The name of the document (paths are accepted).
ConfirmConversions
True to display the Convert File dialog box if the file isn't in Microsoft Word format.
ReadOnly
True to open the document as read-only.
AddToRecentFiles
True to add the file name to the list of recently used files.
PasswordDocument
The password for opening the document.
PasswordTemplate
The password for opening the template.
Revert
True to discard any unsaved changes and reopen the file.
WritePasswordDocument
The password for saving changes to the document.
WritePasswordTemplate
The password for saving changes to the template.
Format
The file converter to be used to open the document.
Encoding
The document encoding to be used by Microsoft Word.
Visible
True if the document is opened in a visible window.
OpenConflictDocument
Specifies whether to open the conflict file for a document with an offline conflict.
OpenAndRepair
True to repair the document to prevent document corruption.
DocumentDirection
Indicates the horizontal flow of text in a document.
NoEncodingDialog
True to skip displaying the Encoding dialog box.
Print a document with specific parameters using Microsoft Word's API
Background
Set to True to have the macro continue while Microsoft Word prints the document.
Append
Set to True to append the specified document to the file specified by the OutputFileName argument. False to overwrite the contents of OutputFileName.
Range
The page range to be printed.
OutputFileName
If PrintToFile is True, this argument specifies the path and file name of the output file.
From
The starting page number when Range is set to wdPrintFromTo.
To
The ending page number when Range is set to wdPrintFromTo.
Item
The item to be printed.
Copies
The number of copies to be printed.
Pages
The page numbers and page ranges to be printed, separated by commas.
PageType
The type of pages to be printed.
PrintToFile
True to send printer instructions to a file.
Collate
When printing multiple copies, True to print all pages of the document before printing the next copy.
FileName
The path and file name of the document to be printed.
ManualDuplexPrint
True to print a two-sided document on a printer without a duplex printing kit.
PrintZoomColumn
The number of pages to fit horizontally on one page.
PrintZoomRow
The number of pages to fit vertically on one page.
PrintZoomPaperWidth
The width to which Word scales printed pages.
PrintZoomPaperHeight
The height to which Word scales printed pages.
Save Word Document
2 inputs
Save the specified Word document with options for prompting and original format
NoPrompt
If true, Word saves all documents automatically without prompt; if false, Word prompts the user to save.
OriginalFormat
Specifies how the document is saved, using one of the WdOriginalFormat constants.
Update a document using the Word JavaScript API.
documentId
The unique identifier of the Word document to be updated.
newContent
The new content to be inserted into the document.
accessToken
The OAuth access token for authorization.
Update Firewall for New IPs
2 inputs
Update firewall rules to allow new IP addresses used for portal access and SIEM agent connection.
authToken
The OAuth2 access token for authorization.
ipAddresses
The list of new IP addresses to be allowed for portal access and SIEM agent connection.