clip_wash
Filters and organizes raw video clips into clean buckets by orientation, resolution, duration, size, and audio; optional AI visual sorting adds subject and quality checks.
Instructions
Concurrently inspect, filter, and organize a folder of raw video clips into clean buckets. Default mode requires zero API keys and filters by orientation, resolution, duration, size, and audio. Optional AI visual mode (when ai_target_desc and GEMINI_API_KEY are provided) packs 2-frame thumbnails into 4x4 sheets and classifies clips by target subject, text-overlay cleanliness, role, and quality score.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"src_dir": "<src_dir>",
"out_dir": "<out_dir>"
},
"name": "clip_wash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proxy | No | Optional HTTP/HTTPS proxy URL for AI visual API requests. | |
| action | No | Whether to copy, move, or only audit (dry_run) files. | copy |
| out_dir | Yes | Output directory for organized buckets and _wash_reports/ (JSON, CSV, contact sheets). | |
| src_dir | Yes | Directory containing raw video clips (scanned recursively). | |
| ai_roles | No | Optional custom bucket role names for AI visual sorting (e.g. ['closeup', 'demo', 'unboxing']). | |
| min_width | No | Minimum video width in pixels (default: 480). | |
| min_height | No | Minimum video height in pixels (default: 480). | |
| min_size_kb | No | Minimum file size in KB (default: 50.0). | |
| orientation | No | Required video orientation (default: vertical). | vertical |
| gemini_model | No | Gemini model name for AI visual mode. | gemini-2.5-flash |
| max_duration | No | Maximum duration in seconds; 0 disables upper limit (default: 300). | |
| min_duration | No | Minimum duration in seconds (default: 2.0). | |
| require_audio | No | If true, reject clips that have no audio stream. | |
| ai_min_quality | No | Minimum AI visual quality score 1..5 to keep (default: 3). | |
| ai_target_desc | No | Optional subject description to enable Gemini 4x4 visual classification (uses GEMINI_API_KEY env var). | |
| make_contact_sheet | No | Generate 4x4 preview contact sheets for passed/rejected clips (requires Pillow). |