add_node_label
Add or update a label on a Kubernetes node by providing context, node name, label key, and value.
Instructions
Add or update a label to a node.
Args: context_name: The Kubernetes context name node_name: The name of the node to modify label_key: The label key to add label_value: The label value to set
Returns: JSON string containing the updated node labels
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": {
"context_name": "<context_name>",
"node_name": "<node_name>",
"label_key": "<label_key>",
"label_value": "<label_value>"
},
"name": "add_node_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label_key | Yes | ||
| node_name | Yes | ||
| label_value | Yes | ||
| context_name | Yes |