Skip to content

FinalPlace & AI Integration Guide

FinalPlace & AI Integration Guide

FinalPlace provides a CLI (Command-Line Interface) that lets AI agents manage file organization rules directly through terminal commands.


AI Agent → finalplace.exe CLI → IPC (Socket) → FinalPlace GUI → Execute Operation

The CLI doesn’t work independently. It communicates with a running FinalPlace GUI instance via local socket. AI sends commands, FinalPlace executes — all data stays local.


  1. FinalPlace is installed and logged in
  2. FinalPlace GUI is running (agents can use launch to start it automatically)

FinalPlace does not register itself in the system PATH after installation. AI agents must use the full path:

"C:\Program Files\FinalPlace\FinalPlace.exe"
Terminal window
# Check if CLI is available
"C:\Program Files\FinalPlace\FinalPlace.exe" --help
# Start GUI (if not running)
"C:\Program Files\FinalPlace\FinalPlace.exe" launch

Terminal window
finalplace.exe launch

If the GUI is not running, it will start automatically and wait until ready (up to 30 seconds).

Terminal window
finalplace.exe auto-rules list
finalplace.exe auto-rules list --enabled # enabled rules only
Terminal window
finalplace.exe auto-rules create ^
--name "Organize Images" ^
--source "C:/Downloads" ^
--condition "ext:jpg,png,gif" ^
--action "move:C:/Pictures/{Year}/{Month}" ^
--enable
Terminal window
finalplace.exe auto-rules preview --uuid <UUID> --path "C:/Downloads/photo.jpg"
Terminal window
finalplace.exe auto-rules execute --uuid <UUID> --path "C:/Downloads/photo.jpg" --confirm

CategoryCommandDescription
Rulesauto-rules listView existing organization rules
auto-rules createHave AI create rules for you
auto-rules update / deleteModify or delete rules
auto-rules toggleEnable or disable a rule
Watchdogwatchdog listView system protection rules
watchdog createHave AI create protection rules
Templatescondition-templates listView condition templates
action-templates listView action templates
Logslogs listView historical organization records
logs rollbackRoll back a task’s operations

Concretely:

  • AI says “I’ll organize these files” → FinalPlace pauses and waits for your “Confirm”
  • You see what AI plans to do → confirm if OK, cancel if not
  • delete and execute operations require --confirm flag to prevent accidents

When calling auto-rules execute, you can set safety limits:

RestrictionDescription
allow_overwriteAllow overwriting same-named files
allow_cross_volumeAllow moving across drives
allow_destructiveAllow delete operations
allow_permanent_deleteAllow permanent deletion (no Recycle Bin)

Recommendation: When first using AI, disable all of these — only allow “move to specified directory.”



All commands output JSON:

// Success
{"ok": true, "data": {...}}
// Error
{"ok": false, "error": {"code": "ERROR_CODE", "message": "Description"}}

Exit codes: 0 = success, 1 = failure.