Skip to content

Attach images to a workflow run

A workflow whose prompt or input template contains {{input}} opens a Run dialog on the Workflows page instead of starting at once. Type the input, add photos or drawings (drop them, or press Choose images; on a phone this opens the camera or photo picker), then press Run. Workflows without {{input}} start immediately.

The session’s first prompt ends with Reference images (read each with your Read tool before you start): followed by one file path per line. Without attachments the prompt is unchanged.

  • Up to 10 images per run, 10 MB each, in PNG, JPEG, GIF or WebP format. The file contents are checked, and SVG is not accepted.
  • Running a workflow from the omnibar with @slug, or on a schedule, attaches no images.
  • Uploaded files are not deleted when a run ends.

Each image uploads as soon as you pick it, to POST /api/v1/upload-workflow-attachment, and is saved under workflow-attachments/ in the configuration directory (~/.stapler-squad/ by default). The RunWorkflow call takes the saved paths in attachment_paths and rejects any path that does not resolve to an image inside that directory.