UNPKG

openclaw-grafana-lens

Version:

OpenClaw plugin that gives AI agents full Grafana access — 18 composable tools for PromQL/LogQL/TraceQL queries, dashboard creation, alerting, SRE investigation, security monitoring, data collection pipeline management via Grafana Alloy (29 recipes), and

58 lines (57 loc) 1.66 kB
/** * grafana_search tool * * Search existing dashboards in Grafana by title or tag. The agent uses * this to check for existing dashboards before creating duplicates, or * to find a dashboard the user mentions by name. * * Optional enrichment (enrich: true) fetches dashboard details in parallel * to add updatedAt and panelCount — useful for reporting workflows. */ import { GrafanaClientRegistry } from "../grafana-client-registry.js"; export declare function createSearchToolFactory(registry: GrafanaClientRegistry): (_ctx: unknown) => { name: string; label: string; description: string; parameters: { type: "object"; properties: { query: { type: string; description: string; }; tags: { type: string; items: { type: string; }; description: string; }; starred: { type: string; description: string; }; sort: { type: string; enum: string[]; description: string; }; limit: { type: string; description: string; }; enrich: { type: string; description: string; }; }; required: string[]; }; execute(_toolCallId: string, params: Record<string, unknown>): Promise<{ content: Array<{ type: "text"; text: string; }>; details: unknown; }>; };