naftiko: 1.0.0-alpha2 info: label: Togai Apis — File Storage description: 'Togai Apis — File Storage. 2 operations. Lead operation: Get a File. Self-contained Naftiko capability covering one Togai business surface.' tags: - Togai - File Storage created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TOGAI_API_KEY: TOGAI_API_KEY capability: consumes: - type: http namespace: togai-file-storage baseUri: https://api.togai.com description: Togai Apis — File Storage business capability. Self-contained, no shared references. resources: - name: files-file_id path: /files/{file_id} operations: - name: getfile method: GET description: Get a File outputRawFormat: json outputParameters: - name: result type: object value: $. - name: files-file_id-download_url path: /files/{file_id}/download_url operations: - name: getdownloadurl method: GET description: Get a Download Url for a File outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.TOGAI_API_KEY}}' exposes: - type: rest namespace: togai-file-storage-rest port: 8080 description: REST adapter for Togai Apis — File Storage. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/files/{file-id} name: files-file-id description: REST surface for files-file_id. operations: - method: GET name: getfile description: Get a File call: togai-file-storage.getfile outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/download-url name: files-file-id-download-url description: REST surface for files-file_id-download_url. operations: - method: GET name: getdownloadurl description: Get a Download Url for a File call: togai-file-storage.getdownloadurl outputParameters: - type: object mapping: $. - type: mcp namespace: togai-file-storage-mcp port: 9090 transport: http description: MCP adapter for Togai Apis — File Storage. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-file description: Get a File hints: readOnly: true destructive: false idempotent: true call: togai-file-storage.getfile outputParameters: - type: object mapping: $. - name: get-download-url-file description: Get a Download Url for a File hints: readOnly: true destructive: false idempotent: true call: togai-file-storage.getdownloadurl outputParameters: - type: object mapping: $.