-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return a PDF as a Tool result #162
Comments
Why you don't upload with the tool the PDF to remote server and provide API? BTW: your error seem more here already related to item_key. Like you have a loop out of control. |
Thanks for your input, the PDFs in that case are academic publications, and usually as a user I just upload them in the GUI. In the connector i am writing, the goal is that the PDF can just be provided from the Zotero library. Ideally I would not have to parse the paper myself into a MD format. |
I'm a bit confused here.
As you can see Claude can't process binary or PDF format, so encoding it, won't solve the issue as it needs a parser on Claude API side. Easiest way is adding https://github.com/VikParuchuri/marker in your workflow convert the file to MD ( as long not image PDF) and then enjoy, if it's an image you can use other advanced OCR converts that work fine. Hope it helps. |
I see, I guess one can provide a PDF on the Claude Desktop App, so I expected that MCP would use similar conversion tools to pretreat the document. |
Is your feature request related to a problem? Please describe.
I want to return a PDF instead of an Image during a Tool results using the Python SDK.
I thought the way to do it is probably like this:
but I only get the error
And Claude desktop does not like it, so I am guessing it does not work yet, or it would be great if there is an alternative version of returning things that are not images.
The text was updated successfully, but these errors were encountered: