memory_upload_image
Upload local image files to R2 storage and return an r2:// reference URL for use in memory metadata. Attach captioned images to a memory by ID for organized, persistent agent recall.
Instructions
Upload an image file directly to R2 storage.
Uploads a local image file to R2 and returns the r2:// reference URL that can be used in memory metadata.
Args: file_path: Absolute path to the image file to upload memory_id: Memory ID this image belongs to (used for organizing in R2) image_index: Index of image within the memory (default: 0) caption: Optional caption for the image
Returns: Dictionary with r2_url (the r2:// reference) and image object ready for metadata
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": {
"file_path": "<file_path>",
"memory_id": "<memory_id>"
},
"name": "memory_upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | ||
| file_path | Yes | ||
| memory_id | Yes | ||
| image_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |