naftiko: 1.0.0-alpha2 info: label: Microsoft OneDrive API — Items description: 'Microsoft OneDrive API — Items. 8 operations. Lead operation: Microsoft Get a drive item. Self-contained Naftiko capability covering one Microsoft business surface.' tags: - Microsoft - Items created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_API_KEY: MICROSOFT_API_KEY capability: consumes: - type: http namespace: onedrive-items baseUri: https://graph.microsoft.com/v1.0 description: Microsoft OneDrive API — Items business capability. Self-contained, no shared references. resources: - name: me-drive-items-itemId path: /me/drive/items/{itemId} operations: - name: getdriveitem method: GET description: Microsoft Get a drive item outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatedriveitem method: PATCH description: Microsoft Update a drive item outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletedriveitem method: DELETE description: Microsoft Delete a drive item outputRawFormat: json outputParameters: - name: result type: object value: $. - name: me-drive-items-itemId-children path: /me/drive/items/{itemId}/children operations: - name: listchildren method: GET description: Microsoft List children of a folder outputRawFormat: json outputParameters: - name: result type: object value: $. - name: me-drive-items-itemId-content path: /me/drive/items/{itemId}/content operations: - name: downloadfile method: GET description: Microsoft Download file content outputRawFormat: json outputParameters: - name: result type: object value: $. - name: uploadfile method: PUT description: Microsoft Upload file 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-root-children path: /me/drive/root/children operations: - name: listrootchildren method: GET description: Microsoft List root folder children outputRawFormat: json outputParameters: - name: result type: object value: $. - name: me-drive-search(q='{searchText}') path: /me/drive/search(q='{searchText}') operations: - name: searchdriveitems method: GET description: Microsoft Search for items outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: searchText in: path type: string description: Search query text required: true authentication: type: bearer token: '{{env.MICROSOFT_API_KEY}}' exposes: - type: rest namespace: onedrive-items-rest port: 8080 description: REST adapter for Microsoft OneDrive API — Items. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/me/drive/items/{itemid} name: me-drive-items-itemid description: REST surface for me-drive-items-itemId. operations: - method: GET name: getdriveitem description: Microsoft Get a drive item call: onedrive-items.getdriveitem outputParameters: - type: object mapping: $. - method: PATCH name: updatedriveitem description: Microsoft Update a drive item call: onedrive-items.updatedriveitem with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletedriveitem description: Microsoft Delete a drive item call: onedrive-items.deletedriveitem outputParameters: - type: object mapping: $. - path: /v1/me/drive/items/{itemid}/children name: me-drive-items-itemid-children description: REST surface for me-drive-items-itemId-children. operations: - method: GET name: listchildren description: Microsoft List children of a folder call: onedrive-items.listchildren outputParameters: - type: object mapping: $. - path: /v1/me/drive/items/{itemid}/content name: me-drive-items-itemid-content description: REST surface for me-drive-items-itemId-content. operations: - method: GET name: downloadfile description: Microsoft Download file content call: onedrive-items.downloadfile outputParameters: - type: object mapping: $. - method: PUT name: uploadfile description: Microsoft Upload file content call: onedrive-items.uploadfile with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/drive/root/children name: me-drive-root-children description: REST surface for me-drive-root-children. operations: - method: GET name: listrootchildren description: Microsoft List root folder children call: onedrive-items.listrootchildren outputParameters: - type: object mapping: $. - path: /v1/me/drive/search-q-searchtext name: me-drive-search-q-searchtext description: REST surface for me-drive-search(q='{searchText}'). operations: - method: GET name: searchdriveitems description: Microsoft Search for items call: onedrive-items.searchdriveitems with: searchText: rest.searchText outputParameters: - type: object mapping: $. - type: mcp namespace: onedrive-items-mcp port: 9090 transport: http description: MCP adapter for Microsoft OneDrive API — Items. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-get-drive-item description: Microsoft Get a drive item hints: readOnly: true destructive: false idempotent: true call: onedrive-items.getdriveitem outputParameters: - type: object mapping: $. - name: microsoft-update-drive-item description: Microsoft Update a drive item hints: readOnly: false destructive: false idempotent: true call: onedrive-items.updatedriveitem with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-delete-drive-item description: Microsoft Delete a drive item hints: readOnly: false destructive: true idempotent: true call: onedrive-items.deletedriveitem outputParameters: - type: object mapping: $. - name: microsoft-list-children-folder description: Microsoft List children of a folder hints: readOnly: true destructive: false idempotent: true call: onedrive-items.listchildren outputParameters: - type: object mapping: $. - name: microsoft-download-file-content description: Microsoft Download file content hints: readOnly: true destructive: false idempotent: true call: onedrive-items.downloadfile outputParameters: - type: object mapping: $. - name: microsoft-upload-file-content description: Microsoft Upload file content hints: readOnly: false destructive: false idempotent: true call: onedrive-items.uploadfile with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-list-root-folder-children description: Microsoft List root folder children hints: readOnly: true destructive: false idempotent: true call: onedrive-items.listrootchildren outputParameters: - type: object mapping: $. - name: microsoft-search-items description: Microsoft Search for items hints: readOnly: true destructive: false idempotent: true call: onedrive-items.searchdriveitems with: searchText: tools.searchText outputParameters: - type: object mapping: $.