Patch resource
k8s_patch_resourcePatch Kubernetes resources by type and name using strategic, merge, or JSON patches, with namespace/context support and dynamic fallback for unknown kinds.
Instructions
Generic patch for any common Kubernetes resource kind.
Dispatches on resource_type to the correct centralized client and
patch_namespaced_<x> / patch_<x> method; unknown kinds fall back
to the dynamic client resolved by kind.
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": {
"resource_type": "<resource_type>",
"name": "<name>"
},
"name": "k8s_patch_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| namespace | No | ||
| patch_body | No | ||
| patch_type | No | strategic | |
| resource_type | Yes |