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

Function textOf

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

Source from the content-addressed store, hash-verified

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;
184
185/** Assert source is available through both MCP result channels. */
186const expectArtifactSource = (result: Awaited<ReturnType<Client["callTool"]>>, code: string) => {

Callers 3

expectArtifactSourceFunction · 0.70
runBoundActionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected