(result: Awaited<ReturnType<Client["callTool"]>>)
| 159 | |
| 160 | /** Extract the first text content from a callTool result. */ |
| 161 | const textOf = (result: Awaited<ReturnType<Client["callTool"]>>): string => |
| 162 | (result.content as Array<{ type: string; text: string }>)[0].text; |
| 163 | |
| 164 | const STUB_TOOL_ADDRESS = ToolAddress.make("tools.test.org.main.t"); |
| 165 | const TEST_IMAGE_MIME_TYPE = "image/png"; |