docker_copy
Copies files between a Docker container and the host in either direction, requiring confirmation and restricting host paths to allowed folders.
Instructions
Copy files between a container and the Docker host (docker cp). Needs confirm=true.
direction: to_container (host_path -> container_path) or from_container (container_path -> host_path). host_path must be in an allowed folder. Existing files at the destination are overwritten. keep_owner uses docker cp -a.
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": {
"container": "<container>",
"container_path": "<container_path>",
"host_path": "<host_path>",
"direction": "<direction>"
},
"name": "docker_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| confirm | No | ||
| container | Yes | ||
| direction | Yes | ||
| host_path | Yes | ||
| keep_owner | No | ||
| container_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |