Add Visual Reference
attach_visual_referenceAfter explicit permission, save transferable image bytes as a private Visual reference on an existing event, Inventory item or contact. Never a real photograph, cover, avatar or evidence. Preserves existing photos. Find entity_id with find_image_target. No bytes means failure; attached=true requires stored-byte and same-record readback. Retry the SAME request_id. ($0.15; API key required)
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": {
"entity_type": "<entity_type>",
"entity_id": "<entity_id>",
"confirmed": "<confirmed>",
"request_id": "<request_id>"
},
"name": "attach_visual_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | HTTPS image URL for expert API clients only; SSRF checks apply. | |
| image | No | ChatGPT chat attachment. Prefer this for images from the conversation; API clients may still use image_base64 or url. | |
| source | No | chatgpt_generated or illustration; illustration stores as external_illustration. | |
| confirmed | Yes | true only after the user requested saving this image to this meal. | |
| entity_id | Yes | Existing entity_id from find_image_target or its create receipt. Never create a duplicate for an image. | |
| generator | No | Generator if known; do not invent. | |
| mime_type | No | MIME type of the image, e.g. image/png. | |
| request_id | Yes | Client idempotency key; a retry with the same key returns the original result, e.g. req_2026-10-17_001. | |
| entity_type | Yes | Type of the record the id refers to, e.g. event. | |
| generated_at | No | ISO time if known; do not invent. | |
| image_base64 | No | Actual image bytes, for clients without the ChatGPT file bridge. | |
| idempotency_key | No | Alias for request_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| account | No | The Dayze account this data belongs to. With more than one Dayze connection, name it in the answer. | |
| asset_id | No | ||
| attached | No | ||
| provenance | No | Which connector wrote the record and which connected Dayze account received it. | |
| inspect_url | No | The Dayze page that shows the saved record. | |
| inspect_note | No | What inspect_url opens. Never quote the record id. | |
| verification | No |