copy_directory
Copy a directory tree from source to destination, with options to overwrite existing files or preview the operation without executing.
Instructions
Copy a directory tree. Existing destinations fail unless overwrite is true.
Args: source: Existing source directory path destination: Destination directory path overwrite: Allow merging into an existing destination dry_run: Return the planned action without copying
Returns: JSON string with operation details or an error message
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_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| dry_run | No | ||
| overwrite | No | ||
| destination | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |