Skip to content

Images and Vision

You can send Talon pictures and ask about them. Talon stores an Image record for each accepted upload, converts it to a bounded JPEG, and answers questions about it through the vision sub-agent. Each answer is saved as a textual Finding.

The main agent never sees pixels. Pixels go only to the vision sub-agent. The main agent gets text: Image descriptors (ID, dimensions, filename, receipt and expiry time, state, selected EXIF) and saved Findings. This has two effects:

  • Image support works the same for personas on text-only models.
  • Image tokens stay out of the main agent’s session history.
ChannelAccepted
TelegramPhotos and image documents
WhatsApp BaileysImages and image documents
WhatsApp BusinessImages and image documents
EmailImage attachments

Sender, chat, bot, group, and trigger rules do not change. An image-only message can start a run. Talon keeps captions and text. For email, Talon normalizes attachments only after the sender and DMARC checks pass.

See Channels for connector setup.

Uploads work without any setup. Talon ingests, describes, and stores images for every persona. To let a persona ask what an image shows, grant it access explicitly. Existing personas do not gain image abilities on upgrade.

personas:
- name: assistant
subagents:
- vision # allows Inspections
capabilities:
allow:
- subagent.invoke:* # the tool call itself
- image.read:thread # text lookup of Images and Findings
GrantWhat it does
vision in subagentsLets the persona run Inspections. Without it, subagent_invoke with name: vision is denied
subagent.invoke:*The existing permission for the subagent_invoke tool
image.read:threadExposes the image_lookup tool. Independent of the other two grants

An Inspection needs the first two grants. image.read:thread is a separate grant and is recommended alongside them, so the persona can read an existing Finding again without paying for a new Inspection.

Talon accepts JPEG, static PNG, and static WebP. It rejects anything animated, including animated WebP and APNG.

Delivered itemOutcomeUses an upload slot
Photo, ordinary image message, image document, image email attachmentEvaluated as an ImageYes
Unsupported image type, including HEIC and SVGRejected with unsupported_mimeYes
Document or email part with no MIME type or a non-image MIME typeIgnoredNo
Email image embedded in the HTML body, or inline part with no filenameIgnoredNo
Sticker, including a static WebP stickerIgnoredNo
Another size or thumbnail of the same photoNot a separate ImageNo

A document’s filename never decides its type. Telegram album members stay separate messages.

Talon converts each accepted image to a JPEG without metadata:

  1. Read the EXIF data.
  2. Apply the orientation.
  3. Scale the image to fit inside maxEdge. Talon keeps the aspect ratio and never crops or upscales.
  4. Flatten transparency onto white.
  5. Encode at jpegQuality.

If the JPEG is larger than maxNormalizedBytes, Talon encodes it again at quality 75, 65, and 55. If it is still too large, Talon shrinks the longest edge by 25% per step, down to 512 px. An image that never fits is rejected with size_limit. A source with more pixels than maxInputPixels is rejected with size_limit before decoding.

Normalized files live in the thread workspace:

data/threads/<thread_id>/attachments/images/<image_id>.jpg

Talon exposes the dimensions and selected EXIF fields to the main agent: GPS latitude, longitude, and altitude, capture time with its recorded offset, camera make and model, and original orientation. Missing values stay unknown.

Telegram and WhatsApp often strip EXIF from photos. When metadata matters, send the original as a document or attach it to an email. This improves the odds but does not guarantee that the metadata survives.

An Inspection is one question about one or more Images, answered by the vision sub-agent in a single request. The persona calls subagent_invoke:

{
"name": "vision",
"input": {
"imageIds": ["img-0001", "img-0002"],
"question": "What error message is shown, and what does it say to do next?"
}
}

The Image IDs come from the descriptors in the message or from image_lookup.

A successful Inspection returns and saves a Finding:

{ findingId, imageIds, answer, extractedText, uncertainty, model, usage }

Findings are stored in SQLite. They survive failed runs, context rotation, and file expiry. A Finding is model output, not ground truth, so the uncertainty field matters.

Talon validates the whole call before any model request. The call needs a non-empty question and between 1 and images.maxPerInspection distinct Image IDs. Every ID must belong to the current thread and refer to a successfully processed Image.

The whole call fails when any ID is unknown, from another thread, duplicated, still processing, rejected, or unavailable, or when there are too many IDs. Talon never shortens the list. It does not accept paths or URLs.

Inspections run only inside a foreground run of the thread, which is a message or a scheduled task. A background agent cannot run an Inspection. Talon refuses the call before any model is billed. A background agent can still read existing Findings with image_lookup.

The vision sub-agent uses Claude Haiku 4.5 on Anthropic by default, with a 60-second timeout. Override the model chain under subagents.vision.model. See Sub-agents for the override format.

Every entry in the chain must use a vision-capable provider: anthropic, openai, google, or ollama. Talon rejects a text-only provider such as claude-code or codex-sandbox at config load. It checks the full chain again at startup.

image_lookup reads stored Images and Findings for the current thread. It never calls a model and never downloads anything. It requires the image.read:thread capability and needs no vision assignment.

OperationFields beyond operationReturns
list_imageslimit, cursor{ images, nextCursor }
get_imageimageId{ image } with the current state of one Image
list_findingsimageId (filter), limit, cursor{ findings, nextCursor }
get_findingfindingId{ finding } with the exact saved Finding
  • Lists return 20 items by default, newest first. limit accepts 1 to 100.
  • Pass nextCursor back unchanged to get the next page. null means there are no more items.
  • list_images includes rejected and unavailable Images, because their metadata and Findings remain. It leaves out Images that are still processing.
  • Unknown IDs, IDs from another thread, and IDs that are still processing all return the same not-found error.
  • Current message. Talon appends the descriptors of the message’s images to what the model receives.
  • Fresh sessions and context rotation. The model gets a fuller inventory: the 20 newest descriptors and the 10 newest Findings, within a character budget.
  • Resumed sessions. Talon does not repeat the full inventory on every turn. The persona uses image_lookup for older Images and for current state.

A descriptor in the history is a snapshot. Its state and expiry can be out of date. get_image reports the current state.

All settings are optional. These are the defaults:

images:
maxInputBytes: 10485760 # 10 MiB per Image
maxPerMessage: 5 # upload slots per message
maxPerInspection: 5 # Image IDs per Inspection
maxEdge: 4096 # longest normalized edge in pixels
jpegQuality: 85 # 1 to 100
maxInputPixels: 100000000 # decoded source pixels
maxNormalizedBytes: 3750000 # normalized JPEG bytes
retentionHours: 24 # retention of the normalized file
FieldDefaultDescription
maxInputBytes10485760Maximum input size per Image. Talon checks actual bytes, not only the declared size
maxPerMessage5Upload slots per message. Extra attachments are rejected with count_limit
maxPerInspection5Maximum Image IDs in one Inspection
maxEdge4096Longest edge of the normalized file in pixels
jpegQuality85JPEG quality of the normalized file, 1 to 100
maxInputPixels100000000Maximum source pixels (width times height). The maximum allowed value is 268402689
maxNormalizedBytes3750000Maximum size of the normalized file. The default fits Anthropic’s 5 MB base64 limit per image
retentionHours24How long Talon keeps the normalized file. Fractional values such as 0.5 are valid

maxPerMessage and maxPerInspection are independent. Raising one does not raise the other.

Lower maxNormalizedBytes if your vision provider accepts smaller images than Anthropic does.

Changing any images setting needs a daemon restart. talonctl reload keeps the running values and logs a warning.

Email has a lower practical limit. The email connector caps the whole message at 10 MiB, including encoding, headers, body, and every attachment. That leaves roughly 7.5 MiB or less for one decoded image. To deliver a large photo, send it as its own email or use Telegram or WhatsApp.

These limits are constants, not configuration:

  • 60 seconds per message to download media on Telegram and WhatsApp
  • A separate 60 seconds per message for normalization
  • At most 3 attempts per Image

A restart or a redelivery does not reset them.

While a connector processes a message with images, it can delay other messages. A connector that handles messages one after another holds back everything else on that connector until the image message is done, including messages for other chats. Both WhatsApp connectors hold back only later messages in the same chat.

Retention applies to the file only. After retentionHours, Talon deletes the normalized JPEG and the Image becomes unavailable with reason expired. Talon checks at startup and on a sweep at most every 60 seconds.

Retention does not delete:

  • Image records
  • GPS and other EXIF data
  • Findings
  • Conversation text

These remain until you delete them separately. Retention also does not affect what your model provider keeps.

Expiry is absolute. Viewing an Image, asking about it, retrying, or restarting the daemon does not extend it. If the queue is backed up, a message’s first run can find its own images already expired. The only recovery is to upload the image again. That creates a new Image ID with a fresh deadline. Existing Findings stay attached to the old ID.

A rejection is permanent for that Image. The reasons are a fixed list:

ReasonMeaning
unsupported_mimeAn image type outside the supported formats
count_limitMore attachments than the message’s upload slots
size_limitBytes, decoded pixels, or the normalized JPEG exceed their limit
animatedAnimated image, including APNG
download_failedThe media download failed or timed out
conversion_failedTalon could not decode or normalize the input
processing_interruptedRecovery found no usable source before the processing deadline
processing_failedRetries ran out, or the deadline passed

An Image is unavailable for one of two reasons: expired or file_missing. In both cases, upload the image again. The metadata and existing Findings remain.

  • A failed Inspection or provider error never turns an available Image into a rejected one.
  • On failover, each retry is a full request with the question and all images.
  • If every model in the chain fails, Talon creates no Finding. It never drops images to produce an answer.
  • Missing credentials for the vision model cause an explicit error. Talon never sends an Inspection to the persona’s own model instead.