import { z } from 'zod';
import { defineTool, } from '../toolDefinition.js';
import { AgentToolNames } from '../shared/agentToolNames.js';
import { STEP_INDEX_DESCRIPTION } from './shared/stepIndexDescription.js';
export const testAssertStepArgumentsSchema = z.object({
    step_index: z.string().meta({
        description: STEP_INDEX_DESCRIPTION,
    }),
});
export const testAssertStepResponseSchema = z.object({
    success: z.boolean(),
    message: z.string().optional(),
});
export const TestAssertStepToolDefinition = defineTool({
    name: AgentToolNames.TestAssertStep,
    description: 'Re-evaluates an existing assertion step against the current browser/application state and returns whether it passes or fails. Use this tool to verify that an assertion step is correct before finishing a task, or to debug a failing assertion. The step is NOT modified and no new step is created. The cursor position is NOT changed.',
    argumentsSchema: testAssertStepArgumentsSchema,
    responseSchema: testAssertStepResponseSchema,
});
//# sourceMappingURL=TestAssertStepDefinition.js.map