copy_file
Copies a file to a specified destination, preserving the filename if the destination is a directory. Optionally overwrites existing files.
Instructions
Copy a file to a new location. If dst is a directory, the file is copied into it preserving its name. Requires allow_file_write in ~/.syscontrol/config.json.
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": {
"src": "<src>",
"dst": "<dst>"
},
"name": "copy_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | Yes | Destination file path or directory. | |
| src | Yes | Source file path. | |
| overwrite | No | Replace destination if it exists (default false). |