Skip to content

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

Closed

Description

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.

Activity

  1. github-actions commented on Oct 23, 2025

    @github-actions
    Contributor

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

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

  2. rekram1-node commented on Oct 23, 2025

    @rekram1-node
    Collaborator

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

  3. self-assigned this
    on Oct 23, 2025
  4. chindris-mihai-alexandru commented on Oct 23, 2025

    @chindris-mihai-alexandru
    Author

    @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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions