Read tool throws error when reading pdf files #7380

Open
opened 2026-02-16 18:07:00 -05:00 by yindo · 3 comments
Owner

Originally created by @i-m-sid on GitHub (Jan 23, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I get unprocessable entity error with pdf file and claude model

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. prompt: read .pdf
  2. We can see it fails
  3. The same works when we give this prompt: read @.pdf

Screenshot and/or share link

Image

Operating System

MacOS

Terminal

No response

Originally created by @i-m-sid on GitHub (Jan 23, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I get unprocessable entity error with pdf file and claude model ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce 1. prompt: read <filename>.pdf 2. We can see it fails 3. The same works when we give this prompt: read @<filename>.pdf ### Screenshot and/or share link <img width="1342" height="388" alt="Image" src="https://github.com/user-attachments/assets/9c487cf6-511f-4a9b-b3c7-f5e548ea6b57" /> ### Operating System MacOS ### Terminal _No response_
yindo added the bug label 2026-02-16 18:07:00 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 23, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #9825: [BUG] AI is saying that it can't read a PDF (model supports it) - similar issue with PDF reading and model support
  • #9356: My opencode app cannot read files - after update, app says cannot read PDF directly
  • #1356: Referencing a PDF file produces AI_UnsupportedFunctionalityError (closed) - similar workaround using plain filename instead of @ reference

The pattern suggests that using @filename.pdf works as a workaround while direct read filename.pdf fails with an unprocessable entity error. Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 23, 2026): This issue might be a duplicate of existing issues. Please check: - #9825: [BUG] AI is saying that it can't read a PDF (model supports it) - similar issue with PDF reading and model support - #9356: My opencode app cannot read files - after update, app says cannot read PDF directly - #1356: Referencing a PDF file produces AI_UnsupportedFunctionalityError (closed) - similar workaround using plain filename instead of @ reference The pattern suggests that using `@filename.pdf` works as a workaround while direct `read filename.pdf` fails with an unprocessable entity error. Feel free to ignore if none of these address your specific case.
Author
Owner

@i-m-sid commented on GitHub (Feb 2, 2026):

@rekram1-node any updates on this

@i-m-sid commented on GitHub (Feb 2, 2026): @rekram1-node any updates on this
Author
Owner

@Nenormalniy commented on GitHub (Feb 5, 2026):

same issue on windows 11 and OMO v. 3.2.3

@Nenormalniy commented on GitHub (Feb 5, 2026): same issue on windows 11 and OMO v. 3.2.3
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7380