import { z } from 'zod';
import { defineTool, } from '../toolDefinition.js';
import { AgentToolNames } from '../shared/agentToolNames.js';
export const getRecentDownloadArgumentsSchema = z.object({});
/**
 * Response schema for get_recent_download tool.
 * Returns metadata about the most recent file download, or a message if no download has occurred.
 */
export const getRecentDownloadResponseSchema = z.object({
    success: z.boolean(),
    message: z.string().optional().meta({
        description: 'Informational message, e.g. when no download has been detected yet.',
    }),
    file_name: z.string().optional().meta({
        description: 'Name of the most recently downloaded file.',
    }),
    file_mime_type: z.string().optional().meta({
        description: 'MIME type of the most recently downloaded file.',
    }),
    file_size_bytes: z.number().optional().meta({
        description: 'Size of the most recently downloaded file in bytes.',
    }),
});
export const GetRecentDownloadToolDefinition = defineTool({
    name: AgentToolNames.GetRecentDownload,
    description: 'Returns metadata about the most recent file download (file name, MIME type, size) without recording a step. Use this to inspect what was downloaded before deciding how to verify it. Returns an informational message if no download has occurred yet.',
    argumentsSchema: getRecentDownloadArgumentsSchema,
    responseSchema: getRecentDownloadResponseSchema,
});
//# sourceMappingURL=GetRecentDownloadDefinition.js.map