chore(deps): update dependency @playwright/mcp to v0.0.47 #186
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.0.46->0.0.47Release Notes
microsoft/playwright-mcp (@playwright/mcp)
v0.0.47Compare Source
New ways to provide initial state
There are now multiple ways to provide the initial state to the browser context or a page.
For the storage state, you can either:
--user-data-dirargument. This will persist all browser data between the sessions.--storage-stateargument. This will load cookies and local storage from the file into an isolated browser context.For the page state, you can use:
--init-pageto point to a TypeScript file that will be evaluated on the Playwright page object. This allows you to run arbitrary code to set up the page. You can use various Playwright APIs there, perform necessary steps, etc.--init-scriptto point to a JavaScript file that will be added as an initialization script. The script will be evaluated in every page before any of the page's scripts.This is useful for overriding browser APIs or setting up the environment.
New run-code command to save tokens
There now is a new
browser_run_codecommand that allows LLM to run Playwright APIs as well. LLM can call it with a batch of Playwright APIs:This way LLM can speed up repetitive operations and save on context tokens.
Breaking changes
--allowed-originsand--blocked-originsflags are gone. Please use--proxyas a safer alternative or rely upon the underlying OS policies instead.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.