Copy File
copy_fileCopies one regular file to a new allowed location without loading content into the conversation, preserving permissions and modification time. It fails if the destination exists, preventing overwrite.
Instructions
Copy a file to a new location, without reading its content into the conversation. Copies one regular file, keeping its permissions and modification time; directories are not copied. If the destination exists, the operation will fail: it never overwrites. Both source and destination must be within allowed directories.
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 | The file to copy | |
| destination | Yes | Where to create the copy; nothing may exist there yet |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes |