feat(tools): add kubernetes homelab awareness tools
This commit is contained in:
+49
-1
@@ -28,6 +28,7 @@ Tools are executable capabilities that the AI agent can call to perform actions
|
||||
- **Browser**: `browser.navigate`, `browser.screenshot`
|
||||
- **Memory**: `memory.read`, `memory.write`, `memory.search`
|
||||
- **MinIO**: `minio.share`, `minio.ingest`, `minio.sync`
|
||||
- **Kubernetes**: `k8s.pods`, `k8s.deployments`, `k8s.logs`
|
||||
- **Media**: `media.send`, `image.analyze`, `audio.transcribe`
|
||||
- **System**: `system.info`
|
||||
- **Session**: `sessions.list`, `sessions.delete`
|
||||
@@ -467,7 +468,7 @@ Tools are organized into groups:
|
||||
- `group:web`: Web and browser tools
|
||||
- `group:memory`: Memory and search tools
|
||||
|
||||
There are additional groups for specific integrations (gmail/gcal/gdocs/gdrive/gtasks/cron/minio). See `TOOL_GROUPS` in `src/tools/policy.ts`.
|
||||
There are additional groups for specific integrations (gmail/gcal/gdocs/gdrive/gtasks/cron/minio/k8s). See `TOOL_GROUPS` in `src/tools/policy.ts`.
|
||||
|
||||
### Policy Resolution
|
||||
|
||||
@@ -1053,6 +1054,53 @@ Sync text-like objects from a MinIO prefix into nested memory namespaces.
|
||||
}
|
||||
```
|
||||
|
||||
### Kubernetes Tools
|
||||
|
||||
#### `k8s.pods`
|
||||
|
||||
List Kubernetes pods with status summary.
|
||||
|
||||
#### `k8s.deployments`
|
||||
|
||||
List Kubernetes deployments with replica readiness summary.
|
||||
|
||||
#### `k8s.logs`
|
||||
|
||||
Fetch recent logs for a pod.
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "k8s.logs",
|
||||
"description": "Fetch recent logs for a Kubernetes pod.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pod": {
|
||||
"type": "string",
|
||||
"description": "Pod name"
|
||||
},
|
||||
"namespace": {
|
||||
"type": "string",
|
||||
"description": "Namespace"
|
||||
},
|
||||
"container": {
|
||||
"type": "string",
|
||||
"description": "Container name (optional)"
|
||||
},
|
||||
"lines": {
|
||||
"type": "number",
|
||||
"description": "Tail line count"
|
||||
},
|
||||
"since": {
|
||||
"type": "string",
|
||||
"description": "Lookback duration (e.g. 10m, 1h)"
|
||||
}
|
||||
},
|
||||
"required": ["pod"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Media Tools
|
||||
|
||||
#### `media.send`
|
||||
|
||||
Reference in New Issue
Block a user