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

Function textOf

packages/hosts/mcp/src/artifacts-tools.test.ts:180–181  ·  view source on GitHub ↗
(result: Awaited<ReturnType<Client["callTool"]>>)

Source from the content-addressed store, hash-verified

178 (result.structuredContent ?? {}) as Record<string, unknown>;
179
180const textOf = (result: Awaited<ReturnType<Client["callTool"]>>): string =>
181 (result.content as Array<{ type: string; text: string }>)[0].text;
182
183const toolNames = async (client: Client): Promise<string[]> =>
184 (await client.listTools()).tools.map((tool) => tool.name);

Callers 2

runBoundActionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected