Xavier Ting AI for the rest of us

Playwright CLI

Lets your AI drive a browser without filling up its memory.

Why use Playwright CLI?

An assistant that needs to click through your website can be given a browser in two ways. The usual way loads a large description of the page into the assistant's working memory, and that memory is a fixed size, so the more the page takes the less is left for your code. Microsoft built this the other way around. It hands the assistant short typed commands instead, the CLI in the name stands for command line, and does not push page contents at it. On a big project that difference is what decides whether the assistant can hold your code and the browser in mind at the same time.

When should you use Playwright CLI?

Writing or repairing tests that click through a website, checking a sign-up or checkout flow really works end to end, and any job where you want the assistant working against a real browser rather than guessing from the code.

How do you install and use Playwright CLI?

  1. Run the command below. It needs Node.js 18 or newer, a free runtime from nodejs.org.
  2. Then run playwright-cli install --skills so Claude Code and similar tools learn the commands.
  3. Ask your assistant in plain words, for example: test the add to basket flow on my site using playwright-cli.
Paste into the Terminal app npm install -g @playwright/cli@latest
← Back to the tools