Copy from pod
k8s_copy_from_podCopy files or directories from a Kubernetes pod to the local host with kubectl cp, enabling retrieval of pod artifacts without direct container access.
Instructions
Copy a file/dir out of a pod to the local host via kubectl cp.
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": {
"pod_name": "<pod_name>",
"namespace": "<namespace>",
"source": "<source>",
"destination": "<destination>"
},
"name": "k8s_copy_from_pod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| pod_name | Yes | ||
| namespace | Yes | ||
| destination | Yes |