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

Function searchToolRowsForConnection

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

Source from the content-addressed store, hash-verified

6322 );
6323
6324 const searchToolRowsForConnection = (
6325 parsed: ParsedToolAddress,
6326 ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> =>
6327 core.findMany("tool", {
6328 where: (b: AnyCb) =>
6329 b.and(
6330 toolRowsForConnectionWhere(parsed)(b),
6331 b.or(
6332 b("name", "contains", String(parsed.tool)),
6333 b("description", "contains", String(parsed.tool)),
6334 ),
6335 ),
6336 orderBy: ["name", "asc"],
6337 limit: TOOL_SUGGESTION_LIMIT,
6338 select: TOOL_INVOCATION_COLUMNS,
6339 });
6340
6341 const findToolRowsForConnection = (
6342 parsed: ParsedToolAddress,

Callers 1

executeFunction · 0.85

Calls 1

Tested by

no test coverage detected