Your agent says “Done, I sent the screenshot.” Your chat window says otherwise. No file, no error, no thumbnail. Just a very confident sentence and an empty message.
I have hit this on Discord, Telegram, and WhatsApp, and the cause was different every time. OpenClaw moves media through three separate stages, and each stage fails in its own way. If you fix the wrong stage you will spend an hour changing model settings for what is really a 12 MB file hitting an 8 MB ceiling.
This is the triage order I use now. Match the symptom first, change one setting second, then verify in the chat itself. The whole diagnosis takes about ten minutes once you know where to look.

Stage 1: Inbound, why the agent says it cannot see your file
When you drop an image into a chat, the gateway saves it to ~/.openclaw/media/inbound, then stages a copy into the active workspace at media/inbound/. Sandboxed sessions only ever see that second path. The original file is kept for the session transcript, which is why your inbound folder grows quietly in the background. Mine is 468 MB right now.
Before your message reaches the model, a media understanding pass runs. It collects the attachments, picks a model that supports that media type and has credentials, checks the file against a size cap, and replaces the raw bytes with a short text description. That description is what the model actually reads. If the pass fails, the original attachment is still delivered to a vision capable reply model, which is why some setups appear to “work” with understanding disabled.
The defaults that catch people out:
- One attachment only. The default policy is
{ mode: "first", maxAttachments: 1 }. Send four screenshots and the agent analyzes the first one. It will describe screenshot one while you wait for an answer about screenshot four. - Image cap is 10 MB, audio 20 MB, video 50 MB. A 4K screenshot from a Retina display can pass 10 MB without looking large.
- Timeout is 60 seconds for image and audio, 120 for video. A slow vision provider on a big image fails quietly and moves to the next model entry.
- HEIC is not an image here. iPhone photos need converting to JPEG first. Same for TIFF and most raw formats.
If your reply model is text only, OpenClaw routes images to agents.defaults.imageModel. When that path is missing or points at a text model, the failure is explicit: Model does not support images. I hit exactly this on this machine while writing this post, and the fix was one config key, not a channel change.
Vision input also bills per image and per resolution, so a full Retina screenshot costs several times a cropped one. If your bill is climbing, start with these token cost fixes.
To process every attachment instead of the first, set it per capability. The mode: "all" option labels the output [Image 1/2], [Image 2/2] so the model can tell them apart.
A PDF is not an image either. It goes through file-attachment extraction, which pulls the text out and wraps it in untrusted-content boundary markers before the model sees it. A scanned PDF with no text layer returns [No extractable text] unless the page images get rendered for a vision model. If your agent “ignores” a contract you sent as a scan, that is the reason.
Stage 2: Path resolution, the “file not found” error
Outbound is a different pipeline. The agent does not hand the channel a blob. It hands over a reference, and the runtime resolves that reference to a real file on disk before upload. Three things break here.
Relative versus absolute. A bare filename resolves against the workspace. An absolute path like /Users/you/Desktop/report.pdf works on the host but fails inside a Docker sandbox, because the sandbox has its own filesystem and only the workspace is mounted. The error is a plain “file not found” even though you can see the file in Finder.
Stale media references. If you clean out media/inbound to save disk, every transcript that points at those files now points at nothing. Old sessions cannot resend their own attachments. Keep the folder, or move files somewhere stable and update the reference.
Extension and MIME mismatch. A PNG renamed to .jpg passes the path check and fails at the channel upload, because the bytes do not match the declared type. Some channels reject it, others accept it and show a broken thumbnail. This one is nasty because the send call returns success.
The reliable pattern is to copy the file into the workspace first, then reference it with a short, space free name. Inside a sandbox, media/inbound/<filename> is always valid, and media://inbound/<id> is accepted by the browser upload path. Nothing outside the workspace is guaranteed to exist.
Stage 3: Transport, why the send reports success and the chat stays empty
The final stage is the channel upload. This is where “sent” and “delivered” stop meaning the same thing. The gateway accepted your tool call, the file was readable, the upload started, and then the platform refused it for a size or format reason.
Discord preview streaming is text only. Media replies fall back to normal delivery, so if you are watching a streamed draft you may see the text appear and assume the image was dropped. Give it a few seconds before you start changing config.
WhatsApp adds a transcode step for voice notes. Audio that is not already Ogg/Opus gets converted with ffmpeg at 48 kHz. If the transcode fails, WhatsApp has no fallback and the send fails outright, while Feishu falls back to a plain attachment. Telegram and Discord keep the file as an upload. If a voice note works on Telegram and fails on WhatsApp, suspect the audio container, not the agent.
One more transport detail worth knowing: forceDocument (or asDocument) routes images, GIFs, and video as documents. That preserves the filename and MIME type and skips the platform’s compression. It is the difference between a clean PNG your client can download and a re-encoded JPEG that looks soft.

