Add image to document
add_image_to_documentUpload an image and create a ticket document record for it. Provide image_data (base64-encoded bytes) OR image_url (publicly accessible URL). The image is stored in ticket-attachments.
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": {
"ticket_id": "<ticket_id>",
"file_name": "<file_name>"
},
"name": "add_image_to_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional notes about the document | |
| file_name | Yes | Image filename with extension, e.g. diagram.png | |
| image_url | No | Publicly accessible image URL — use this OR image_data | |
| mime_type | No | Image MIME type, e.g. image/png or image/jpeg (default: image/jpeg) | |
| ticket_id | Yes | Ticket UUID | |
| image_data | No | Base64-encoded image bytes — use this OR image_url |