Skip to content

Commit 205eef5

Browse files
authored
fix: reference to handle_dialog tool (#209)
1 parent 4cf92cb commit 205eef5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/McpResponse.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
} from './formatters/networkFormatter.js';
1818
import {formatA11ySnapshot} from './formatters/snapshotFormatter.js';
1919
import type {McpContext} from './McpContext.js';
20+
import {handleDialog} from './tools/pages.js';
2021
import type {ImageContentData, Response} from './tools/ToolDefinition.js';
2122
import {paginate, type PaginationOptions} from './utils/pagination.js';
2223

@@ -167,7 +168,7 @@ export class McpResponse implements Response {
167168
if (dialog) {
168169
response.push(`# Open dialog
169170
${dialog.type()}: ${dialog.message()} (default value: ${dialog.message()}).
170-
Call browser_handle_dialog to handle it before continuing.`);
171+
Call ${handleDialog.name} to handle it before continuing.`);
171172
}
172173

173174
if (this.#includePages) {

tests/McpResponse.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Emulating: 4x slowdown`,
169169
`# test response
170170
# Open dialog
171171
alert: test (default value: test).
172-
Call browser_handle_dialog to handle it before continuing.`,
172+
Call handle_dialog to handle it before continuing.`,
173173
);
174174
});
175175
});

0 commit comments

Comments
 (0)