kubectl_generic
Execute any kubectl command with custom arguments, flags, and options for Kubernetes resource management.
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 |
|---|---|---|---|
| command | Yes | The kubectl command to execute (e.g. patch, rollout, top) | |
| subCommand | No | Subcommand if applicable (e.g. 'history' for rollout) | |
| resourceType | No | Resource type (e.g. pod, deployment) | |
| name | No | Resource name | |
| namespace | No | Kubernetes namespace | default |
| outputFormat | No | Output format (e.g. json, yaml, wide) | |
| flags | No | Command flags as key-value pairs | |
| args | No | Additional command arguments | |
| context | No | Kubeconfig Context to use for the command (optional - defaults to null) |