clyops Node API
    Preparing search index...

    Function loadTools

    • The clyops tools under root with their schemas, a program's commands expanded into tools of their own. Tools whose schema can't be read are skipped, as are tools filter or the root's allow/deny settings leave out (both must let a tool through).

      Parameters

      • root: string
      • opts: {
            filter?: ToolFilter;
            name?: string;
            onError?: (cmd: Command, err: Error) => void;
        } = {}

      Returns Promise<{ tools: Tool[]; tree: Group }>