search_products
Search products by a term
Arguments: term - the search term to look for products. It should be at least 3 characters long. cursor - optional, used for pagination. If provided, it will return the next page of results after.
Pagination: Supports pagination with 'cursor' arguments. If 'cursor' is not provided, it will return the first page of results. Value for 'cursor' can be obtained from the 'nextCursor' field in the response. If 'nextCursor' is null, it means there are no more results to fetch. If value of cursor is null (or a string representation of 'null') dont send it in the payload.
Results: Each product includes 'requiresFileUpload'. When true, the product has a required file-upload option (e.g. "upload your design") and shouldn't be added to cart through this assistant. Do not attempt to purchase it — tell the user it must be ordered on the website.
Flow:
Call this tool with a 'term' argument and optionally with 'cursor' to search for products.
if you find a matching product, call 'get_product_details' with the product ID to get its variants and options (if any).
if 'requiresFileUpload' is true, inform the user the product needs a file upload and cannot be purchased here.
Call 'add_item_to_cart' with results of 'search_products' and 'get_product_details' (variant) tools to add the product to the cart.
[IMPORTANT] If product has variants ask user to pick
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes | ||
| cursor | No | ||
| context | No | Additional information about the request such as user demographics, mood, location, or other relevant details that could help in tailoring the response appropriately. Should not contains PII. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | ||
| success | Yes | ||
| products | Yes | ||
| nextCursor | No |