import { z } from 'zod';
import { defineTool, } from '../toolDefinition.js';
export const executeOpenPdfArgumentsSchema = z.object({
    description: z.string().max(100).meta({
        description: 'A brief description of why you are opening this PDF (e.g., "Open the invoice PDF to verify contents").',
    }),
});
/**
 * Server prepare result schema for execute_open_pdf tool.
 * The server validates parameters before forwarding to the client.
 */
export const executeOpenPdfServerResultSchema = z.object({});
/**
 * Response schema for execute_open_pdf tool.
 */
export const executeOpenPdfResponseSchema = z.object({
    success: z.boolean(),
    message: z.string().optional(),
});
export const ExecuteOpenPdfToolDefinition = defineTool({
    name: 'execute_open_pdf',
    description: 'Records a step that waits for a PDF file to be downloaded and opens it in a new browser tab using the PDF viewer. Use after performing an action that triggers a PDF download (e.g., clicking a download link or submitting a form). The file name and metadata are captured automatically from the download. Once the PDF is open, you can use standard assertion tools to verify the rendered PDF content.',
    argumentsSchema: executeOpenPdfArgumentsSchema,
    serverPrepareResultSchema: executeOpenPdfServerResultSchema,
    responseSchema: executeOpenPdfResponseSchema,
});
//# sourceMappingURL=ExecuteOpenPdfDefinition.js.map