/** * Shared tool-response helpers. * * Every module had its own copy of `jsonResponse` / `errorResponse` * (email, calendar, messaging, search, image, system). That's six chances * to forget `sanitizeToolOutput` on an error path where an upstream * library echoed a Bearer token into its Error.message. * * This file is the single place MCP tool responses are constructed. * Every outgoing response goes through `sanitizeToolOutput`. */ export interface ToolResponse { [x: string]: unknown; content: Array<{ type: 'text'; text: string; }>; isError?: boolean; } export declare function jsonResponse(result: unknown, isError?: boolean): ToolResponse; export declare function errorResponse(message: string, code?: string, extra?: Record): ToolResponse; export declare function textResponse(text: string, isError?: boolean): ToolResponse; //# sourceMappingURL=tool-response.d.ts.map