#agent lost capability to attach pdf in discord.
1 messages · Page 1 of 1 (latest)
Yep, the pasted output is the clue.
MEDIA: only gets turned into an attachment when it is on its own line. In your example it shows up as:
[claude-sonnet-4-6_zzapi] MEDIA:/home/herb/.../report_min8.pdf
So OpenClaw sees plain text, not an attachment directive.
Also, recent builds tightened local MEDIA:/... from tool results. If that line is coming from a custom/client tool like claude-sonnet-4-6_zzapi, it may no longer be trusted for local-file attach passthrough.
First thing, what does this return?
openclaw --version
What I’d test next:
-
Make the final assistant reply be exactly:
Here's the PDF. MEDIA:/home/herb/.openclaw/workspace-worbot/skills/job_scout/output/20260416-203648/report_min8.pdfwith nothing before
MEDIA:. -
Better fix: use the message tool to send the PDF with
path/filePathinstead of printingMEDIA:from that custom tool output. -
If this started right after updating to
2026.4.15-beta.2+, that lines up with the recent hardening around localMEDIA:passthrough from tool results.
Docs:
If you paste your version plus how claude-sonnet-4-6_zzapi is wired, I can help narrow the smallest fix fast.