Microsoft Word · Capability

Microsoft Graph Word API — Content

Microsoft Graph Word API — Content. 3 operations. Lead operation: Microsoft Word Download Content. Self-contained Naftiko capability covering one Microsoft Word business surface.

Run with Naftiko Microsoft WordContent

What You Can Do

GET
Downloadcontent — Microsoft Word Download Content
/v1/me/drive/items/{item-id}/content
PUT
Uploadcontent — Microsoft Word Upload Content
/v1/me/drive/items/{item-id}/content
POST
Createuploadsession — Microsoft Word Create Upload Session
/v1/me/drive/items/{item-id}/createuploadsession

MCP Tools

microsoft-word-download-content

Microsoft Word Download Content

read-only idempotent
microsoft-word-upload-content

Microsoft Word Upload Content

idempotent
microsoft-word-create-upload-session

Microsoft Word Create Upload Session

Capability Spec

graph-content.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph Word API — Content
  description: 'Microsoft Graph Word API — Content. 3 operations. Lead operation: Microsoft Word Download Content. Self-contained
    Naftiko capability covering one Microsoft Word business surface.'
  tags:
  - Microsoft Word
  - Content
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_WORD_API_KEY: MICROSOFT_WORD_API_KEY
capability:
  consumes:
  - type: http
    namespace: graph-content
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Graph Word API — Content business capability. Self-contained, no shared references.
    resources:
    - name: me-drive-items-item-id-content
      path: /me/drive/items/{item-id}/content
      operations:
      - name: downloadcontent
        method: GET
        description: Microsoft Word Download Content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: uploadcontent
        method: PUT
        description: Microsoft Word Upload Content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: me-drive-items-item-id-createUploadSession
      path: /me/drive/items/{item-id}/createUploadSession
      operations:
      - name: createuploadsession
        method: POST
        description: Microsoft Word Create Upload Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_WORD_API_KEY}}'
  exposes:
  - type: rest
    namespace: graph-content-rest
    port: 8080
    description: REST adapter for Microsoft Graph Word API — Content. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/me/drive/items/{item-id}/content
      name: me-drive-items-item-id-content
      description: REST surface for me-drive-items-item-id-content.
      operations:
      - method: GET
        name: downloadcontent
        description: Microsoft Word Download Content
        call: graph-content.downloadcontent
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: uploadcontent
        description: Microsoft Word Upload Content
        call: graph-content.uploadcontent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/me/drive/items/{item-id}/createuploadsession
      name: me-drive-items-item-id-createuploadsession
      description: REST surface for me-drive-items-item-id-createUploadSession.
      operations:
      - method: POST
        name: createuploadsession
        description: Microsoft Word Create Upload Session
        call: graph-content.createuploadsession
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: graph-content-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph Word API — Content. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: microsoft-word-download-content
      description: Microsoft Word Download Content
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: graph-content.downloadcontent
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-word-upload-content
      description: Microsoft Word Upload Content
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: graph-content.uploadcontent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-word-create-upload-session
      description: Microsoft Word Create Upload Session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-content.createuploadsession
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.