Skip to content

Commit d0c3ed8

Browse files
Change category and expose tool properly
1 parent f6a7c80 commit d0c3ed8

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/tools/ToolDefinition.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ export type Context = Readonly<{
201201
getExtensionServiceWorkerId(
202202
extensionServiceWorker: ExtensionServiceWorker,
203203
): string | undefined;
204-
getWebMcpTools(page: ContextPage): WebMcpTool[];
205204
}>;
206205

207206
export type ContextPage = Readonly<{

src/tools/pages.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const listPages = defineTool(args => {
2828
handler: async (_request, response) => {
2929
response.setIncludePages(true);
3030
response.setListInPageTools();
31+
response.setListWebMcpTools();
3132
},
3233
};
3334
});

src/tools/webmcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const listWebMcpTools = definePageTool({
1111
name: 'list_webmcp_tools',
1212
description: `Lists all WebMCP tools the page exposes.`,
1313
annotations: {
14-
category: ToolCategory.IN_PAGE,
14+
category: ToolCategory.DEBUGGING,
1515
readOnlyHint: true,
1616
conditions: ['experimentalWebmcp'],
1717
},

0 commit comments

Comments
 (0)