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

Function searchToolRowsForConnection

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

Source from the content-addressed store, hash-verified

4150 );
4151
4152 const searchToolRowsForConnection = (
4153 parsed: ParsedToolAddress,
4154 ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> =>
4155 core.findMany("tool", {
4156 where: (b: AnyCb) =>
4157 b.and(
4158 toolRowsForConnectionWhere(parsed)(b),
4159 b.or(
4160 b("name", "contains", String(parsed.tool)),
4161 b("description", "contains", String(parsed.tool)),
4162 ),
4163 ),
4164 orderBy: ["name", "asc"],
4165 limit: TOOL_SUGGESTION_LIMIT,
4166 select: TOOL_INVOCATION_COLUMNS,
4167 });
4168
4169 const findToolRowsForConnection = (
4170 parsed: ParsedToolAddress,

Callers 1

executeFunction · 0.85

Calls 1

Tested by

no test coverage detected