We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cde4dc1 commit 7d3f02bCopy full SHA for 7d3f02b
1 file changed
src/index.ts
@@ -199,6 +199,11 @@ export async function createMcpServer(
199
? context.getPageById(params.pageId)
200
: context.getSelectedMcpPage();
201
response.setPage(page);
202
+ if (page.getDialog() && tool.name !== 'handle_dialog') {
203
+ throw new Error(
204
+ 'A browser dialog is open. Call handle_dialog to accept or dismiss it before continuing.',
205
+ );
206
+ }
207
await tool.handler(
208
{
209
params,
0 commit comments