El catálogo/Word

Word

app.microsoft.word

Create, read, and surgically edit Word documents in OneDrive

OAuth 2productivityLeer el código↗
Versión1.0.2
Categoríaproductivity
AutenticaciónOAuth 2
Herramientas13
Transportestdio
LicenciaMIT
01

Qué hace

La aplicación, en sus propias palabras.

Microsoft Word document automation — create documents, read their text and structure, and make surgical edits that leave the rest of the file untouched. Edits overwrite the stored file; recover earlier states through OneDrive version history.

worddocxdocumentmicrosoftoffice365ooxml
02

Herramientas

13 herramientas que el agente puede llamar.

Todas se declaran con parámetros tipados y devuelven resultados estructurados, así que el anfitrión puede renderizarlas en vez de narrarlas.

  • append-paragraphsAdd paragraphs to the end of a Word document, leaving everything already there untouched. Overwrites the stored file; earlier states are recoverable only through OneDrive version history.
  • convert-to-pdfConvert a Word document to PDF and save it to OneDrive. Fails if a file already exists at the destination unless overwrite is set.
  • create-documentCreate a new Word document from structured paragraphs. Fails if a file already exists at the path unless overwrite is set — an existing document is not recoverable from here except through OneDrive version history.
  • delete-paragraphDelete one paragraph from a Word document by its index from list-paragraphs. Indices shift after a delete, so re-list before deleting again. Cannot delete table content. Recoverable only through OneDrive version history.
  • get-commentsRead the review comments in a Word document, with their authors and dates. Returns an empty list when the document has none.
  • get-document-infoGet a Word document's OneDrive metadata, its Word document properties, and its paragraph and word counts.
  • insert-imageEmbed a PNG or JPEG image at the end of a Word document. Overwrites the stored file; earlier states are recoverable only through OneDrive version history.
  • insert-page-breakAppend a page break to a Word document, so subsequent content starts on a new page. Overwrites the stored file; earlier states are recoverable only through OneDrive version history.
  • insert-tableAppend a table to a Word document. Rows are plain strings; the first can be styled as a header. Overwrites the stored file; earlier states are recoverable only through OneDrive version history.
  • list-paragraphsList a Word document's paragraphs with the stable indices that append-paragraphs, delete-paragraph, and the other edit tools target. Call this before editing to find the paragraph you mean. Text inside tables is not listed and cannot be targeted by index.
  • read-documentRead a Word document as markdown (default) or HTML. Returns prose, not structure — use list-paragraphs when you need indices to edit.
  • replace-textReplace text in a Word document, matching text as the reader sees it even when Word has split it across formatting runs. Text inside tables is not searched or replaced. Overwrites the stored file; earlier states are recoverable only through OneDrive version history.
  • update-document-propertiesSet a Word document's title, author, subject, or description — the properties Word shows in File → Info. Leaves the document body untouched. Overwrites the stored file; earlier states are recoverable only through OneDrive version history.
03

Autenticación y permisos

Qué pide.

Declarado en el manifiesto y por adelantado. La aplicación no puede alcanzar nada que no haya pedido aquí.

Permisos

openidprofileemailoffline_accessUser.ReadFiles.ReadWrite.All

Secretos de sistema

CLIENT_IDCLIENT_SECRETREDIRECT_URI

Secretos de instalación

ACCESS_TOKENREFRESH_TOKENEMAILEXPIRY_DATE

Seguir leyendo

El manifiesto y el código de Word están en el repositorio, junto al resto de apps.

Leer el código↗Volver al catálogo→

Word · Agent Apps