Skip to main content

Capabilities

The CLI and MCP share the same underlying Playwright tools, organized into capability groups. In the CLI all capabilities are always available — there's no gating. This page maps commands to their capability groups for reference.

Core

Always available. Basic browser automation.

CommandDescription
open, goto, closeOpen, navigate, close browser
go-back, go-forward, reloadHistory navigation
click, dblclick, hover, dragElement interaction
type, fill, selectText input and dropdowns
check, uncheckCheckboxes and radio buttons
press, keydown, keyupKeyboard input
snapshotCapture accessibility tree
screenshotTake screenshot
uploadUpload files
dialog-accept, dialog-dismissHandle dialogs
resizeResize browser window
eval, run-codeExecute JavaScript / Playwright code

Network

Network inspection and mocking.

CommandDescription
networkList network requests since page load
routeMock requests matching a URL pattern
route-listList active mocked routes
unrouteRemove mocked routes
network-state-setSet online/offline state

See Network & Mocking for usage.

Storage

Cookie, localStorage, and sessionStorage management plus state persistence.

CommandDescription
state-save, state-loadSave/restore full browser state
cookie-list/get/set/delete/clearManage cookies
localstorage-list/get/set/delete/clearManage localStorage
sessionstorage-list/get/set/delete/clearManage sessionStorage

See Storage & Authentication for usage.

Vision

Coordinate-based mouse interaction using pixel positions from screenshots. Useful for canvas apps, maps, and custom widgets without accessible elements.

CommandDescription
mousemove <x> <y>Move mouse to coordinates
mousedown [button]Press mouse button
mouseup [button]Release mouse button
mousewheel <dx> <dy>Scroll with mouse wheel
screenshotCapture viewport for coordinate reference

See Vision Mode for when and how to use coordinate-based interaction.

DevTools

Tracing, video recording, and test debugging.

CommandDescription
consoleView console messages
tracing-start, tracing-stopRecord execution traces
video-start, video-stop, video-chapterRecord session videos
showOpen visual dashboard
pause-at, resume, step-overTest debugging

PDF

PDF generation.

CommandDescription
pdfExport page as PDF

Testing

Assertions and test generation tools.

CommandDescription
verify-element-visibleAssert element is visible by role and name
verify-text-visibleAssert text is visible
verify-list-visibleAssert list with items is visible
verify-valueAssert form field value
generate-locatorGenerate Playwright locator for test code