naftiko: 1.0.0-alpha2 info: label: Google Docs API — Documents description: 'Google Docs API — Documents. 3 operations. Lead operation: Google Docs Create a Document. Self-contained Naftiko capability covering one Google Docs business surface.' tags: - Google Docs - Documents created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GOOGLE_DOCS_API_KEY: GOOGLE_DOCS_API_KEY capability: consumes: - type: http namespace: api-v1-documents baseUri: https://docs.googleapis.com description: Google Docs API — Documents business capability. Self-contained, no shared references. resources: - name: v1-documents path: /v1/documents operations: - name: docsdocumentscreate method: POST description: Google Docs Create a Document outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-documents-documentId path: /v1/documents/{documentId} operations: - name: docsdocumentsget method: GET description: Google Docs Get a Document outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: documentId in: path type: string description: The ID of the document to retrieve. required: true - name: suggestionsViewMode in: query type: string description: The suggestions view mode to apply to the document. This allows viewing the document with all suggestions inline, collapsed, or only previewing suggestions acce - name: includeTabsContent in: query type: boolean description: Whether to populate the Document.tabs field instead of the text content fields like body, documentStyle, headers, etc. When true, content is returned in Documen - name: v1-documents-documentId}:batchUpdate path: /v1/documents/{documentId}:batchUpdate operations: - name: docsdocumentsbatchupdate method: POST description: Google Docs Batch Update a Document outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: documentId in: path type: string description: The ID of the document to update. required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.GOOGLE_DOCS_API_KEY}}' exposes: - type: rest namespace: api-v1-documents-rest port: 8080 description: REST adapter for Google Docs API — Documents. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/documents name: v1-documents description: REST surface for v1-documents. operations: - method: POST name: docsdocumentscreate description: Google Docs Create a Document call: api-v1-documents.docsdocumentscreate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/documents/{documentid} name: v1-documents-documentid description: REST surface for v1-documents-documentId. operations: - method: GET name: docsdocumentsget description: Google Docs Get a Document call: api-v1-documents.docsdocumentsget with: documentId: rest.documentId suggestionsViewMode: rest.suggestionsViewMode includeTabsContent: rest.includeTabsContent outputParameters: - type: object mapping: $. - path: /v1/v1/documents/documentid-batchupdate name: v1-documents-documentid-batchupdate description: REST surface for v1-documents-documentId}:batchUpdate. operations: - method: POST name: docsdocumentsbatchupdate description: Google Docs Batch Update a Document call: api-v1-documents.docsdocumentsbatchupdate with: documentId: rest.documentId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: api-v1-documents-mcp port: 9090 transport: http description: MCP adapter for Google Docs API — Documents. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: google-docs-create-document description: Google Docs Create a Document hints: readOnly: false destructive: false idempotent: false call: api-v1-documents.docsdocumentscreate with: body: tools.body outputParameters: - type: object mapping: $. - name: google-docs-get-document description: Google Docs Get a Document hints: readOnly: true destructive: false idempotent: true call: api-v1-documents.docsdocumentsget with: documentId: tools.documentId suggestionsViewMode: tools.suggestionsViewMode includeTabsContent: tools.includeTabsContent outputParameters: - type: object mapping: $. - name: google-docs-batch-update-document description: Google Docs Batch Update a Document hints: readOnly: false destructive: false idempotent: false call: api-v1-documents.docsdocumentsbatchupdate with: documentId: tools.documentId body: tools.body outputParameters: - type: object mapping: $.