kernl API
    Preparing search index...

    Function validFamily

    • Whether a tool family is one the shell can keep: a label, a provider key and relays, and 1 to 64 uniquely named tools each pinned to a schema hash.

      Parameters

      • family: CvmRegistryFamily

        A candidate family.

      Returns boolean

      True when it can be saved.

      validFamily({ family: 'rooms', server: { pubkey, relays: ['wss://tools.example'] }, tools: [{ name: 'join', schemaHash }] }); // true