winops_container_cp
Copy files between a Windows host and a Docker container by specifying source and destination paths with host: or container: prefixes. Direction is set by the source prefix, enabling outbound file retrieval or inbound file placement.
Instructions
Copy files between the host and a Docker container.
Direction is determined by the source prefix:
source="container:/tmp/data.json", destination="host:./out/"copies FROM container TO hostsource="host:./script.py", destination="container:/tmp/"copies FROM host TO container
Return Format
{"success": bool, "source": str, "destination": str}Examples
cp(container="app", source="host:./script.py", destination="container:/tmp/")
cp(container="db", source="container:/tmp/result.csv", destination="host:./output/")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>",
"source": "<source>",
"destination": "<destination>"
},
"name": "winops_container_cp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source path. Format: 'host:/path/file' or 'container:/path/file' (prefix determines direction). | |
| container | Yes | Container name or ID. | |
| destination | Yes | Destination path. Format: 'host:/path/' or 'container:/path/'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||