Skip to content

@camera.ui/sdk / plugin / AssistantToolImage

Interface: AssistantToolImage ​

Defined in: plugin/assistant.ts:87

An image a tool returns alongside its text. Forwarded to the model only when the instance allows images to leave the machine, so content should still describe what the image shows.

Properties ​

caption? ​

optional caption?: string

Defined in: plugin/assistant.ts:93

Short caption shown to the user next to the image.


data ​

data: string

Defined in: plugin/assistant.ts:89

Base64-encoded image bytes.


mimeType ​

mimeType: "image/jpeg" | "image/png" | "image/webp"

Defined in: plugin/assistant.ts:91

MIME type of data.