copy_file
Copies a file from a source path to a specified destination. In safe mode, restricts destinations to /tmp or /var/tmp.
Instructions
Copy a file to a new location. In safe mode, destination must be in /tmp or /var/tmp.
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 |
|---|---|---|---|
| server | No | Server alias (e.g., 'pi1', 'web-server'). Uses default server if not specified. | |
| source | Yes | Absolute path to the source file | |
| destination | Yes | Absolute path to the destination |