Port forward pod
k8s_port_forward_podEstablish a WebSocket port forward to a Kubernetes pod, mapping local and remote ports to access pod services from your local machine.
Instructions
Port forward to a pod using WebSocket streaming.
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_port_forward_pod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | ||
| local_port | No | ||
| remote_port | No |