Copy to pod
k8s_copy_to_podCopy a local file or directory into a specified Kubernetes pod and namespace via kubectl cp to move files into running containers.
Instructions
Copy a local file/dir into a pod 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_to_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 |