flow_upload_file
Attach a file from disk to a flow for images, PDFs, or large files up to 50 MB. Supports multipart upload with automatic mime-type detection.
Instructions
Attach a file from disk to the current flow. Use this for images / PDFs / large files (up to 50 MB).
For agent-written text content (markdown plans, summaries, notes), prefer flow_upload which takes the content as a string.
The file is read from filePath, the mime-type is detected from the extension, and the upload is sent as multipart/form-data with auth.
Common use cases:
Attach a screenshot, photo, or generated cover image to a flow
Attach a PDF report or design doc the user has on disk
Attach large CSV / YAML / JSON exports that exceed the 100 KB string-content boundary
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | No | The flow ID to attach the file to. If omitted, uses the current flow. | |
| filePath | Yes | Absolute path to the file on disk (e.g. "/tmp/cover.png"). | |
| kind | No | Optional classification. kind="plan" also links the file as the flow's implementation plan. |