paperclip_upload_attachment
Upload a local file as an attachment to an issue. Provide the issue ID and file path to attach reports, logs, or diffs.
Instructions
Upload a local file as an attachment to an issue.
Args:
issueId: string — Issue ID or identifier (example: "PAP-42")
filePath: string — Absolute path to the local file (example: "/tmp/report.pdf")
filename: string (optional) — Override filename in the upload (defaults to basename of filePath)
mimeType: string (optional) — MIME type (example: "application/pdf")
Returns: Returns the created attachment record: id, filename, mimeType, size, createdAt.
Examples:
Use when: attaching a generated report, diff, or log file to an issue
Don't use when: you need to download an attachment — use paperclip_download_attachment instead
Error Handling:
400: validation failure → check filePath is absolute and the file exists
401: authentication failed → check PAPERCLIP_API_KEY
404: issue not found → verify ID with paperclip_list_issues
413: file too large → check Paperclip attachment size limits
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueId | Yes | Issue ID or identifier (e.g. PAP-22) | |
| filePath | Yes | Absolute path to the local file to upload | |
| filename | No | Override filename in the upload (defaults to basename of filePath) | |
| mimeType | No | MIME type of the file (e.g. text/plain, application/pdf) |