Skip to content

Commit 13bce59

Browse files
committed
fix: reference to handle_dialog tool
1 parent 4cf92cb commit 13bce59

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/McpResponse.ts

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

2324
export class McpResponse implements Response {
2425
#includePages = false;
@@ -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)