# File Attachments

You can attach files to your messages by dragging them from Finder (or your file manager) into the LogiCoal terminal window.

## How It Works

Drag a file onto the terminal. LogiCoal detects the dropped path automatically when the input looks like:

- A quoted path (`"/path/to/file.ts"`)
- A path with escaped spaces (`/path/to/my\ file.ts`)
- An absolute path that exists on disk

## Supported File Types

### Text Files

Code and text files have their contents read and included as context for the AI:

`.ts`, `.tsx`, `.js`, `.jsx`, `.py`, `.php`, `.go`, `.rs`, `.java`, `.md`, `.json`, `.css`, `.html`, `.yaml`, `.yml`, `.sql`, `.vue`, `.svelte`, `.rb`, `.sh`, `.toml`, `.xml`, `.env`, and more.

Content is limited to 100KB per file.

### Image Files

Images are converted to base64 and sent for visual analysis:

`.png`, `.jpg`, `.jpeg`, `.gif`, `.bmp`, `.webp`, `.ico`, `.tiff`, `.heic`, `.heif`, `.avif`

You can ask the AI to describe, analyze, or edit images. A single image can be analyzed or used as a reference for edits. Multiple images are all included for comparison or batch analysis.

### Binary Files

Binary files are referenced by path and type, but their contents are not sent to the AI.

## Auto-Open (macOS)

When the AI generates or saves image files during a session, LogiCoal automatically opens them in Finder so you can see the result immediately.
