import { z } from 'zod';
/**
 * Shared schema for the optional `customFind` field on TAA action tools.
 *
 * When set, the visual (screenshot-based) find is skipped and the step is
 * recorded with the supplied selector verbatim. The agent only knows when to
 * use this when the on-demand `custom_element_finds` skill is loaded — keeping
 * this description deliberately terse here so default TAA system prompts stay
 * lean.
 */
export const customFindSchema = z
    .object({
    selectorType: z.enum(['css', 'xpath']).meta({
        description: 'Which selector flavor `selector` is — CSS query or XPath expression.',
    }),
    selector: z.string().min(1).meta({
        description: 'The exact selector string. Must be a valid CSS query (when selectorType=css) or XPath expression (when selectorType=xpath).',
    }),
})
    .meta({
    description: 'Optional precise selector. When set, the visual find is skipped and the step is recorded with this selector verbatim (no auto-heal fallback). Fetch the `custom_element_finds` skill via `fetch_skills` for guidance on when and how to use it.',
});
//# sourceMappingURL=customFind.js.map