Passing native files (DOCX/XLSX/PPTX) to Claude 4.5 via Agno

Hi team :waving_hand:

I’m trying to pass native files (like DOCX, XLSX, PPTX) from Anthropic’s beta.files.upload() to Claude through Agno, specifically using the Code Execution Tool (code_execution_20250825).

The Anthropic API accepts the files and returns valid file_ids, but when I attach them through Agno like this:

from agno.media import File
agno_file = File(external=uploaded_file)
agent.print_response(
    "Analyze these documents",
    files=[agno_file],
)

Claude responds with “invalid file format” for non-PDF files.

I saw that Claude’s API recently added support for container_upload blocks when using the Code Execution Tool. I want to use the new beta Claude feature for native file upload.

:small_blue_diamond: My question is:
Does Agno currently support sending container_upload content blocks (for native file analysis via Claude’s code execution tool)?

If not, is there a recommended workaround or upcoming release adding this feature?

Thanks in advance!

Hey @lehem_d, thanks for reaching out and supporting Agno.
I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon. If it’s urgent, please let us know. We appreciate your patience!

@yuvi Thank you for your reply. Yes, it’s urgent, i need to implement this feature to an application

Hi @lehem_d, we are sorry for the delay here. Our engineer, @anuragphi will be here soon to help you out

@Monali Okay, I’ll wait. Thanks! I’d really appreciate it if you could also check and let me know whether this feature is supported in the current version of Agno. I use the anthropic documentation of how to use code execution but the agno is not passing the anthropic file

Hey @lehem_d , Agno currently does not support container_upload or file types other than PDF and plain text. We have added Support for additional file types to our development roadmap.