get_k8s_log_summary
Fetches and deduplicates container logs using pattern fingerprinting to reduce token usage. Prefer this over get_k8s_logs when triaging crashes or noisy logs.
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>",
"pod": "<pod>"
},
"name": "get_k8s_log_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod | Yes | Required. The name of the pod. | |
| tail | No | Optional. Optional number of tail lines to fetch before deduplication (default 500). | |
| parent | Yes | Required. The cluster that owns the pod. Format: projects/{project}/locations/{location}/clusters/{cluster} | |
| container | No | Optional. Optional container name. If omitted, uses the first container in the pod. | |
| namespace | No | Optional. Optional namespace of the pod. Defaults to "default" if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Errors encountered during log retrieval and summarization. | |
| result | No | JSON string representing the deduplicated log summary. |