import { z } from 'zod';
import { defineTool, } from '../toolDefinition.js';
import { AgentToolNames } from '../shared/agentToolNames.js';
export const getWorkspaceContextParamsSchema = z.object({
    include_example_steps: z.boolean().optional().meta({
        description: 'Whether to include example test steps from similar tests. Default: true',
    }),
});
export const getWorkspaceContextResponseSchema = z.object({
    has_examples: z.boolean().meta({
        description: 'Whether there are example test steps available from similar tests',
    }),
    example_test_steps: z.record(z.string(), z.any()).optional().meta({
        description: 'Example test steps from similar tests, organized by context/query. Use these as inspiration for creating similar steps.',
    }),
});
export const GetWorkspaceContextToolDefinition = defineTool({
    name: AgentToolNames.GetWorkspaceContext,
    description: `Retrieves workspace context including example test steps from similar tests in the workspace.

Use this tool when you need to:
- See how similar tasks were accomplished in other tests
- Get inspiration for test step patterns
- Understand common patterns used in the workspace

The example test steps are organized by search query or context and show how similar tasks were accomplished. Use these as inspiration but adapt them to the current test case.`,
    argumentsSchema: getWorkspaceContextParamsSchema,
    responseSchema: getWorkspaceContextResponseSchema,
});
//# sourceMappingURL=GetWorkspaceContextDefinition.js.map