17 Commits

Author SHA1 Message Date
8e0953abc4 feat: add PWA inspection and download tools
Add browser_pwa_info (read-only) to detect and report PWA metadata
including manifest, service worker state, and CacheStorage contents.

Add browser_pwa_download to save complete PWA packages with manifest,
icons, service worker scripts, and cached resources to disk.
2026-02-02 19:43:11 -07:00
f8e3abac82 test: update tool snapshot for storage and throttle tools
Add 9 new tools to capabilities test:
- browser_get_cookies, browser_set_cookie, browser_delete_cookies
- browser_get_storage, browser_set_storage, browser_clear_storage
- browser_set_network_conditions, browser_get_network_conditions, browser_clear_network_conditions
2026-01-18 17:31:56 -07:00
96641283c3 feat: add WebRTC connection monitoring tools
Add real-time WebRTC connection monitoring for testing video calling apps.
Monitors real RTCPeerConnection instances and collects connection statistics.

New tools:
- browser_start_webrtc_monitoring: Enable monitoring and stats collection
- browser_get_webrtc_connections: List connections with state filtering
- browser_get_webrtc_stats: Detailed stats (bitrate, packet loss, jitter, RTT)
- browser_stop_webrtc_monitoring: Stop stats polling, preserve data
- browser_clear_webrtc_data: Clear captured connection data

Implementation:
- Intercepts RTCPeerConnection constructor via page.addInitScript()
- Captures state changes via page.exposeFunction() callbacks
- Collects stats via page.evaluate() calling getStats()
- Tab-level storage with Context aggregation (same pattern as notifications)
- Configurable stats polling interval (default 1s)

Use cases:
- Test WebRTC call quality in real-time
- Monitor connection states and failures
- Analyze bandwidth, packet loss, frame rates
2026-01-16 20:39:44 -07:00
a7d10f71bd feat: add device orientation and motion sensor mocking tools
Add CDP-based sensor mocking tools for testing motion-sensitive web apps:

- browser_set_device_orientation: Override DeviceOrientationEvent values
  (compass heading, front-back tilt, left-right tilt)
- browser_clear_device_orientation: Clear orientation override
- browser_set_device_motion: Override accelerometer and gyroscope values
  (acceleration, acceleration with gravity, rotation rate)
- browser_clear_device_motion: Clear motion override

These tools use Chrome DevTools Protocol (Chromium only) to mock sensor
readings, enabling testing of AR/VR apps, compass apps, games, and
other motion-sensitive web applications.

Also updates test snapshots to include all new core tools added recently.
2026-01-13 01:18:06 -07:00
Pavel Feldman
d61aa16fee
chore: turn vision into capability (#679)
Fixes https://github.com/microsoft/playwright-mcp/issues/420
2025-07-16 16:40:00 -07:00
Pavel Feldman
012c906500
chore: introduce browser_evaluate (#678)
Fixes https://github.com/microsoft/playwright-mcp/issues/424
2025-07-16 15:02:47 -07:00
Pavel Feldman
825a97d66e
chore: remove generate_test tool for now - it adds no value (#675) 2025-07-16 13:33:05 -07:00
Pavel Feldman
f31ef598bc
test: verify the log in close/navigate test (#505) 2025-06-01 12:49:30 -07:00
Pavel Feldman
c28b480b51
feat(wait): allow waiting for given text (#390)
Fixes https://github.com/microsoft/playwright-mcp/issues/389
2025-05-09 15:35:28 -07:00
Pavel Feldman
927a1280f1
chore: allow generating tests for script (#331) 2025-05-02 17:41:58 -07:00
Max Schmitt
685dea9e19
chore: migrate to ESM (#303)
- [Why do I need `.js`
extension?](https://stackoverflow.com/a/77150985/6512681)
- [Why setting `rootDir` in the
`tsconfig.json`?](https://stackoverflow.com/a/58941798/6512681)
- [How to ensure that we add the `.js` extension via
ESLint](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/extensions.md#importextensions)

Fixes https://github.com/microsoft/playwright-mcp/issues/302
2025-04-30 23:06:56 +02:00
Pavel Feldman
6e76d5e550
chore: split context.ts into files (#284) 2025-04-28 16:14:16 -07:00
Pavel Feldman
1bc3c761de
feat(network): implement listing network requests (#247)
Fixes: https://github.com/microsoft/playwright-mcp/issues/242
2025-04-22 16:04:25 -07:00
Pavel Feldman
6481100bdf
feat(dialog): handle dialogs (#212) 2025-04-17 14:03:13 -07:00
Pavel Feldman
5c2e11017d
chore: convert console resource to tool (#193) 2025-04-15 18:01:59 -07:00
Simon Knott
e729494bd9
feat: browser_resize (#92) 2025-04-14 16:09:48 -07:00
Pavel Feldman
abd56f514b
chore: introduce capabilities argument (#135) 2025-04-04 17:14:30 -07:00