Skip to content

Commit 3813dac

Browse files
committed
fix: use request.page instead of getSelectedMcpPage in executeInPageTool
executeInPageTool is a definePageTool handler and should use request.page to target the correct page, not context.getSelectedMcpPage() which would apply the wrong throttling settings in multi-page scenarios.
1 parent 9ac6239 commit 3813dac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tools/inPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const executeInPageTool = definePageTool({
7171
.describe('The JSON-stringified parameters to pass to the tool'),
7272
},
7373
handler: async (request, response, context) => {
74-
const page = context.getSelectedMcpPage();
74+
const page = request.page;
7575
const toolName = request.params.toolName;
7676
let params: Record<string, unknown> = {};
7777
if (request.params.params) {

0 commit comments

Comments
 (0)