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.
Channels that accept images
Section titled “Channels that accept images”| Channel | Accepted |
|---|---|
| Telegram | Photos and image documents |
| WhatsApp Baileys | Images and image documents |
| WhatsApp Business | Images and image documents |
| Image 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.
Enable it for a persona
Section titled “Enable it for a persona”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| Grant | What it does |
|---|---|
vision in subagents | Lets 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:thread | Exposes 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.
Accepted formats
Section titled “Accepted formats”Talon accepts JPEG, static PNG, and static WebP. It rejects anything animated, including animated WebP and APNG.
| Delivered item | Outcome | Uses an upload slot |
|---|---|---|
| Photo, ordinary image message, image document, image email attachment | Evaluated as an Image | Yes |
| Unsupported image type, including HEIC and SVG | Rejected with unsupported_mime | Yes |
| Document or email part with no MIME type or a non-image MIME type | Ignored | No |
| Email image embedded in the HTML body, or inline part with no filename | Ignored | No |
| Sticker, including a static WebP sticker | Ignored | No |
| Another size or thumbnail of the same photo | Not a separate Image | No |
A document’s filename never decides its type. Telegram album members stay separate messages.
Normalization and storage
Section titled “Normalization and storage”Talon converts each accepted image to a JPEG without metadata:
- Read the EXIF data.
- Apply the orientation.
- Scale the image to fit inside
maxEdge. Talon keeps the aspect ratio and never crops or upscales. - Flatten transparency onto white.
- 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>.jpgMetadata
Section titled “Metadata”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.
Inspections and Findings
Section titled “Inspections and Findings”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.
Input rules
Section titled “Input rules”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.
Foreground runs only
Section titled “Foreground runs only”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.
Vision model
Section titled “Vision model”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.
The image_lookup tool
Section titled “The image_lookup tool”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.
| Operation | Fields beyond operation | Returns |
|---|---|---|
list_images | limit, cursor | { images, nextCursor } |
get_image | imageId | { image } with the current state of one Image |
list_findings | imageId (filter), limit, cursor | { findings, nextCursor } |
get_finding | findingId | { finding } with the exact saved Finding |
- Lists return 20 items by default, newest first.
limitaccepts 1 to 100. - Pass
nextCursorback unchanged to get the next page.nullmeans there are no more items. list_imagesincludes 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.
What the main agent sees
Section titled “What the main agent sees”- 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_lookupfor 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.
Configuration
Section titled “Configuration”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| Field | Default | Description |
|---|---|---|
maxInputBytes | 10485760 | Maximum input size per Image. Talon checks actual bytes, not only the declared size |
maxPerMessage | 5 | Upload slots per message. Extra attachments are rejected with count_limit |
maxPerInspection | 5 | Maximum Image IDs in one Inspection |
maxEdge | 4096 | Longest edge of the normalized file in pixels |
jpegQuality | 85 | JPEG quality of the normalized file, 1 to 100 |
maxInputPixels | 100000000 | Maximum source pixels (width times height). The maximum allowed value is 268402689 |
maxNormalizedBytes | 3750000 | Maximum size of the normalized file. The default fits Anthropic’s 5 MB base64 limit per image |
retentionHours | 24 | How 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.
Restart rule
Section titled “Restart rule”Changing any images setting needs a daemon restart. talonctl reload keeps the running values and logs a warning.
Email size limit
Section titled “Email size limit”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.
Fixed timing limits
Section titled “Fixed timing limits”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
Section titled “Retention”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.
Failure behavior
Section titled “Failure behavior”Rejected images
Section titled “Rejected images”A rejection is permanent for that Image. The reasons are a fixed list:
| Reason | Meaning |
|---|---|
unsupported_mime | An image type outside the supported formats |
count_limit | More attachments than the message’s upload slots |
size_limit | Bytes, decoded pixels, or the normalized JPEG exceed their limit |
animated | Animated image, including APNG |
download_failed | The media download failed or timed out |
conversion_failed | Talon could not decode or normalize the input |
processing_interrupted | Recovery found no usable source before the processing deadline |
processing_failed | Retries ran out, or the deadline passed |
Unavailable images
Section titled “Unavailable images”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.
Failed Inspections
Section titled “Failed Inspections”- 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.