"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetStepScreenshotToolDefinition = void 0;
var zod_1 = require("zod");
var toolDefinition_js_1 = require("../toolDefinition.js");
var getStepScreenshotArgumentsSchema = zod_1.z.object({
    step_run_id: zod_1.z
        .string()
        .describe('The step_run_id from the execution trace identifying which step execution to inspect.'),
    reasoning: zod_1.z
        .string()
        .optional()
        .describe('Brief explanation of why you want to see this step screenshot (e.g., checking auto-heal accuracy, verifying click target).'),
});
var getStepScreenshotResponseSchema = zod_1.z.object({
    success: zod_1.z.boolean(),
    message: zod_1.z.string().optional(),
    has_element_bounding_box: zod_1.z.boolean().optional(),
});
exports.GetStepScreenshotToolDefinition = (0, toolDefinition_js_1.defineTool)({
    name: 'get_step_screenshot',
    description: 'Retrieve the screenshot captured during a specific step execution, with the targeted element highlighted by a bounding box. Use this to visually inspect auto-healed elements, verify click targets, or examine the page state at a particular step.',
    argumentsSchema: getStepScreenshotArgumentsSchema,
    responseSchema: getStepScreenshotResponseSchema,
});
//# sourceMappingURL=GetStepScreenshotDefinition.js.map