mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2026-02-04 09:13:10 +00:00
options arg
This commit is contained in:
@@ -108,6 +108,7 @@ export class ProxyBackend implements ServerBackend {
|
|||||||
].join('\n'),
|
].join('\n'),
|
||||||
inputSchema: zodToJsonSchema(z.object({
|
inputSchema: zodToJsonSchema(z.object({
|
||||||
name: z.enum(this._mcpFactories.map(factory => factory.name) as [string, ...string[]]).default(this._mcpFactories[0].name).describe('The method to use to connect to the browser'),
|
name: z.enum(this._mcpFactories.map(factory => factory.name) as [string, ...string[]]).default(this._mcpFactories[0].name).describe('The method to use to connect to the browser'),
|
||||||
|
options: z.any().optional().describe('Options for the connection method'),
|
||||||
}), { strictUnions: true }) as ToolDefinition['inputSchema'],
|
}), { strictUnions: true }) as ToolDefinition['inputSchema'],
|
||||||
annotations: {
|
annotations: {
|
||||||
title: 'Connect to a browser context',
|
title: 'Connect to a browser context',
|
||||||
|
|||||||
Reference in New Issue
Block a user