Download Attachment
get_attachmentFetch file attachments from JetBrains Space merge request discussions. Use an attachment ID to receive text content or a download URL for binary files.
Instructions
Download a file attachment from a Space MR discussion.
Use the attachment ID from get_merge_request_timeline output (shown as [id: ...] next to each attachment).
For text files, returns the file content directly. For binary files, returns the download URL.
Args: attachment_id: Attachment UUID
Returns: File content (text) or download URL (binary).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"attachment_id": "<attachment_id>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |