copy_file
Copy a file within the workspace to a new path while preserving its metadata. Parent directories at the destination are created automatically.
Instructions
Copy a file within the workspace, preserving metadata.
Args: source: Existing file path, relative to the workspace root. destination: Destination path; parent directories are created automatically.
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| destination | Yes |