upload_issue_attachment
Attach a file to an Issue from base64 content (fileName + mimeType + contentBase64), for example the screenshot that shows a reported defect. Max 25 MB. The file is checked and stored exactly like an upload in the app: it counts against the organization's storage, its type is verified from its bytes, and an Issue attachment row is created. Anyone who can edit the Issue can attach. Optional sizeBytes (raw byte length) and sha256 (hex of the raw bytes) make the tool refuse a truncated or garbled upload rather than store a corrupt file. For a file already at a public URL, attach_issue_file_from_url fetches it on the server instead.
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": {
"issueId": "<issueId>",
"fileName": "<fileName>",
"mimeType": "<mimeType>",
"contentBase64": "<contentBase64>"
},
"name": "upload_issue_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | No | Optional: SHA-256 of the RAW file bytes, 64-char hex. Decoded bytes that do not match are refused. | |
| issueId | Yes | The Issue to attach to. | |
| fileName | Yes | Original file name incl. extension, e.g. "screenshot.png". | |
| mimeType | Yes | MIME type, e.g. "image/png", "text/plain", "application/pdf". | |
| sizeBytes | No | Optional: exact byte length of the RAW file. A decoded length that differs is refused (catches truncation). | |
| contentBase64 | Yes | Base64-encoded file bytes. Max 25 MB decoded. | |
| idempotencyKey | No | Optional idempotency key. Pass a stable unique value (e.g. a UUID) to make this create safe to retry: calling again with the same key within 24h - even from a new session after a reconnect - replays the original result and creates no duplicate. Org-scoped; works across conversations. |