A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
import { isRecord } from "@homarr/common";
const asRecord = (value: unknown): Record<string, unknown> | null => (isRecord(value) ? value : null);
export const getAssistantIconSearchQuery = (toolName: string, args: unknown) => {
if (toolName !== "icon_findIcons") return null;
const searchText = asRecord(args)?.searchText;
return typeof searchText === "string" && searchText.trim().length > 0 ? searchText.trim() : "";
};