Skip to content

Task Attachments

Task Attachments works the files attached to a task of the Task Center: it lists them, reads their content, attaches new files and copies them into a folder of your Storage.

It needs no credential. It works as a normal node and as a tool of an agent. With it, a task’s attachment is part of what the agent knows before it acts.

When to use it

  • The task comes with a PDF, a Word document or a spreadsheet and the agent has to read it to do the task.
  • The agent produces a report and must leave it attached to the task.
  • A file that arrives by email or sits in your Storage must end up on the task.
  • Another component needs the task’s files in a folder.

Configuration

FieldWhat it does
Operation (required)What the component does. See Operations. List Attachments by default.
Task (required)The task’s key or link, for example SOP-12. {key} by default: the task that reaches the node in batch mode or, when none does, the one that started the run. See The task of the run.
AttachmentThe name of the attached file, for example invoice.pdf. Required in Read Attachment (an agent that leaves it out reads the only file of the task). In Copy Attachments to Folder, empty copies them all.
File to AttachThe files to attach, connected from another component: a Gmail attachment, a Storage file or a generated document. Only in Add Attachment.
Text or File URLText to save as a file, or the web address of a file. Only in Add Attachment.
Storage File PathThe path of a file in your Storage, for example reports/2026/sales.xlsx. Only in Add Attachment.
File NameThe name of the attached file, with its extension. Empty, it keeps the original name. Only in Add Attachment.
Folder PathThe folder of your Storage they are copied into, for example tasks/SOP-12. Required in Copy Attachments to Folder, the only operation that shows it (an agent that leaves it out copies into tasks and the task’s key).

Add Attachment takes one source. Use one of: File to Attach, Text or File URL, Storage File Path. With none, the node fails with Add Attachment needs: one of: File to Attach, Text or File URL, Storage File Path. Any missing required field is named in the same error.

Operations

OperationWhat it does
List AttachmentsReturns the task’s files, with name, size and type.
Read AttachmentReturns the text of a document, or a temporary download link when the file is not a document.
Add AttachmentAttaches a file to the task from one of three sources: a connected file, text or a web address, or a path in your Storage.
Copy Attachments to FolderCopies the task’s files into a folder of your Storage. Files already there with the same name are replaced.

Output

  • List Attachments returns, for each file, its name, size, type and date.
  • Read Attachment returns the content under text when the file is a document or a text file: PDF, Word, Excel, PowerPoint, CSV, TXT, Markdown, JSON, HTML and the like. Text longer than 200,000 characters is cut and the result says so with truncated. For the rest (images, audio, video, archives) it returns download_url, a download link valid for one hour.
  • Add Attachment returns the data of each file attached. The attachment is recorded in the task’s history under the flow’s name.
  • Copy Attachments to Folder returns the path of each file copied.

Limits

  • Each attached file can be 25 MB at most.
  • Read Attachment never returns the content of an image or a video, only its link.
  • Task attachments show on the Storage page, but they are read-only there: they are added and removed from the task or with this component.

Example

An agent that reviews the contract attached to the task and leaves a report:

  1. In a flow that starts with Task Trigger, add Task Attachments with Read Attachment and another with Add Attachment, both in tool mode and connected to the agent’s Tools.
  2. The brief tells the agent which attachments the task has. The agent reads the contract with Read Attachment, typing its name in Attachment.
  3. When done, the agent attaches its report with Add Attachment: it types the text in Text or File URL and the name, for example report.md, in File Name.

With a coding agent

Inside a flow that starts with Task Trigger, coding agents already get the task’s attachments in the .task/<KEY>/ folder of their workspace, with nothing to do. See Claude Agent.

Copy Attachments to Folder is for the other cases. To put the files in the folder of a coding agent that has a Workspace Name, type its area and that name in Folder Path: claude_data/<name>, codex_data/<name>, opencode_data/<name> or antigravity_data/<name>.

  • Task Trigger: starts the flow with a task.
  • Tasks: creates, reads, changes, moves, assigns and searches tasks.
  • Task Comments: writes and reads comments.