View as Markdown
Egnyte icon

Egnyte ACTION

Download File

Download a file from Egnyte and save it under /tmp. For common text-based types (for example text/*, JSON, XML, CSV, Markdown), the response can include a content string with the file body. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Egnyte account once, then configure and run Download File from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "egnyte-download-file",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    egnyte: { authProvisionId: "apn_xxxxxxx" },
    folderPath: "Folder Path",
    filename: "Filename",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Download File inputs
Property Type Description
folderPath Folder Path string
The path to the folder containing the file to download. Search for a folder to select or enter a folder path manually.
Required Dynamic
filename Filename string
The name of the file to download
Required Dynamic
returnContent Return Content boolean
Whether to return the content of the file as a string. If true, the response will include a content string with the file body. Only available for common text-based types (for example text/*, JSON, XML, CSV, Markdown).
Optional
syncDir SyncDir dir
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
egnyte-download-file
Version
0.0.2
App
Egnyte
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes