Sign in

Help centreWorking with agents

Adding files to a task

Which files you can give an agent, the limits the workspace enforces, and what its messages mean.

Checked against the product · 14 November 2026

You can give an agent text files to work from: code, logs, notes, CSV, JSON or Markdown. The text of each file is sent with your message.

Add files in an agent’s screen

  • Choose + and then Add files, drag files onto the screen, or paste them.
  • Each file appears as a chip that shows its length in characters. Choose × on a chip to remove it.
  • If you send files without writing a message, the agent is asked to review the attached files.

Limits

  • Up to 5 files per task.
  • Text and code files only. Images, PDFs and other binary files are not supported here yet.
  • Attached files can total 18,000 characters.
  • The message and its files together must stay under 24,000 characters.

If a file is not added

A task can carry up to 5 files.
Remove a file before you add another.
Text and code files work here; images, PDFs and other binary files are not supported yet.
Shown after the file name. Copy the part you need into a text file or into the message.
was not added because it is not a text file.
Shown after the file name. The file holds binary content; save the part you need as plain text.
Attached files can total …
Shown with the 18,000-character limit and the file’s length. Attach a shorter excerpt.
This task is too long. Keep the message and attached files under 24,000 characters.
Shorten the message or remove a file.

In a regular chat

In a regular chat, + opens the message tools, where Attach a file adds one text file at a time. The file is read on your device and its text is placed in your message, so you can review it before sending. A file can be up to 16 MB, and its text has to fit in the message, which holds up to 24,000 characters.

Still stuck?

Check the status page for a known problem, or send a message to support.