add_item_attachment
Attach an image or document to an inventory item using a URL or local file path. Supports common formats and automatically extracts the filename.
Instructions
Add an attachment (image, document, etc.) to an inventory item. The file_location can be either a URL (http:// or https://) to fetch the file from, or an absolute file path on the local filesystem (e.g., '/mnt/images/photo.png'). The filename is automatically extracted from the URL or path. Supported file types include images (jpg, png, gif, webp), documents (pdf, doc, docx), and other common formats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Item ID (UUID) to add the attachment to | |
| file_location | Yes | URL (http:// or https://) to fetch the file from, OR an absolute file path on the local filesystem (e.g., '/mnt/photos/image.png', '/home/user/documents/manual.pdf') |