pdf-reader tool has no parameters and read tool cannot read PDFs #2245

Closed
opened 2026-02-16 17:34:49 -05:00 by yindo · 3 comments
Owner

Originally created by @chindris-mihai-alexandru on GitHub (Oct 23, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

The read tool throws an error when attempting to read PDF files:

AI_UnsupportedFunctionalityError: 'file part media type application/pdf' functionality not supported

Additionally, the pdf-reader tool is defined but has no parameters, making it unclear how to use it.

Expected Behavior

Either:

  1. The read tool should support reading PDF files (documentation mentions it can read image files, suggesting binary file support)
  2. The pdf-reader tool should accept a filePath parameter and work correctly

Actual Behavior

  • read tool: Returns error "Cannot read binary file: [path].pdf"
  • pdf-reader tool: Has no parameters defined, unclear how to invoke it

Reproduction

Attempt to read any PDF file using the read tool.

Workaround

Users must convert PDFs to text manually using external tools like pdftotext.

Originally created by @chindris-mihai-alexandru on GitHub (Oct 23, 2025). Originally assigned to: @rekram1-node on GitHub. ## Description The `read` tool throws an error when attempting to read PDF files: ``` AI_UnsupportedFunctionalityError: 'file part media type application/pdf' functionality not supported ``` Additionally, the `pdf-reader` tool is defined but has no parameters, making it unclear how to use it. ## Expected Behavior Either: 1. The `read` tool should support reading PDF files (documentation mentions it can read image files, suggesting binary file support) 2. The `pdf-reader` tool should accept a `filePath` parameter and work correctly ## Actual Behavior - `read` tool: Returns error "Cannot read binary file: [path].pdf" - `pdf-reader` tool: Has no parameters defined, unclear how to invoke it ## Reproduction Attempt to read any PDF file using the `read` tool. ## Workaround Users must convert PDFs to text manually using external tools like `pdftotext`.
yindo closed this issue 2026-02-16 17:34:49 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 23, 2025):

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

  • #1356: Both issues report the same AI_UnsupportedFunctionalityError with 'file part media type application/pdf' functionality not supported when trying to work with PDF files

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 23, 2025): This issue might be a duplicate of existing issues. Please check: - #1356: Both issues report the same AI_UnsupportedFunctionalityError with 'file part media type application/pdf' functionality not supported when trying to work with PDF files Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 23, 2025):

@chindris-mihai-alexandru what model and provider are you using? that error is from the provider saying that pdfs arent supported for given model

@rekram1-node commented on GitHub (Oct 23, 2025): @chindris-mihai-alexandru what model and provider are you using? that error is from the provider saying that pdfs arent supported for given model
Author
Owner

@chindris-mihai-alexandru commented on GitHub (Oct 23, 2025):

@rekram1-node I'm using the Sonnet 4.5 model with my GitHub Copilot Pro sub. I'll try and be more careful in choosing models that actually support PDFs

@chindris-mihai-alexandru commented on GitHub (Oct 23, 2025): @rekram1-node I'm using the Sonnet 4.5 model with my GitHub Copilot Pro sub. I'll try and be more careful in choosing models that actually support PDFs
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2245