import { z } from 'zod';
import { defineTool } from '../toolDefinition.js';
const getStepScreenshotArgumentsSchema = z.object({
    step_run_id: z
        .string()
        .describe('The step_run_id from the execution trace identifying which step execution to inspect.'),
    reasoning: z
        .string()
        .optional()
        .describe('Brief explanation of why you want to see this step screenshot (e.g., checking auto-heal accuracy, verifying click target).'),
});
const getStepScreenshotResponseSchema = z.object({
    success: z.boolean(),
    message: z.string().optional(),
    has_element_bounding_box: z.boolean().optional(),
});
export const GetStepScreenshotToolDefinition = 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