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

Function structuredOf

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

Source from the content-addressed store, hash-verified

177const NO_APPS_CAPS: ClientCapabilities = {};
178
179const structuredOf = (result: Awaited<ReturnType<Client["callTool"]>>): Record<string, unknown> =>
180 (result.structuredContent ?? {}) as Record<string, unknown>;
181
182const textOf = (result: Awaited<ReturnType<Client["callTool"]>>): string =>
183 (result.content as Array<{ type: string; text: string }>)[0].text;

Callers 3

expectArtifactSourceFunction · 0.70
runBoundActionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected