options arg

This commit is contained in:
Simon Knott
2025-08-13 11:19:59 +02:00
parent affe1d7ed9
commit 98fef06b3b

View File

@@ -108,6 +108,7 @@ export class ProxyBackend implements ServerBackend {
].join('\n'),
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'),
options: z.any().optional().describe('Options for the connection method'),
}), { strictUnions: true }) as ToolDefinition['inputSchema'],
annotations: {
title: 'Connect to a browser context',