Microsoft Word · Arazzo Workflow

Microsoft Word Search Body and Tag Document

Version 1.0.0

Search a document body for text, update the document properties, and save it.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub DocumentsMicrosoft-365OfficeProductivityWord ProcessingArazzoWorkflows

Provider

microsoft-word

Workflows

search-and-tag
Search a document, update its properties, and save.
Searches the document body for text, updates document properties such as title and keywords, and saves the document.
3 steps inputs: documentId, keywords, searchText, title outputs: matches, title
1
searchBody
Search the document body for the supplied text, ignoring punctuation and whitespace. The JavaScript API returns 200 with the matching ranges.
2
updateProperties
Update the document title and keywords. The JavaScript API returns 200 with the updated document properties.
3
saveDocument
Save the document to persist the updated properties. The JavaScript API returns 204 with no content on success.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Word Search Body and Tag Document
  summary: Search a document body for text, update the document properties, and save it.
  description: >-
    Locating a phrase inside a Word document and updating its metadata through
    the Office Word JavaScript API. The workflow searches the document body for
    matching text, updates the document properties such as title and keywords,
    and then saves the document so the metadata change persists. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: bodyApi
  url: ../openapi/microsoft-word-body-api-openapi.yml
  type: openapi
- name: documentsApi
  url: ../openapi/microsoft-word-documents-api-openapi.yml
  type: openapi
- name: propertiesApi
  url: ../openapi/microsoft-word-properties-api-openapi.yml
  type: openapi
workflows:
- workflowId: search-and-tag
  summary: Search a document, update its properties, and save.
  description: >-
    Searches the document body for text, updates document properties such as
    title and keywords, and saves the document.
  inputs:
    type: object
    required:
    - documentId
    - searchText
    - title
    - keywords
    properties:
      documentId:
        type: string
        description: The identifier of the document to search and tag.
      searchText:
        type: string
        description: The text to search for in the document body.
      title:
        type: string
        description: The new title to set on the document.
      keywords:
        type: string
        description: The keywords to set on the document.
  steps:
  - stepId: searchBody
    description: >-
      Search the document body for the supplied text, ignoring punctuation and
      whitespace. The JavaScript API returns 200 with the matching ranges.
    operationId: searchDocument
    parameters:
    - name: document-id
      in: path
      value: $inputs.documentId
    requestBody:
      contentType: application/json
      payload:
        searchText: $inputs.searchText
        ignorePunct: true
        ignoreSpace: true
        matchCase: false
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      matches: $response.body#/value
  - stepId: updateProperties
    description: >-
      Update the document title and keywords. The JavaScript API returns 200
      with the updated document properties.
    operationId: updateDocumentProperties
    parameters:
    - name: document-id
      in: path
      value: $inputs.documentId
    requestBody:
      contentType: application/json
      payload:
        title: $inputs.title
        keywords: $inputs.keywords
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      title: $response.body#/title
      keywords: $response.body#/keywords
  - stepId: saveDocument
    description: >-
      Save the document to persist the updated properties. The JavaScript API
      returns 204 with no content on success.
    operationId: saveDocument
    parameters:
    - name: document-id
      in: path
      value: $inputs.documentId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      status: $statusCode
  outputs:
    matches: $steps.searchBody.outputs.matches
    title: $steps.updateProperties.outputs.title

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-word-search-and-tag-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.