Attach images to a report
attach_imageAdd existing PNG, JPEG, GIF, or WebP images to a bug report from local paths, globs, or URLs; each image is copied into the local store and appended for annotation.
Instructions
Add existing images (PNG, JPEG, GIF or WebP) to a bug report, for example a screenshot you saved or a diagram from a URL. Use attach_file instead for logs, videos or other non-image files, and request_screenshot when the user has to take the picture. Copies each image into bugcap's local store (URLs are downloaded) and appends it to the report; existing media is kept. Notes can then refer to it as @i or @label. Returns {"added": [{index, label, kind, size_bytes, source}], "rejected": [{source, reason}]}: one bad source does not stop the others.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric report id, as returned by list_reports (e.g. 12). | |
| labels | No | Optional short names, one per entry in `sources` and in the same order; use null to leave one unlabeled. A label lets notes refer to the item as @label. | |
| sources | Yes | 1 to 20 images to add: local file paths, glob patterns (e.g. 'shots/*.png') or http(s) URLs to download. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |