Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Commit 7465cd4

Browse files
committed
add 'window.__mcp_tool_group.tools' to description for composability
1 parent d8fedf3 commit 7465cd4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/tools/inPage.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ declare global {
3030

3131
export const listInPageTools = defineTool({
3232
name: 'list_in_page_tools',
33-
description: `Lists all tools the page exposes for providing runtime information.`,
33+
description: `Lists all in-page-tools the page exposes for providing runtime information.
34+
In-page-tools can be called via the 'execute_in_page_tool()' MCP tool.
35+
In addition, the in-page-tools are exposed on the page via the 'window.__mcp_tool_group.tools' array
36+
where they can be called by 'evaluate_script'. This might be helpful when the in-page-tools return
37+
non-serializable values or when composing the in-page-tools with additional functionality.`,
3438
annotations: {
3539
category: ToolCategory.IN_PAGE,
3640
readOnlyHint: true,

0 commit comments

Comments
 (0)