jira_add_attachment
Upload images or documents to a Jira issue using a public file URL or base64 content; returns attachment ID and download URL.
Instructions
Uploads an attachment (image, document, etc.) to a Jira issue.
EFFICIENT METHOD (recommended for large files):
fileUrl: Provide URL to remote file - MINIMAL tokens (~60 tokens) Example: Upload to Dropbox/S3/imgur first, then provide URL
DIRECT METHOD (for small files):
content: Base64 encoded content - WARNING: HIGH token cost (~330,000 tokens for 1MB file) Only suitable for small files (< 500 KB)
Returns attachment metadata including ID and download URL. To reference the image in a comment or description, use wiki markup: !filename.png! or !filename.png|thumbnail!
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": {
"issueKey": "<issueKey>",
"filename": "<filename>"
},
"name": "jira_add_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Base64-encoded or plain text content. WARNING: HIGH token cost (~330k tokens for 1MB file). Use fileUrl for large files or upload to cloud storage first. | |
| fileUrl | No | URL to download file from (efficient for remote files, ~60 tokens). Upload large files to Dropbox/S3/imgur first, then use URL. Only public http(s) URLs: localhost, private and link-local addresses are refused, also after a redirect. | |
| filename | Yes | Name of the file to attach | |
| isBase64 | No | Whether content is base64-encoded (default: true). Set to false for plain text files. | |
| issueKey | Yes | Issue key to add attachment to (e.g., PROJECT-123) |