list_k8s_events
Retrieves events from a Kubernetes cluster. This is similar to running kubectl events.
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": {
"parent": "<parent>"
},
"name": "list_k8s_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional. The name of the resource to retrieve events for. | |
| limit | No | Optional. The maximum number of events to return. If not specified, 500 is used. | |
| parent | Yes | Required. The parent cluster. Format: projects/{project}/locations/{location}/clusters/{cluster} | |
| namespace | No | Optional. The namespace of the resource. If not specified and all_namespaces is false, "default" is used. | |
| resourceType | No | Optional. The type of the resource to retrieve events for. | |
| allNamespaces | No | Optional. If true, retrieve events from all namespaces. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Errors encountered during events retrieval. | |
| events | No | The events in string format. |