Copy a file or directory
copy_pathCopies a file or directory to a new path, including recursive directory contents. Set overwrite to true when replacing an existing destination.
Instructions
Copy a file or directory to another path. Directories are copied recursively; existing destinations require overwrite=true.
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": "<source>",
"destination": "<destination>"
},
"name": "copy_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source path. | |
| overwrite | No | Replace an existing destination. Default false. | |
| destination | Yes | Destination path. |