copy
Copies a file or directory to a new location. Set recursive true for directories; destination must not already exist.
Instructions
Copies a file or directory to a new location.
IMPORTANT: This operation fails if the destination path already exists.
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_path": "<src_path>",
"dst_path": "<dst_path>"
},
"name": "copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst_path | Yes | The destination path. IMPORTANT: This must include the target file or directory name, not just the destination folder. | |
| src_path | Yes | The source path to the file or directory to copy. | |
| recursive | No | Whether to recursively copy a directory and its contents. IMPORTANT: This MUST be set to `true` when copying a directory, otherwise the operation will fail. Defaults to `false` if not specified. |