export interface MCPAuth { type: 'jwt' | 'apikey' | 'session'; credentials: string; } export interface BaseToolArgs { sessionId?: string; auth?: MCPAuth; } export interface ExecuteApiArgs extends BaseToolArgs { protocol: 'rest' | 'grpc' | 'websocket'; operation: { method?: string; endpoint?: string; service?: string; procedure?: string; type?: string; body?: unknown; headers?: Record; metadata?: Record; }; } export interface CreateSessionArgs { username: string; password: string; duration?: number; } export interface ListSessionsArgs { userId?: string; } export interface DeleteSessionArgs { sessionId: string; } export interface CreateBrowserContextArgs extends BaseToolArgs { name?: string; options?: { headless?: boolean; viewport?: { width: number; height: number; }; proxy?: { enabled: boolean; config?: { protocol: 'http' | 'https' | 'socks4' | 'socks5'; host: string; port: number; auth?: { username: string; password: string; }; bypass?: string[]; }; pool?: { proxies: Array<{ protocol: 'http' | 'https' | 'socks4' | 'socks5'; host: string; port: number; auth?: { username: string; password: string; }; bypass?: string[]; }>; strategy?: 'round-robin' | 'random' | 'least-used' | 'priority' | 'health-based'; }; rotateOnError?: boolean; rotateOnInterval?: boolean; rotationInterval?: number; }; }; } export interface ExecuteInContextArgs extends BaseToolArgs { contextId: string; command: string; parameters?: Record; } export interface ToolResponse { content: Array<{ type: 'text' | 'image' | 'resource'; text?: string; data?: unknown; mimeType?: string; }>; isError?: boolean; _meta?: Record; } export interface ToolErrorResponse { error: string; code: string; } export interface ToolSuccessResponse { data?: T; success?: boolean; message?: string; } //# sourceMappingURL=tool-types.d.ts.map