Get attachment
get_attachmentDownloads an attachment's original file content, by its id from get_issue's attachments (the issue's own) or list_issue_comments' attachments (a comment's). An image (JPEG, PNG, WebP, GIF) comes back as an image, a text document (Markdown, TXT, JSON) as its text, any other document (PDF, DOCX, DOC) as an embedded base64 resource with its mime type.
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": {
"attachmentId": "<attachmentId>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachmentId | Yes | The attachment's id, from get_issue or list_issue_comments. |