sync_file
Copy a file from source to target within the same Direct session repo, with optional SHA256 verification to ensure file integrity.
Instructions
Copy a file from source to target within the same Direct session repo. This legacy operation is outside the first Direct review MVP and is disabled when directReview.mode=enforce. Both paths must be inside the session repo_path.
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": {
"session_id": "<session_id>",
"source_path": "<source_path>",
"target_path": "<target_path>"
},
"name": "sync_file"
}
}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 |