/swiggy:swiggy-cartfrom swiggy
Read and change a Swiggy Food or Instamart cart with swiggy-cli — add items, change quantities, apply Food coupons, clear. Use when the user says "add X", "make it two", "what's in my cart", "apply coupon", "empty my cart".
Ships in swiggy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Carts live on Swiggy's side, keyed to the account. Food and Instamart carts are separate. Everything here except clearing is safe to re-run; retrying the same add-to-cart does not double-add.
update_cart replaces the whole cart. Use swiggy instamart add (it reads the cart and merges) for "add X"; use set-cart only when the user wants exactly that list. Sending only the new item through set-cart silently deletes the rest.menu_item_id (from search-menu/menu); Instamart needs the variation's spinId (+ skuId). Names and productId are not accepted.coupon_discount: 0; do not tell the user they saved money unless the number is > 0.swiggy food cart --json --no-interactive # data.data.items[], pricing.to_pay, offers, availablePaymentMethods
swiggy instamart cart --json --no-interactive # data.items[], billBreakdown.toPay, unserviceableItems, paymentOptions
# Food: plain item (ids from search-menu / menu)
swiggy food add --item-id <menu_item_id> --restaurant-id <rid> --qty 2 --json --no-interactive
# Food: item with a variant + addon (ids and group ids copied exactly from the menu response)
swiggy food add --restaurant-id <rid> --items '[{"menu_item_id":"<id>","quantity":1,"variants":[{"group_id":"<g>","variation_id":"<v>"}],"addons":[{"group_id":"<g>","id":"<a>"}]}]' --json --no-interactive
# Instamart: add ONE product — the CLI reads the cart and merges (safe default)
swiggy instamart add --spin-id <spinId> --sku-id <skuId> --qty 2 --json --no-interactive
# Instamart: set the FULL cart explicitly (raw replace semantics)
swiggy instamart set-cart --items '[{"spinId":"<s1>","skuId":"<k1>","quantity":2},{"spinId":"<s2>","skuId":"<k2>","quantity":1}]' --json --no-interactive
Row numbers (swiggy food add 3) refer to the last listing made in the same shell session; agents pass explicit ids — a number could point at a listing another process made.
After any change, read the cart again and tell the user the new total from pricing.to_pay (Food) or billBreakdown.toPay (Instamart). add-to-cart renders nothing on its own upstream.
swiggy food list-coupons --restaurant-id <rid> --json --no-interactive
swiggy food apply-coupon <CODE> --json --no-interactive
Coupons are a Food feature. Some require online payment; on a cash order they will not apply. If the user wants that coupon, route them to swiggy-pay (UPI).
Instamart coupons: Swiggy removed list_coupons and apply_coupon (and get_order_details) from its published reference in November 2026. swiggy instamart list-coupons / apply-coupon / order <id> remain as legacy commands and work only if the account still has the tool. On MCP_ERROR or NOT_FOUND from one of them, tell the user coupons cannot be applied to Instamart from here and continue without; do not retry.
swiggy food clear-cart --yes --json --no-interactive
swiggy instamart clear-cart --yes --json --no-interactive
Add --yes only after the user asked to empty the cart in this conversation. Exit 7 without it is the CLI doing its job.
MCP_ERROR mentioning stock/serviceability → item unavailable at this address; offer alternatives from a new search.MCP_ERROR "minimum order" → the cart is below the store's minimum. Quote the amount from error.message (never assume one) and ask the user to add items.CART_EXPIRED / empty cart after a long pause → rebuild from the user's last confirmed list, then confirm with them.What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/swiggy-addressList, create, delete and default Swiggy delivery addresses with swiggy-cli. Use when a Food/Instamart command needs an addressId, when the user says "deliver to my office", "add a new address", or when the CLI exits 2 asking for --address-id./swiggy-checkoutPlace a Swiggy Food or Instamart order with swiggy-cli, choosing Cash, UPI or Swiggy Money and getting explicit consent first. Use only when the user has said to place/confirm the order — never as an automatic continuation of adding to cart./swiggy-cliDrive the swiggy CLI, a direct client for Swiggy's public API (Food, Instamart, Dineout, Scenes), from an agent. Use when the user wants to search, order, pay for, book or track anything on Swiggy through the terminal, including table bookings and event tickets. Covers machine-mode flags, the JSON envelope, exit codes, auth detection and when NOT to use the CLI.Other plugins' skills for the same job
npx claudepluginhub hktitan/swiggy-cli --plugin swiggy