import { z } from 'zod';
import { defineTool, } from '../toolDefinition.js';
import { refreshedStepsResponseFields } from './shared/refreshedStepsResponseFields.js';
export const executeStartStepGroupArgumentsSchema = z.object({
    step_group_name: z
        .string()
        .describe('A clear, action-oriented name for the step group (e.g., "Search for product", "Complete checkout form"). ' +
        'This will be used as the label for the step group in the test.'),
});
export const executeStartStepGroupResponseSchema = z.object({
    success: z.boolean(),
    message: z.string().optional(),
    ...refreshedStepsResponseFields,
});
export const ExecuteStartStepGroupToolDefinition = defineTool({
    name: 'execute_start_step_group',
    description: "Creates a new labeled step group in the test and positions the cursor inside it. Use this tool to begin a new section of related steps when you are ready to start working on a specific part of the test. Each step group organizes the steps you create within it under a descriptive label.\n\nNote: Creating a step group inserts it at the cursor position and moves the cursor inside it. This changes subsequent step indices. The refreshed step list is returned in this tool's output (updated_test_steps); use it to re-anchor (if absent on an older client, call get_test_context).",
    argumentsSchema: executeStartStepGroupArgumentsSchema,
    responseSchema: executeStartStepGroupResponseSchema,
});
//# sourceMappingURL=ExecuteStartStepGroupDefinition.js.map