fast_sync_directories
Synchronize two directories by mirroring, updating, or merging. Control file deletion, preserve newer files, preview changes with dry run, and exclude patterns like .git or node_modules.
Instructions
Synchronizes two directories
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": {
"source_dir": "<source_dir>",
"target_dir": "<target_dir>"
},
"name": "fast_sync_directories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_dir | Yes | Source directory | |
| target_dir | Yes | Target directory | |
| sync_mode | No | Synchronization mode | update |
| delete_extra | No | Delete files that only exist in the target | |
| preserve_newer | No | Preserve newer files | |
| dry_run | No | Preview without actual execution | |
| exclude_patterns | No | Patterns to exclude |