chore: annotate tools (#351)
Fixes https://github.com/microsoft/playwright-mcp/issues/215
This commit is contained in:
@@ -22,10 +22,12 @@ const pressKey: ToolFactory = captureSnapshot => defineTool({
|
||||
|
||||
schema: {
|
||||
name: 'browser_press_key',
|
||||
title: 'Press a key',
|
||||
description: 'Press a key on the keyboard',
|
||||
inputSchema: z.object({
|
||||
key: z.string().describe('Name of the key to press or a character to generate, such as `ArrowLeft` or `a`'),
|
||||
}),
|
||||
type: 'destructive',
|
||||
},
|
||||
|
||||
handle: async (context, params) => {
|
||||
|
||||
Reference in New Issue
Block a user