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

Function structuredOf

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

Source from the content-addressed store, hash-verified

175const NO_APPS_CAPS: ClientCapabilities = {};
176
177const structuredOf = (result: Awaited<ReturnType<Client["callTool"]>>): Record<string, unknown> =>
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;

Callers 2

runBoundActionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected