Announcements
I have created an agent in Microsoft Copilot Studio and built an agent flow that is designed to take a file input from the user.
When I test the flow directly, the file input works as expected and I am able to upload and process the file successfully.
However, after adding the same flow as a tool to the agent and testing it through the agent conversation, the behavior changes:
Because of this:
This inconsistency between flow testing and agent tool execution is causing confusion, as the flow works correctly in isolation but not when invoked by the agent.
Expected behavior: The agent should be able to accept a user file input or provide a supported way to pass the uploaded file to the flow during execution.
Actual behavior: When invoked as an agent tool, the flow requires a record-type input instead of a file and does not allow file upload.
Please advise whether this is:
Copilot Studio tools cannot accept file uploads.When a flow is used as a tool, it expects a Record, not a File. So the flow fails because no file record is passed.This is e
Hi,
This behavior is expected by design when using Power Automate flows as tools in Copilot Studio agents, and it often causes confusion because the same flow behaves differently when tested independently versus when invoked from an agent.
When you test the flow directly in Power Automate, the trigger supports file-type inputs (such as file upload controls). However, once the flow is added as a tool in Copilot Studio, the platform converts the flow inputs into a structured schema (record/object-based input). Because of this transformation, file upload inputs are not supported in the same way, and the agent cannot directly prompt the user to upload a file during tool execution.
This is why:
To resolve this, the flow needs to be slightly redesigned to align with how Copilot Studio handles inputs:
fileName
contentBytes
This pattern is currently the recommended and supported approach when working with files in Copilot Studio tool scenarios.
--------------------------------------------------------------------------------------------------------------------------------------------- If this helps resolve your issue, please consider marking the response as Verified so it can help others facing a similar scenario
If you found this helpful, you can also click “Yes” on “Was this reply helpful?” or give it a Like.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 277
11manish 206
sannavajjala87 156 Super User 2026 Season 1