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

Function searchToolRowsForConnection

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

Source from the content-addressed store, hash-verified

3608 );
3609
3610 const searchToolRowsForConnection = (
3611 parsed: ParsedToolAddress,
3612 ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> =>
3613 core.findMany("tool", {
3614 where: (b: AnyCb) =>
3615 b.and(
3616 toolRowsForConnectionWhere(parsed)(b),
3617 b.or(
3618 b("name", "contains", String(parsed.tool)),
3619 b("description", "contains", String(parsed.tool)),
3620 ),
3621 ),
3622 orderBy: ["name", "asc"],
3623 limit: TOOL_SUGGESTION_LIMIT,
3624 select: TOOL_INVOCATION_COLUMNS,
3625 });
3626
3627 const findToolRowsForConnection = (
3628 parsed: ParsedToolAddress,

Callers 1

executeFunction · 0.85

Calls 1

Tested by

no test coverage detected