Use the File block to read or extract workspace files, search their contents, fetch files from URLs with custom headers, write or append content, create or extract ZIP archives, and manage share links with public, password, email, or SSO access. Additional actions apply precise text edits, move files, and list, create, move, delete, or restore folders.
Folder selection is optional and supports multiple folders. Choose folders from the workspace, or switch to advanced mode and provide comma-separated paths or a value from an earlier block. Without a folder selection, Search spans the workspace and file pickers are unscoped. Selected folders are expanded when the workflow runs, so newly added files are included.
Use the block
Read workspace file objects, search indexed text across the workspace or selected folder scopes, extract the text content of files, fetch and parse files from URLs with optional headers, write new workspace files, append content to existing files, compress files into a .zip archive, extract a .zip archive into the workspace, or manage the public share link for a file.
Actions
File Read
Read workspace file objects from selected files, canonical workspace file IDs, or one or more workspace folders.
File Get Content
Extract workspace file text using the same parser mode as File Search. Use the returned fileId and offset/limit to read the matching line and surrounding context. For documents and spreadsheets, line numbers refer to extracted text, not page numbers or worksheet row numbers.
File Search
Search the indexed text of active workspace files for lines matching a query, and return each matching line once with its file ID and line number. By default the query is a regular expression; in exact mode it is matched verbatim and metacharacters are literal. Coverage is what the index currently holds. A term that is not found is only authoritative when "complete" is true AND "indexStatus" reports no skipped files; otherwise it is unknown rather than absent, so re-check before creating something on the assumption it is missing. Narrow the search with folderPaths to confine it to one or more folder trees, which also narrows "indexStatus" to those trees.
File Fetch
Fetch and parse a file from a URL with optional custom headers.
File Write
Create a new workspace file, either from text content or from an existing file. If a file with the same name already exists, a numeric suffix is added (e.g., "data (1).csv") unless overwrite is enabled.
File Append
Append content to an existing workspace file. The file must already exist. Content is added to the end of the file.
Apply File Edit
Apply one precise edit to an existing text file without rewriting it. Use search_replace for verbatim replacement, optionally with replaceAll. Use replace_between, insert_after, or delete_between for complete trimmed-line anchors that stay stable when line numbers move. Folder scope can disambiguate a name or constrain a file ID.
File Compress
Compress one or more workspace files into a single .zip archive stored in the workspace, for bundling files to download, transfer, or store. Preserves the workspace folder structure of the selected files.
File Decompress
Extract the contents of a .zip archive into the workspace, preserving the archive folder structure.
Manage Sharing
Enable or disable the public share link for a workspace file, and set its access mode (public, password, email, or SSO). Idempotent: the public link stays stable across changes.
List Files and Folders
List what is inside a workspace folder: its subfolders and its files together. Lists direct children by default; set Recursive to walk the whole subtree.
Create File Folder
Create a workspace file folder at a path. Parent folders are created as needed. Fails if a folder already exists at the path.
Move File Folder
Move or rename a workspace file folder by giving its full destination path. Everything inside the folder moves with it.
Delete File Folder
Delete a workspace file folder. It moves to Recently deleted and can be brought back with Restore File Folder. Deleting a folder that still has contents requires the recursive option.
Restore File Folder
Restore a deleted workspace file folder and its contents from Recently deleted. Addressed by folder ID, because a deleted folder has no live path.
Move File
Move an existing workspace file into a folder. Moves the file itself; use Move File Folder to relocate a whole folder.
Search coverage and limits
Search indexes the complete extracted text of each eligible file. The source file and its extracted UTF-8 text must each be at most 25 MiB (26,214,400 bytes). Oversized files, unsupported binary formats, and documents that cannot be completely extracted within parser safety limits are excluded as whole files and counted in skippedFiles. Search never indexes only the first rows, lines, or characters. CSV search preserves decoded source text; spreadsheet search includes populated cells beyond the preview limits. Image-only documents require searchable text; search does not perform OCR.
Existing parser safeguards also apply to complete extraction. PDFs allow at most 10,000 pages, 20 MiB of extracted text, 250,000 characters on one page, and 60 seconds of extraction. Office archives allow at most 150 MiB expanded in total, 64 MiB for one archive entry, and 10,000 entries; malformed archives and excessive compression ratios are rejected. Hitting any of these limits excludes the whole file from search.
Updates are indexed asynchronously. pendingFiles and failedFiles indicate revisions that are not yet searchable; a new revision becomes searchable only when its full index is ready. An empty result proves absence only within the searched scope when complete is true and skippedFiles is zero.
Regex is evaluated against complete logical lines, including long lines, and cannot span line breaks. Returned lines may use a shortened preview. The result limit (up to 200 lines) and a 10-second query deadline limit an individual request, not the amount of text indexed. An expensive query fails explicitly instead of returning an apparently complete subset; narrow its literal text or folder scope and retry.
Search returns one result per matching logical line with fileId, 1-based lineNumber, and text (a bounded preview for long lines). An Agent can use Search to locate content, then Get Content with the returned fileId, offset near lineNumber, and a small limit to read surrounding context. These operations use the same complete-text parser mode. Line numbers for documents and spreadsheets refer to extracted text, not page numbers or worksheet row numbers. Re-run search if the file changes between calls.