Skip to main content
Record and replay browser actions. start records every browser_navigate/click/fill/select/key/wait on the tab (with a stable selector per element); stop saves the flow as a JSON artifact. add_assertion appends a browser_wait check; add_checkpoint marks a place replay can stop at; parameterize turns a recorded literal into {{name}}. replay runs a flow on a tab with params, resolving selectors to fresh refs, and stops at the first failure or at stopAtCheckpoint.

Parameters

enum
required
One of: start, stop, status, list, get, add_assertion, add_checkpoint, parameterize, replay, delete_step, export.
enum
export: target format (Playwright TypeScript test) One of: playwright.
string
export: also write the file here
integer
Target tab id from browser_tabs, which lists tabs across all windows. Defaults to the agent’s most recently opened usable tab, or the only usable tab. Otherwise select a listed tabId.
string
 
string
Flow id or artifact path
object
 
string
Checkpoint label
integer
 
string
Arg to parameterize, e.g. “text” or “url”
string
 
object
 
string
 
integer
 
boolean
 

Example

Add an assertion while recording
Turn a literal into a parameter
Replay with parameters
Export as a Playwright test