(session: McpSession, address: string, args: unknown = {})
| 126 | |
| 127 | /** Invoke a dynamic tool by full address and parse the envelope it returns. */ |
| 128 | const invokeEnvelope = (session: McpSession, address: string, args: unknown = {}) => |
| 129 | Effect.map( |
| 130 | executeApproved(session, invokeByAddressCode(address, args)), |
| 131 | (result) => JSON.parse(result.text) as ToolEnvelope, |
| 132 | ); |
| 133 | |
| 134 | // --------------------------------------------------------------------------- |
| 135 | // 1 + 2: success and the not-found error identity. |
no test coverage detected