Skip to content

extract text from PDF documents for models that don't support PDF input? #14270

Closed

Description

@agnlt64

Question

no models from opencode zen support PDF input. when i attempt to read PDF documents using Kimi K2.5, Big Pickle or MiniMax M2.5, the tool call returns "PDF read successfully" but the model fails to process the document (see screenshots). would it be possible to extend the read tool to extract text from the document and give it to the model?

attempting to read a PDF document with Kimi K2.5
Image

same with MiniMax 2.5 Free
Image

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Feb 19, 2026
  2. github-actions commented on Feb 19, 2026

    @github-actions
    Contributor

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

    If you believe your issue is distinct, please clarify what differentiates it from the above.

  3. agnlt64 commented on Feb 19, 2026

    @agnlt64
    Author

    the above issue (#3383) is about a bug in the read tool while trying to process PDF documents. it would crash with this error message: AI_UnsupportedFunctionalityError: 'file part media type application/pdf' functionality not supported. in my case, the tool doesn't crash and says that the document was read successfully. there is no bug, i just want to know if it's possible to extend the read tool to extract text from PDF documents and send it to models that don't support PDF as input.

  4. github-actions commented on Apr 21, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions