Skip to content

Referencing a PDF file produces AI_UnsupportedFunctionalityError #1356

Closed

Description

@laughedelic

Hi! I'm trying to reference a PDF file in my prompt asking it to use an MCP server to convert it to markdown, but just the fact of referencing the PDF file produces an error and it doesn't do anything with it:

Image

any interaction after that just repeats the error, so I have to restart it.

Meanwhile, if I just write down the filename (not as a reference), it is able to run the tool:

Image

A general question: I know that the model (Claude 4 Sonnet) is able to process PDFs, so do I really need to use an MCP server to be able to attach PDFs to the context, or should it (in theory) work out of the box (i.e. via direct file reference)?

This might be related to

Activity

  1. adamdotdevin commented on Aug 13, 2025

    @adamdotdevin
    Member

    @laughedelic which provider are you using? i believe some providers don't support PDF, like GH copilot

  2. laughedelic commented on Aug 14, 2025

    @laughedelic
    Author

    Thanks! I can confirm that it works in the latest version with the appropriate model 👍 (e.g. Claude 4 Sonnet)

    But when I tried it with GPT-4.1, it failed with the same error. I think the error message is rather opaque, it doesn't indicate that the model doesn't support that file type, so it can be confusing.

    Image
  3. laughedelic commented on Aug 14, 2025

    @laughedelic
    Author

    Sorry, I kind of replied to the comment in the other issue.

    Yes, I was using GPT-4.1 via GitHub Copilot. It's good to know that it depends on the provider, not only the model. But could you make the error message more informative?

  4. adamdotdevin commented on Aug 15, 2025

    @adamdotdevin
    Member

    @thdxr curious what your thoughts are around how we expose AI SDK errors; if we could make them nicer across the board that'd be great, but not sure how we tackle it

  5. munim commented on Sep 10, 2025

    @munim

    Github Copilot with GPT-4.1 was able to convert a PDF file using Markitdown MCP server. Wondering why wouldn't it work with OpenCode!

  6. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Collaborator

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

  7. markthepixel commented on Jan 12, 2026

    @markthepixel

    running into an issue where sonnet just has a weird error and gpt5.2 just says it doesnt support it. Is it hte model or opencode?

  8. rekram1-node commented on Jan 12, 2026

    @rekram1-node
    Collaborator

    @markthepixel what provider? what error? It's coming from ur provider

  9. markthepixel commented on Jan 12, 2026

    @markthepixel

    It's antigravity then

  10. added a commit that references this issue on May 12, 2026
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