Label resource
k8s_label_resourceAdd or update labels on a Kubernetes resource by specifying its type, name, and optional namespace or context using a patch-based approach.
Instructions
Label a Kubernetes resource (table-driven via patch_resource).
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_label_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| labels | No | ||
| 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 | ||
| resource_type | Yes |