ai-debug-local-mcp
Version:
🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh
115 lines • 3.3 kB
TypeScript
/**
* AI Assistant Bridge - Seamless integration for AI models
*
* This bridge provides a high-level interface for AI models to use AI-Debug tools
* without needing detailed knowledge of individual tool parameters or workflows.
*/
export interface AIRequest {
userInput: string;
context?: {
previousActions?: string[];
currentUrl?: string;
sessionId?: string;
userGoals?: string[];
};
preferences?: {
verbosity?: 'minimal' | 'detailed' | 'comprehensive';
autoExecute?: boolean;
includeTroubleshooting?: boolean;
};
}
export interface AIResponse {
understanding: {
userIntent: string;
extractedInfo: Record<string, any>;
confidence: number;
};
recommendations: {
toolSequence: Array<{
tool: string;
parameters: Record<string, any>;
reasoning: string;
confidence: number;
}>;
expectedOutcome: string;
alternatives?: Array<{
description: string;
toolSequence: string[];
}>;
};
executionPlan: {
steps: Array<{
stepNumber: number;
action: string;
tool: string;
parameters: Record<string, any>;
expectedResult: string;
fallbackOptions?: string[];
}>;
estimatedDuration: string;
complexity: 'simple' | 'moderate' | 'complex';
};
guidance: {
whatToExpect: string[];
potentialIssues: string[];
successIndicators: string[];
};
}
export declare class AIAssistantBridge {
private discovery;
private conversationContext;
constructor();
/**
* Primary method for AI models to get comprehensive assistance
*/
analyzeUserRequest(request: AIRequest): Promise<AIResponse>;
/**
* Simplified method for quick tool suggestions
*/
getQuickSuggestions(userInput: string): Promise<{
topTool: string;
parameters: Record<string, any>;
reasoning: string;
confidence: number;
}>;
/**
* Get workflow for common debugging patterns
*/
getDebugWorkflow(scenario: string): Promise<{
workflow: Array<{
step: number;
tool: string;
description: string;
parameters: Record<string, any>;
}>;
description: string;
}>;
/**
* Smart parameter extraction from user input
*/
extractParameters(userInput: string, toolName: string): Record<string, any>;
/**
* Get contextual examples for AI models
*/
getContextualExamples(userInput: string): Array<{
scenario: string;
toolSequence: string[];
explanation: string;
}>;
private analyzeUserIntent;
private generateRecommendations;
private createExecutionPlan;
private generateGuidance;
private extractUrl;
private extractSelector;
private extractSelectors;
private extractActions;
private extractGoals;
private getToolDescription;
private getDefaultParameters;
private getStepDescription;
private getExpectedResult;
private getFallbackOptions;
private estimateDuration;
}
//# sourceMappingURL=ai-assistant-bridge.d.ts.map