electron_audit_performance
Analyze Electron app code for seven performance anti-patterns and get fixes for eager loading, synchronous main calls, extra startup windows, heavy preload scripts, and unbundled dependencies.
Instructions
Analyze Electron app code for 7 official performance anti-patterns: eager module loading, synchronous main-process operations, excessive BrowserWindows at startup, unnecessary polyfills, CDN-loaded assets, heavy preload scripts, and unbundled dependencies. Returns specific fixes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "electron_audit_performance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mainCode | No | Main process code to analyze | |
| packageJson | No | package.json content to check for bundling and dependencies | |
| preloadCode | No | Preload script code to analyze | |
| rendererCode | No | Renderer process code to analyze |