rename accessibilitySnapshot to snapshot for shorter agent usage

The function is now exposed as `snapshot()` in the executor sandbox scope.
`accessibilitySnapshot` remains as a backward-compatible alias pointing to
the same function, so existing agents and saved commands continue to work.

Updated all code examples across skill.md, README, PLAYWRITER_AGENTS,
docs, tests, and the extension welcome page to use the shorter name.
This commit is contained in:
Tommy D. Rossi
2026-02-18 17:13:57 +01:00
parent b5c14cb68d
commit 539aeaac91
9 changed files with 44 additions and 40 deletions
+1 -1
View File
@@ -33,7 +33,7 @@
```bash
playwriter session new # creates stateful sandbox, outputs session id (e.g. 1)
playwriter -s 1 -e "await page.goto('https://example.com')"
playwriter -s 1 -e "console.log(await accessibilitySnapshot({ page }))"
playwriter -s 1 -e "console.log(await snapshot({ page }))"
playwriter -s 1 -e "await page.locator('aria-ref=e5').click()"
```