MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / searchToolRowsForConnection

Function searchToolRowsForConnection

packages/core/sdk/src/executor.ts:5703–5718  ·  view source on GitHub ↗
(
      parsed: ParsedToolAddress,
    )

Source from the content-addressed store, hash-verified

5701 );
5702
5703 const searchToolRowsForConnection = (
5704 parsed: ParsedToolAddress,
5705 ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> =>
5706 core.findMany("tool", {
5707 where: (b: AnyCb) =>
5708 b.and(
5709 toolRowsForConnectionWhere(parsed)(b),
5710 b.or(
5711 b("name", "contains", String(parsed.tool)),
5712 b("description", "contains", String(parsed.tool)),
5713 ),
5714 ),
5715 orderBy: ["name", "asc"],
5716 limit: TOOL_SUGGESTION_LIMIT,
5717 select: TOOL_INVOCATION_COLUMNS,
5718 });
5719
5720 const findToolRowsForConnection = (
5721 parsed: ParsedToolAddress,

Callers 1

executeFunction · 0.85

Calls 1

Tested by

no test coverage detected