resetConfig
Restore default configurations in AutoMobile by clearing all saved settings. Ideal for resetting mobile automation environments for clean test execution.
Instructions
Reset to default settings. This will clear all saved configuration.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server/configurationTools.ts:152-177 (registration)Registration of the 'resetConfig' MCP tool using ToolRegistry.register, including inline empty input schema z.object({}), description, and the handler function.ToolRegistry.register( "resetConfig", "Reset to default settings. This will clear all saved configuration.", z.object({}), async (): Promise<any> => { try { logger.info("Resetting MCP server configuration to defaults"); await ConfigurationManager.getInstance().resetServerConfig(); const result = { success: true, message: "MCP server configuration reset to defaults", }; return createJSONToolResponse(result); } catch (error) { logger.error("Failed to reset MCP server configuration:", error); const result = { success: false, message: `Failed to reset MCP server configuration: ${error}` }; return createJSONToolResponse(result); } } );
- src/server/configurationTools.ts:156-177 (handler)The handler function for the resetConfig tool, which logs the action, calls ConfigurationManager.resetServerConfig(), and returns a JSON response.async (): Promise<any> => { try { logger.info("Resetting MCP server configuration to defaults"); await ConfigurationManager.getInstance().resetServerConfig(); const result = { success: true, message: "MCP server configuration reset to defaults", }; return createJSONToolResponse(result); } catch (error) { logger.error("Failed to reset MCP server configuration:", error); const result = { success: false, message: `Failed to reset MCP server configuration: ${error}` }; return createJSONToolResponse(result); } } );
- Helper method in ConfigurationManager that performs the actual reset by clearing device and app configs maps and saving to disk.public async resetServerConfig(): Promise<void> { this.deviceSessionConfigs.clear(); this.appSourceConfigs.clear(); await this.saveToDisk(); }