sync_file
Copy a file between paths in the same session repository, with optional hash verification to confirm source integrity and track target changes.
Instructions
Copy a file from source to target within the same Direct session repo. Both paths must be inside the session repo_path. Returns before/after sha256 hashes and whether the target changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Direct session ID | |
| source_path | Yes | Relative path to source file within repo | |
| target_path | Yes | Relative path to target file within repo | |
| expected_source_sha256 | No | Optional: expected sha256 of source file | |
| expected_target_sha256 | No | Optional: expected sha256 of target file before copy |