chore: annotate tools (#351)
Fixes https://github.com/microsoft/playwright-mcp/issues/215
This commit is contained in:
parent
8cd7d5a753
commit
d01aa19ffa
19 changed files with 157 additions and 62 deletions
|
|
@ -22,10 +22,12 @@ const uploadFile: ToolFactory = captureSnapshot => defineTool({
|
|||
|
||||
schema: {
|
||||
name: 'browser_file_upload',
|
||||
title: 'Upload files',
|
||||
description: 'Upload one or multiple files',
|
||||
inputSchema: z.object({
|
||||
paths: z.array(z.string()).describe('The absolute paths to the files to upload. Can be a single file or multiple files.'),
|
||||
}),
|
||||
type: 'destructive',
|
||||
},
|
||||
|
||||
handle: async (context, params) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue