get_attachment_image
Retrieve an image attachment as a resized JPEG, capped at max_size pixels on its longest side, for viewing journal photos from a local macOS database. Errors if the attachment is not an image or its bytes are missing.
Instructions
Return an image attachment as JPEG, shrunk so its longest side is at most max_size pixels (default 1568). attachment_id is the id from get_entry's attachments list (the 8-char prefix in placeholders also works if unambiguous). Errors if the attachment is not an image or its bytes are missing.
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": {
"attachment_id": "<attachment_id>"
},
"name": "get_attachment_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_size | No | ||
| attachment_id | Yes |