"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetRecentDownloadToolDefinition = exports.getRecentDownloadResponseSchema = exports.getRecentDownloadArgumentsSchema = void 0;
var zod_1 = require("zod");
var toolDefinition_js_1 = require("../toolDefinition.js");
var agentToolNames_js_1 = require("../shared/agentToolNames.js");
exports.getRecentDownloadArgumentsSchema = zod_1.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.
 */
exports.getRecentDownloadResponseSchema = zod_1.z.object({
    success: zod_1.z.boolean(),
    message: zod_1.z.string().optional().meta({
        description: 'Informational message, e.g. when no download has been detected yet.',
    }),
    file_name: zod_1.z.string().optional().meta({
        description: 'Name of the most recently downloaded file.',
    }),
    file_mime_type: zod_1.z.string().optional().meta({
        description: 'MIME type of the most recently downloaded file.',
    }),
    file_size_bytes: zod_1.z.number().optional().meta({
        description: 'Size of the most recently downloaded file in bytes.',
    }),
});
exports.GetRecentDownloadToolDefinition = (0, toolDefinition_js_1.defineTool)({
    name: agentToolNames_js_1.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: exports.getRecentDownloadArgumentsSchema,
    responseSchema: exports.getRecentDownloadResponseSchema,
});
//# sourceMappingURL=GetRecentDownloadDefinition.js.map