docker_cp_from
Copy a file or directory from a Docker container to your local machine. Specify container, remote path, and local destination; enable recursive mode for directories.
Instructions
Copy a file or directory from a Docker container to the local machine (analogous to docker cp container:path local).
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>",
"remote_path": "<remote_path>",
"local_path": "<local_path>"
},
"name": "docker_cp_from"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container | Yes | Docker container name or id. | |
| recursive | No | Required when remote_path is a directory. | |
| local_path | Yes | Absolute or relative path on the local machine. | |
| timeout_ms | No | ||
| remote_path | Yes | Absolute or relative path inside the container. |