Tools
File
Upload or fetch files by URL and extract their text content for use in a workflow
The File block reads one or more files — either uploaded directly or fetched from a URL — and parses each into text content the rest of the workflow can use.
Configuration
- Select Input Method —
File URLorUploaded Files. - File URL — the URL to fetch (for example
https://example.com/document.pdf). Shown when the input method isFile URL. - Process Files — one or more uploaded files. Shown when the input method is
Uploaded Files. Accepts.pdf,.csv,.doc,.docx,.txt,.md,.xlsx,.xls,.html,.htm,.pptx,.ppt,.json,.xml,.rtf, up to 100 MB per file.
Inputs and outputs
| Field | Type | Description |
|---|---|---|
inputMethod (input) | string | Input method selection. |
filePath (input) | string | File URL, when using the URL input method. |
file (input) | json | Uploaded file data, when using the upload input method. |
files (output) | json | Array of parsed file objects, each with content, metadata, and file properties. |
combinedContent (output) | string | All file contents merged into a single text string. |
Example
Use File URL to fetch a PDF report from a partner's storage bucket, then reference <file_block.combinedContent> in a downstream Agent block to summarize it.