naftiko: 1.0.0-alpha2 info: label: Atlassian The Jira Cloud platform REST API — Issue Attachments description: 'Atlassian The Jira Cloud platform REST API — Issue Attachments. 8 operations. Lead operation: Atlassian Get Attachment Content. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Issue Attachments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ATLASSIAN_API_KEY: ATLASSIAN_API_KEY capability: consumes: - type: http namespace: jira-issue-attachments baseUri: https://your-domain.atlassian.net description: Atlassian The Jira Cloud platform REST API — Issue Attachments business capability. Self-contained, no shared references. resources: - name: rest-api-3-attachment-content-id path: /rest/api/3/attachment/content/{id} operations: - name: atlassiangetattachmentcontent method: GET description: Atlassian Get Attachment Content outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID of the attachment. required: true - name: redirect in: query type: boolean description: 'Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to `false` to avoid making multiple ' - name: rest-api-3-attachment-meta path: /rest/api/3/attachment/meta operations: - name: atlassiangetattachmentmeta method: GET description: Atlassian Get Jira Attachment Settings outputRawFormat: json outputParameters: - name: result type: object value: $. - name: rest-api-3-attachment-thumbnail-id path: /rest/api/3/attachment/thumbnail/{id} operations: - name: atlassiangetattachmentthumbnail method: GET description: Atlassian Get Attachment Thumbnail outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID of the attachment. required: true - name: redirect in: query type: boolean description: 'Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to `false` to avoid making multiple ' - name: fallbackToDefault in: query type: boolean description: Whether a default thumbnail is returned when the requested thumbnail is not found. - name: width in: query type: integer description: The maximum width to scale the thumbnail to. - name: height in: query type: integer description: The maximum height to scale the thumbnail to. - name: rest-api-3-attachment-id path: /rest/api/3/attachment/{id} operations: - name: atlassianremoveattachment method: DELETE description: Atlassian Delete Attachment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID of the attachment. required: true - name: atlassiangetattachment method: GET description: Atlassian Get Attachment Metadata outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID of the attachment. required: true - name: rest-api-3-attachment-id-expand-human path: /rest/api/3/attachment/{id}/expand/human operations: - name: atlassianexpandattachmentforhumans method: GET description: Atlassian Get All Metadata For An Expanded Attachment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID of the attachment. required: true - name: rest-api-3-attachment-id-expand-raw path: /rest/api/3/attachment/{id}/expand/raw operations: - name: atlassianexpandattachmentformachines method: GET description: Atlassian Get Contents Metadata For An Expanded Attachment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID of the attachment. required: true - name: rest-api-3-issue-issueIdOrKey-attachments path: /rest/api/3/issue/{issueIdOrKey}/attachments operations: - name: atlassianaddattachment method: POST description: Atlassian Add Attachment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: issueIdOrKey in: path type: string description: The ID or key of the issue that attachments are added to. required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: jira-issue-attachments-rest port: 8080 description: REST adapter for Atlassian The Jira Cloud platform REST API — Issue Attachments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/3/attachment/content/{id} name: rest-api-3-attachment-content-id description: REST surface for rest-api-3-attachment-content-id. operations: - method: GET name: atlassiangetattachmentcontent description: Atlassian Get Attachment Content call: jira-issue-attachments.atlassiangetattachmentcontent with: id: rest.id redirect: rest.redirect outputParameters: - type: object mapping: $. - path: /v1/api/3/attachment/meta name: rest-api-3-attachment-meta description: REST surface for rest-api-3-attachment-meta. operations: - method: GET name: atlassiangetattachmentmeta description: Atlassian Get Jira Attachment Settings call: jira-issue-attachments.atlassiangetattachmentmeta outputParameters: - type: object mapping: $. - path: /v1/api/3/attachment/thumbnail/{id} name: rest-api-3-attachment-thumbnail-id description: REST surface for rest-api-3-attachment-thumbnail-id. operations: - method: GET name: atlassiangetattachmentthumbnail description: Atlassian Get Attachment Thumbnail call: jira-issue-attachments.atlassiangetattachmentthumbnail with: id: rest.id redirect: rest.redirect fallbackToDefault: rest.fallbackToDefault width: rest.width height: rest.height outputParameters: - type: object mapping: $. - path: /v1/api/3/attachment/{id} name: rest-api-3-attachment-id description: REST surface for rest-api-3-attachment-id. operations: - method: DELETE name: atlassianremoveattachment description: Atlassian Delete Attachment call: jira-issue-attachments.atlassianremoveattachment with: id: rest.id outputParameters: - type: object mapping: $. - method: GET name: atlassiangetattachment description: Atlassian Get Attachment Metadata call: jira-issue-attachments.atlassiangetattachment with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/api/3/attachment/{id}/expand/human name: rest-api-3-attachment-id-expand-human description: REST surface for rest-api-3-attachment-id-expand-human. operations: - method: GET name: atlassianexpandattachmentforhumans description: Atlassian Get All Metadata For An Expanded Attachment call: jira-issue-attachments.atlassianexpandattachmentforhumans with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/api/3/attachment/{id}/expand/raw name: rest-api-3-attachment-id-expand-raw description: REST surface for rest-api-3-attachment-id-expand-raw. operations: - method: GET name: atlassianexpandattachmentformachines description: Atlassian Get Contents Metadata For An Expanded Attachment call: jira-issue-attachments.atlassianexpandattachmentformachines with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/api/3/issue/{issueidorkey}/attachments name: rest-api-3-issue-issueidorkey-attachments description: REST surface for rest-api-3-issue-issueIdOrKey-attachments. operations: - method: POST name: atlassianaddattachment description: Atlassian Add Attachment call: jira-issue-attachments.atlassianaddattachment with: issueIdOrKey: rest.issueIdOrKey body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: jira-issue-attachments-mcp port: 9090 transport: http description: MCP adapter for Atlassian The Jira Cloud platform REST API — Issue Attachments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-get-attachment-content description: Atlassian Get Attachment Content hints: readOnly: true destructive: false idempotent: true call: jira-issue-attachments.atlassiangetattachmentcontent with: id: tools.id redirect: tools.redirect outputParameters: - type: object mapping: $. - name: atlassian-get-jira-attachment-settings description: Atlassian Get Jira Attachment Settings hints: readOnly: true destructive: false idempotent: true call: jira-issue-attachments.atlassiangetattachmentmeta outputParameters: - type: object mapping: $. - name: atlassian-get-attachment-thumbnail description: Atlassian Get Attachment Thumbnail hints: readOnly: true destructive: false idempotent: true call: jira-issue-attachments.atlassiangetattachmentthumbnail with: id: tools.id redirect: tools.redirect fallbackToDefault: tools.fallbackToDefault width: tools.width height: tools.height outputParameters: - type: object mapping: $. - name: atlassian-delete-attachment description: Atlassian Delete Attachment hints: readOnly: false destructive: true idempotent: true call: jira-issue-attachments.atlassianremoveattachment with: id: tools.id outputParameters: - type: object mapping: $. - name: atlassian-get-attachment-metadata description: Atlassian Get Attachment Metadata hints: readOnly: true destructive: false idempotent: true call: jira-issue-attachments.atlassiangetattachment with: id: tools.id outputParameters: - type: object mapping: $. - name: atlassian-get-all-metadata-expanded description: Atlassian Get All Metadata For An Expanded Attachment hints: readOnly: true destructive: false idempotent: true call: jira-issue-attachments.atlassianexpandattachmentforhumans with: id: tools.id outputParameters: - type: object mapping: $. - name: atlassian-get-contents-metadata-expanded description: Atlassian Get Contents Metadata For An Expanded Attachment hints: readOnly: true destructive: false idempotent: true call: jira-issue-attachments.atlassianexpandattachmentformachines with: id: tools.id outputParameters: - type: object mapping: $. - name: atlassian-add-attachment description: Atlassian Add Attachment hints: readOnly: false destructive: false idempotent: false call: jira-issue-attachments.atlassianaddattachment with: issueIdOrKey: tools.issueIdOrKey body: tools.body outputParameters: - type: object mapping: $.