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.
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": {
"id": "<id>",
"file_location": "<file_location>"
},
"name": "add_item_attachment"
}
}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') |