Cp pod
k8s_cp_podCopy files to or from a Kubernetes pod by specifying source and destination paths; direction is inferred automatically for local-to-pod or pod-to-local transfers.
Instructions
Copy files to/from a pod, delegating to :meth:copy_to_pod /
:meth:copy_from_pod.
Direction is inferred from the paths (an absolute pod source or a
non-absolute local destination means pod-to-local). The real
kubectl cp transfer — and its path-traversal safety — lives in the
two delegate methods; this wrapper carries no tar logic of its own.
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>"
},
"name": "k8s_cp_pod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| 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 | No | ||
| destination | No |