kubectl_generic
Execute any kubectl command with custom arguments, flags, namespace, and context to manage Kubernetes resources and troubleshoot workloads.
Instructions
Execute any kubectl command with the provided arguments and flags
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": {
"command": "<command>"
},
"name": "kubectl_generic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Additional command arguments | |
| name | No | Resource name | |
| flags | No | Command flags as key-value pairs | |
| command | Yes | The kubectl command to execute (e.g. patch, rollout, top) | |
| context | No | Kubeconfig Context to use for the command (optional - defaults to null) | |
| namespace | No | Kubernetes namespace | default |
| subCommand | No | Subcommand if applicable (e.g. 'history' for rollout) | |
| outputFormat | No | Output format (e.g. json, yaml, wide) | |
| resourceType | No | Resource type (e.g. pod, deployment) |