web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Copilot Studio (New Ag...
Copilot Studio
Suggested Answer

Copilot Studio (New Agent Experience) – File input not passed to flow tool (contentBytes empty)

(0) ShareShare
ReportReport
Posted on by 2

Hi all,

 

I’m testing the new Copilot Studio agent experience (June 2026) and ran into an issue when using a Power Automate flow as a tool.

 

Scenario

 

  • Created a flow with trigger: “When an agent calls the workflow”

  • Added inputs:

    • File (type: File)

    • Text (type: string)


    •  

  • Added the flow as a tool in the agent

Issue

 

When I configure the tool inside the agent:

 

  • ✅ The Text input appears in the agent UI

  • ❌ The File input does NOT appear at all


  •  
 

So I’m unable to:

 

  • Map the uploaded file to the flow input

  • Pass file content (contentBytes) into the flow
 

bserved behavior

 

  • Even though the flow clearly has a File input defined, the agent:

    • Only shows text parameters

    • Does not expose the File parameter for mapping


    •  

  • When the flow runs:

    • File object is present but:

      bserved behavior

       

      • Even though the flow clearly has a File input defined, the agent:

        • Only shows text parameters

        • Does not expose the File parameter for mapping


        •  

      • When the flow runs:

        • File object is present but:
Screenshot 2026-0...
Screenshot 2026-0...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Suggested answer
    sannavajjala87 Profile Picture
    457 Super User 2026 Season 1 on at
    Hi,
     
    what you’re seeing is expected with the current Copilot Studio agent experience, when a Power Automate flow is exposed as a tool, the agent UI only surfaces primitive inputs like text, and File inputs are not exposed for mapping. Even if the flow defines a File parameter, the agent doesn’t pass a true file payload; instead it sends a placeholder record, which is why the flow runs with "contentBytes": "". This is a known limitation where uploaded files are not automatically transferred as raw bytes to flows, and the { name, contentBytes } structure is just a schema rather than populated content. In practice, you’ll need to either capture the file inside a topic and explicitly construct the file object before calling the flow, or use a reference-based approach (e.g., store the file in SharePoint/Blob and pass the file URL or ID to the flow).
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    679 on at
    Hi,
     
    As a workaround, you can try to convert the file into Base64 and then pass it as text to your flow.
  • Suggested answer
    Manoj - ManoVerse Profile Picture
    28 on at
    Yes, this looks like a current limitation/behavior in the new Copilot Studio agent tool experience.Power Automate flow has a File input, Copilot Studio may not show it as a mappable parameter in the tool UI. best approach is to pass the uploaded file as separate values: contentBytes and name. 
    Use:
    First(System.Activity.Attachments).Content for file content
    and
    First(System.Activity.Attachments).Name for file name. 
    If ContentBytes is still blank, make sure the file is collected using a File question and Include file metadata is enabled. 
    As a workaround as mentioned by Andre you can convert/pass the file content as Base64 text using a string input in the flow, then decode/use it inside Power Automate. This avoids depending on the File input mapping UI.

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard