Attach files to a report
attach_fileAttach files like logs, stack traces, or HAR captures to a bug report as supporting evidence. Copies each into the local store and appends to the report; one bad source won't stop others.
Instructions
Add files of any type (logs, stack traces, HAR captures, videos, configs) to a bug report as supporting evidence. Use attach_image for pictures so they are returned as images by get_report. Copies each file into bugcap's local store (URLs are downloaded) and appends it to the report; existing media is kept. Attached files are never uploaded to GitHub. Notes can then refer to a file as @d or @label. Returns {"added": [...], "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 files to add: local file paths, glob patterns (e.g. 'logs/*.txt') or http(s) URLs to download. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |