Get a cluster kubeconfig
get_cluster_kubeconfigGet the kubeconfig of a ready cluster whose stack is kubernetes. Its server is https://127.0.0.1:6443, so kubectl on the user's computer needs the returned tunnel command (an SSH port forward to the head) running first. Returns { kubeconfig, tunnel }: save kubeconfig to a file and set KUBECONFIG to it. It grants admin on the cluster, so treat it as a secret. kubectl also runs without a tunnel through ssh_execute on the head node.
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": {
"id": "<id>"
},
"name": "get_cluster_kubeconfig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Cluster ID | |
| workspace | No | Workspace ID (optional: defaults to the authenticated workspace) | |
| environment | No | Environment name (optional: defaults to the environment this session acts in) |