The size math: two caps, and the smaller one wins
Every outbound file is checked against two numbers: the channel’s mediaMaxMb and the agent default agents.defaults.mediaMaxMb. The lower one applies. If you leave the agent default unset, the fallback is 8 MB, which is why a 12 MB screen recording vanishes on a channel that would happily take 100 MB.
You can confirm whether the key is even set:
openclaw config get agents.defaults.mediaMaxMb
# Config path not found: agents.defaults.mediaMaxMb.
# Run openclaw config validate to inspect config shape.
That “not found” answer is not an error. It means the key is unset and the 8 MB fallback is in force. On this machine the agent default is unset while Telegram and Discord are configured at 100 MB, so inbound video over 8 MB would still be staged but outbound sends over 8 MB fail until the key is raised.
Set it deliberately, then restart the gateway so the change is picked up:
openclaw config set agents.defaults.mediaMaxMb 25
openclaw gateway restart
Raising it does not lift a channel cap. Setting 500 MB does not make Slack accept a 60 MB video. The practical order is: compress first, raise the agent default second, and only then consider the channel cap.
Prove delivery with one round trip
Do not trust the tool result. Test the full loop with a small file you can identify at a glance.
- Create a tiny test image and send it explicitly:
messagewithaction="send", a target, and the file path. - Look at the chat. If the image appears, stage 3 works and your problem is size or format on the real file.
- Check the outbound folder timestamp:
ls -lt ~/.openclaw/media/outbound | head -5. A new file with the right byte size means the runtime resolved and staged the upload. - Tail the log while you send:
openclaw logs --follow --plain. Upload rejections and MIME errors show up here even when the tool call returns OK. - Run
openclaw doctorat the end. It catches channel permission problems that look like media bugs, especially missing Discord permissions in threads and forum channels.
If the round trip passes with a 200 KB PNG and fails with the real screenshot, you have a size or format problem, not a delivery problem. That single distinction saves the most time.
Common mistakes
- Raising the agent cap and expecting the channel to change. The channel cap still wins. Confirm both numbers before you edit anything.
- Assuming every attachment gets analyzed. The default is first only. Set
attachmentsper capability if you need all of them. - Blaming the channel for a text-only model. “I cannot see images” is a vision routing problem. Check
agents.defaults.imageModelbefore you touch Discord permissions. - Sending files with spaces or no extension. Quote the path if you must, but renaming to
report-2026-11.pdfremoves a whole class of failures. - Cleaning up inbound media. It breaks old sessions that reference those files. Move, do not delete.
- Leaving voice notes in M4A for WhatsApp. Transcoding can fail. Send Ogg/Opus or use
forceDocumentif the format is not critical.
Check out our guide to OpenClaw session pins and model fallbacks. It shows how to keep a vision capable model in the chain so images never hit a text-only endpoint.
Read the GuideFAQ
The tool call succeeded but the channel upload likely failed. OpenClaw checks the file against the channel mediaMaxMb and the agent default, then uploads. A size or MIME mismatch can fail after the call returns success. Check the chat, then open openclaw logs --follow --plain for the upload error.
The default media understanding policy is mode first with maxAttachments 1, so only the first attachment is processed. Set tools.media.image.attachments to mode all with a higher maxAttachments to have every image described and labeled Image 1 of 2, Image 2 of 2.
It depends on the channel. Telegram and Discord default to 100 MB, WhatsApp to 50 MB, and Slack to 20 MB. The agent default agents.defaults.mediaMaxMb applies when unset and falls back to 8 MB, so the lower of the two numbers is the real limit.
Yes. Documents go through file-attachment extraction, which pulls out the text and wraps it as untrusted external content before the model reads it. Scanned PDFs without a text layer return No extractable text unless the pages are rendered as images for a vision model.
Yes, in two ways. The media understanding pass makes its own model call for the description, and the original image may still be sent to a vision capable reply model. Large screenshots with dense text use the most tokens, so crop to the relevant area before sending.
Final Thoughts
Media failures look like model problems and are almost always plumbing problems. Inbound staging, path resolution, and transport are three different systems, and each one has a distinct symptom: “I cannot see images” is vision routing, “file not found” is resolution, and a silent empty chat is transport.
Start with the symptom, fix one stage, and prove it with a round trip in the chat. If your agent handles images but gets vague in long threads after sending a dozen screenshots, the next thing to read is how context overflow degrades replies. Images are expensive in context, and the fix is different again.

