Search product variants
Autocomplete search for product variants by name, SKU, external reference, or barcode. Identifier fields (sku, externalReference, barcode) use exact/prefix matching so that a scan of ‘SKU-123’ does not fuzzy-match noise; full_name uses substring matching. Exact identifier hits rank above prefix hits, which rank above name matches. Optionally scope to a known product with productId. Returns productId and collectionId so agents can pivot variant → product or collection without a second call. Size is not returned — size lives on inventory_items, not variants.
Authorizations
User session token issued by NextAuth. For human users accessing Solya via the web application.
Query Parameters
Canonical text-filter param (preferred). Partial text to filter results by name (case-insensitive prefix/substring match). Use q instead of the deprecated search alias — q matches the param name advertised in MCP tool examples and used on /api/products.
Deprecated: use q instead. Backwards-compatible alias — when both q and search are supplied, q takes precedence.
Maximum number of results to return (1–100)
1 <= x <= 100Comma-separated list of IDs to resolve by exact match
Filter results to variants of this product UUID

