豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

chore: Add execute_in_page_tool tool#1766

Merged
wolfib merged 7 commits intomainfrom
execute-in-page-tool
Mar 31, 2026
Merged

chore: Add execute_in_page_tool tool#1766
wolfib merged 7 commits intomainfrom
execute-in-page-tool

Conversation

@wolfib
Copy link
Copy Markdown
Contributor

@wolfib wolfib commented Mar 30, 2026

This allows the MCP server to call the in-page tools provided by the inspected page.

Handling of (non-serializable) DOM elements as tool parameters or tool output will be added in follow-ups.

@wolfib wolfib requested a review from OrKoN March 31, 2026 11:07
Comment thread src/tools/inPage.ts
Comment thread src/tools/inPage.ts
Comment thread src/tools/ToolDefinition.ts Outdated
@wolfib wolfib added this pull request to the merge queue Mar 31, 2026
Merged via the queue into main with commit 4637ab9 Mar 31, 2026
42 of 46 checks passed
@wolfib wolfib deleted the execute-in-page-tool branch March 31, 2026 19:17
Comment thread src/tools/inPage.ts
Comment thread src/McpContext.ts
#screenRecorderData: {recorder: ScreenRecorder; filePath: string} | null =
null;

#inPageTools?: ToolGroup<ToolDefinition>;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should move this to McpPage instead of McpContext to support pageId routing (currently experimental).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check if other new tools have the same problem

OrKoN pushed a commit to mvanhorn/chrome-devtools-mcp that referenced this pull request Apr 1, 2026
This allows the MCP server to call the in-page tools provided by the
inspected page.

Handling of (non-serializable) DOM elements as tool parameters or tool
output will be added in follow-ups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants