From 582ec42f9fe1487c544d7ebba2e34e3df7bf614a Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Tue, 30 Dec 2025 13:24:54 +0100 Subject: [PATCH] better reset prompt --- playwriter/src/mcp.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playwriter/src/mcp.ts b/playwriter/src/mcp.ts index 763de9d..b9a11d5 100644 --- a/playwriter/src/mcp.ts +++ b/playwriter/src/mcp.ts @@ -839,13 +839,13 @@ server.tool( server.tool( 'reset', dedent` - Recreates the CDP connection and resets the browser/page/context. Use this when the MCP stops responding, you get connection errors, assertion failures, page closed, or timeout issues. + Recreates the CDP connection and resets the browser/page/context. Use this when the MCP stops responding, you get connection errors, if there are no pages in context, assertion failures, page closed, or other issues. After calling this tool, the page and context variables are automatically updated in the execution environment. - IMPORTANT: this completely resets the execution context, removing any custom properties you may have added to the global scope AND clearing all keys from the \`state\` object. Only \`page\`, \`context\`, \`state\` (empty), \`console\`, and utility functions will remain. + This tools also removes any custom properties you may have added to the global scope AND clearing all keys from the \`state\` object. Only \`page\`, \`context\`, \`state\` (empty), \`console\`, and utility functions will remain. - if playwright always returns all pages as about:blank urls and evaluate does not work you should aks the user to restart Chrome. This is a known Chrome bug. + if playwright always returns all pages as about:blank urls and evaluate does not work you should ask the user to restart Chrome. This is a known Chrome bug. `, {}, async () => {