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

Function searchToolRowsForConnection

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

Source from the content-addressed store, hash-verified

6202 );
6203
6204 const searchToolRowsForConnection = (
6205 parsed: ParsedToolAddress,
6206 ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> =>
6207 core.findMany("tool", {
6208 where: (b: AnyCb) =>
6209 b.and(
6210 toolRowsForConnectionWhere(parsed)(b),
6211 b.or(
6212 b("name", "contains", String(parsed.tool)),
6213 b("description", "contains", String(parsed.tool)),
6214 ),
6215 ),
6216 orderBy: ["name", "asc"],
6217 limit: TOOL_SUGGESTION_LIMIT,
6218 select: TOOL_INVOCATION_COLUMNS,
6219 });
6220
6221 const findToolRowsForConnection = (
6222 parsed: ParsedToolAddress,

Callers 1

executeFunction · 0.85

Calls 1

Tested by

no test coverage detected