# Add a product to the CVS cart

Automatically add a product to the CVS cart on cvs.com. Add a CVS product to this browser's cart for store pickup.

- Site: cvs.com
- Address: `reduck/cvs.com/add_to_cart`
- Updated: 2026-11-30 (v1)
- Author: Reduck AI (reduck)

## About

Use it to fill a CVS cart on the US site, from a product's id or link. A product with sizes, counts or colors needs the variant id from the get-product script. The site picks a store from the browser's location and offers only the quantity that store has. If the product, variant or quantity is not valid, nothing is added and an error says why. Nothing is paid or ordered. No account is needed.

## Run it

Ask an AI agent connected to Reduck over MCP (`https://mcp.reduck.ai/mcp`) to run `reduck/cvs.com/add_to_cart`, or run it from a terminal:

```bash
npx @reduck-ai/cli@latest run --script reduck/cvs.com/add_to_cart
```

## Input

- `product` (string, required): The product id (from search-products) or the link of its page on cvs.com.
- `quantity` (integer, optional): How many to add. The site sells at most max_quantity of a variant per order (get-product), and no more than the store has.
- `variantId` (string, optional): The item id of the variant to add (a variant id from get-product). Needed when the product has more than one variant.

## Output

- `name` (string | null, required)
- `added` (boolean, required)
- `count` (integer, required): The number of items in the cart after the add, all quantities added.
- `lines` (array, required)
- `total` (number | null, required): The estimated cart total in US dollars, after deals and before taxes.
- `offerId` (string | null, required): The item id of the variant that was added.
- `productId` (string | null, required)

## FAQ

### What does "Add a product to the CVS cart" do?

Add a CVS (cvs.com, US) product to the cart of this browser, as a guest, from its id or page link, with a quantity, as the product page's add-to-cart button does. A product sold in several variants (size, count, color) needs variantId, from get-product. The site adds the item for store pickup at the store it picks for the browser's location, and offers only the quantity that store has. Gives the cart after the add. An unknown product, an unknown or missing variant, or a quantity above what the site sells gives an error that says so, and nothing is added. Nothing is paid or ordered.

### How do I automatically add a product to the CVS cart on cvs.com?

Ask an AI agent connected to Reduck to run reduck/cvs.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/cvs.com/add_to_cart

### Is there a cvs.com API to add a product to the CVS cart?

You do not need one. "Add a product to the CVS cart" drives the real cvs.com pages in a browser, so it works whether or not cvs.com offers an API for this.

### What information do I need to provide?

Required: product. Optional: quantity, variantId.

### What does it return?

It returns name, added, count, lines, total, offerId, productId.

### Do I need to be logged in to cvs.com?

No. It only uses pages of cvs.com that are reachable without signing in.

### Does it change anything on cvs.com, or only read data?

It makes changes on cvs.com, like sending, posting, booking or buying something.

### How do I run it?

Ask an AI agent connected to Reduck to run reduck/cvs.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/cvs.com/add_to_cart

### Who maintains it?

It is one of Reduck's official scripts.

Source: https://reduck.ai/explore/scripts/reduck/cvs.com/add_to_cart
