#agent lost capability to attach pdf in discord.

1 messages · Page 1 of 1 (latest)

fleet mural
#

my agent suddenly doet know how to attach stuff - only pasting this for me : [claude-sonnet-4-6_zzapi] MEDIA:/home/herb/.openclaw/workspace-worbot/skills/job_scout/output/20260416-203648/report_min8.pdf

Here's the PDF with 21 jobs scoring ≥7/10 from today's run.

near waspBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

drowsy flowerBOT
naive hedgeBOT
#

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:

#
  1. 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.pdf
    

    with nothing before MEDIA:.

  2. Better fix: use the message tool to send the PDF with path/filePath instead of printing MEDIA: from that custom tool output.

  3. If this started right after updating to 2026.4.15-beta.2+, that lines up with the recent hardening around local MEDIA: 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.