kernl API
    Preparing search index...

    Function discoverToolFamilies

    • Find tool families from what the person typed: a reference to a server's or a tool list's announcement, a tool's schema hash, or a website that publishes its provider. Only signed announcements are read; every tool's hash is computed again from its schema, and an announcement whose stated hash differs is refused. The newest inventory of each provider is the one read, never an older one in its place (D-043).

      Parameters

      • input: string

        What the person typed.

      • options: ToolDiscoveryOptions

        Pool, default relays, and the website fetcher.

      Returns Promise<ToolFamilyCandidate[]>

      One candidate per provider, for the person to name and save.

      invalid:tool-reference, unavailable:website, invalid:tool-inventory, or unavailable:no-tools.

      const [candidate] = await discoverToolFamilies('nevent1…', { pool, relays: tiers.get().super });
      settings.saveFamily({ ...candidate.family, family: 'rooms' });