(result: Awaited<ReturnType<Client["callTool"]>>)
| 81 | |
| 82 | /** Extract the first text content from a callTool result. */ |
| 83 | const textOf = (result: Awaited<ReturnType<Client["callTool"]>>): string => |
| 84 | (result.content as Array<{ type: string; text: string }>)[0].text; |
| 85 | |
| 86 | const STUB_TOOL_ADDRESS = ToolAddress.make("tools.test.org.main.t"); |
| 87 | const TEST_IMAGE_MIME_TYPE = "image/png"; |