How to Download a File from a Given File Path onto the Requesting Machine?

This topic was automatically generated from Slack. You can find the original thread here.

Currently, Im looking to download a file obtained via a tool call, and this returns a file path. From the provided file path, how do I download the actual file onto the requesting machine?

We’ve started rolling out the first part of this: Working with Files — Pipedream

Are you using our SDK directly, or MCP?

Im using the SDK directly

Okay cool — check out those docs in that case and let me know if that makes sense.

Thanks, will take a look

Following up on this one, I cant seem to get it work? Providing an empty stashId, true, or “NEW” doesnt seem to get it to return the exports it should be

Im calling the .runAction method on the pipedream package

What action? Is there anything that was already or is being written to /tmp?

This is the google_drive-download-file action

And nothing should be

File Stash works specifically to sync the contents of /tmp, and I believe that action should be writing there, so I’d expect it to work in that case.

Can you log the actual payload and the response and paste them both here?

I can show you exactly what Im passing

Yeah sure

This is the options var right before it gets sent

Ive also tested it with and without the filepath var

Can you try adding a leading /tmp/ in the filePath prop input?