copy_path
Copy files or directories to a specified location using absolute or relative paths. Automatically performs recursive copy for directories unless specified otherwise.
Instructions
Copies a file or directory to a new location. Accepts relative or absolute paths. Defaults to recursive copy for directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
destination_path | Yes | The path where the copy should be created. Can be relative or absolute. | |
recursive | No | If copying a directory, whether to copy its contents recursively. Defaults to true. | |
source_path | Yes | The path of the file or directory to copy. Can be relative or absolute. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"destination_path": {
"description": "The path where the copy should be created. Can be relative or absolute.",
"minLength": 1,
"type": "string"
},
"recursive": {
"default": true,
"description": "If copying a directory, whether to copy its contents recursively. Defaults to true.",
"type": "boolean"
},
"source_path": {
"description": "The path of the file or directory to copy. Can be relative or absolute.",
"minLength": 1,
"type": "string"
}
},
"required": [
"source_path",
"destination_path"
],
"type": "object"
}