TamerScript Documentation
Everything you need to master AST-based rules, visual builder conditions, and Claude Desktop MCP automation.
1. Quick Start
FolderTamer evaluates rules using an Abstract Syntax Tree (AST) parser. You can build rules visually using dropdowns or type TamerScript directly into the Advanced tab.
2. Supported Fields
| Field | Type | Description | Example |
|---|---|---|---|
| file.name | String | Full file name with extension | file.name contains "invoice" |
| file.basename | String | File name without extension | file.basename == "report_2026" |
| file.extension | String | File extension with leading dot | file.extension in [".png", ".jpg"] |
| file.size | Size | File size on disk | file.size > 500MB |
| file.age | Time | Time elapsed since modification | file.age > 14d |
| file.content | Text | Text inside .txt, .json, .csv, .pdf | file.content contains "TAX" |
| file.parent | String | Immediate parent directory name | file.parent == "Downloads" |
3. Operators & Dynamic Units
TamerScript supports rich operators and human-friendly measurement units:
Supported: Bytes, KB, MB, GB, TB.
Supported: m (minutes), h (hours), d (days), w (weeks), mo (months).
in)Check if a string or extension exists in a list:
Combine multiple conditions with compound operators:
4. 10 Desktop Actions & Pipeline Tokens
Attach one or multiple chained actions to any rule:
{OriginalName}_{YYYY-MM-DD}.5. Claude Desktop MCP Server Setup
FolderTamer features an embedded, loopback Model Context Protocol (MCP) server. When FolderTamer is running, Claude Desktop can organize your PC using natural language.
Add this to your claude_desktop_config.json: