# Add a product to the L.L.Bean cart

Automatically add a product to the L.L.Bean cart on llbean.com. Add one color and size of an L.L.Bean product to the bag, 1 to 10 units, and get the bag after.

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

## About

Give it the product and the variant from the get_product script. It adds the product to the browser's bag and lists all lines with prices in US dollars and the total before shipping and tax. Nothing is paid or ordered. An unknown product or a wrong variant fails and adds nothing. No account is needed.

## Run it

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

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

## Input

- `product` (string, required): Product id (the number after /llb/shop/ in a product link, for example 128942) or the product link.
- `offerId` (string, optional): The id of the variant (color and size) to add, from the variants of Get L.L.Bean product.
- `quantity` (integer, optional): How many to add.

## Output

- `name` (string | null, required)
- `added` (boolean, required): True when the bag now holds a line of this offer.
- `count` (integer, required): Number of units in the bag.
- `lines` (array, required)
- `total` (number | null, required): Merchandise total in US dollars, before shipping and tax.
- `offerId` (string, required)
- `productId` (string, required)

## FAQ

### What does "Add a product to the L.L.Bean cart" do?

Add one variant (a color in a size) of an L.L.Bean (llbean.com, US) product to the shopping bag of this browser, and return the bag as the site holds it afterwards. Give the product id or link and the offerId (the id of one variant), both from Get L.L.Bean product, and a quantity from 1 to 10. The offerId can be left out only for a product with a single variant. Returns the product id, offer id, name, whether the bag now holds the offer, and the bag: the number of units, the merchandise total before shipping and tax, and each line with its line id, product id, offer id, name, seller, quantity, unit price and line price in US dollars. Works as a guest, with no account: lines already in the bag stay and are listed too. Nothing is paid or ordered. An unknown product, an offerId of another product or a missing offerId fails with a message that says so, and adds nothing.

### How do I automatically add a product to the L.L.Bean cart on llbean.com?

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

### Is there a llbean.com API to add a product to the L.L.Bean cart?

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

### What information do I need to provide?

Required: product. Optional: offerId, quantity.

### What does it return?

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

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

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

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

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

### How do I run it?

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

### Who maintains it?

It is one of Reduck's official scripts.

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