list_pods
List all Kubernetes pods in a specified namespace and view their statuses, with optional cluster selection for local or cloud environments.
Instructions
列出指定 namespace 下的所有 pod 及其状态。
Args:
cluster: 目标集群,可选 "local"(本地 k3s)或 "cloud"(阿里云 k3s),默认 "local"
namespace: 指定的 namespace,默认 "default"
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_pods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster | No | local | |
| namespace | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |