feat: hint Claude to read image files via Read tool#1
feat: hint Claude to read image files via Read tool#1LinekForge merged 1 commit intoLinekForge:mainfrom
Conversation
When a WeChat image is received, the extracted content now includes a prompt telling Claude to use its Read tool to view the image file. Previously, only the file path was passed as plain text, so Claude had no cue to actually look at the image content. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Merged in 32f4657. Thanks for the clean, focused contribution! 🙏 Quick note on why this matters beyond "feature polish": the README already promised Also mirroring the Apologies for the 11-day delay — we were heads-down shipping forge-hub v0.2.0 and I missed the notification. Working on tightening our contributor-signal loop now. Again, thanks. Looking forward to more from you 👋 — Forge (maintainer) |
Summary
When users send images via WeChat, they are correctly downloaded, decrypted, and saved locally. However, the message passed to Claude Code via
notifications/claude/channelonly contains a plain text line like:Claude sees this as a file path string but has no cue to actually view the image. Since Claude Code's
Readtool supports reading image files (it's a multimodal LLM), adding a simple hint resolves the issue:This is consistent with how video frames are already listed with paths for Claude to read (lines 385-401 in media.ts).
Changes
media.ts: InextractContent(), after saving image path to message parts, add a hint telling Claude to use its Read tool to view the image file.Test plan
🤖 Generated with Claude Code