The Playwright MCP server gives an AI agent browser tools: browser_navigate, browser_snapshot, browser_click, browser_type and more. After each action it returns the page's accessibility snapshot, where every element has a ref such as e16. The agent reads the snapshot, picks a ref and calls the next tool. Everything it reads goes into its context window, and context costs time and money.
The console below simulates those tools on ShopLab. Replies have the shape of the real server's output; the sizes are this simulation's, and a real page's are usually larger.
Your task
- Buy two notebooks and one coffee mug with the coupon SAVE10, one tool call at a time. Type calls such as
browser_click e16orbrowser_type e22 SAVE10. - Copy the order reference from the confirmation page.
- Count your tool calls and add up the characters of every reply. Each reply shows its size.
The order reference is unique to you, and only an order that matches the task gets the right one.