scan_system_components
Identify and analyze issues in Windows system components such as services, drivers, and uninstall entries to improve system stability and performance.
Instructions
Scan system components like services, drivers, and uninstall entries for issues
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/registry.ts:70-85 (handler)The main asynchronous handler function that runs a PowerShell script to scan system components (services, uninstall entries, file associations, drivers) for issues and returns formatted markdown results.export async function scanSystemComponents() { const result = await runPowerShellScript(REGISTRY_SCRIPT, { ScanServices: true, ScanUninstall: true, ScanFileAssoc: true, ScanDrivers: true, JsonOutput: true }) as AllTypes.RegistryDiagnosticResults; return { content: [ { type: 'text', text: `# System Component Scan ${result.SystemComponents && result.SystemComponents.length > 0 ? result.SystemComponents.map(c => `- **Type**: ${c.Type} **Name**: ${c.Name} **Issue**: ${c.Issue} **Details**: ${c.Details}`).join('\n\n') : 'No issues found with system components.'}`, }, ], }; }
- src/index.ts:145-152 (registration)Tool registration in the ListToolsRequestSchema handler. Defines the tool name, description, and input schema (no required parameters).{ name: 'scan_system_components', description: 'Scan system components like services, drivers, and uninstall entries for issues', inputSchema: { type: 'object', properties: {}, } },
- src/index.ts:553-554 (registration)Dispatch registration in the CallToolRequestSchema switch statement that maps tool calls to the scanSystemComponents handler.case 'scan_system_components': return await registry.scanSystemComponents();