analyze_scopes
Identify variable scopes, detect naming conflicts, and analyze bindings to improve code quality. Use this tool for refactoring safety, dead code detection, and understanding closures in JavaScript/TypeScript.
Instructions
Analyze variable scopes, bindings, and potential naming conflicts. Advanced tool for code quality analysis.
Examples: • Variable shadowing detection: analyze_scopes() to find naming conflicts • Closure analysis: analyze_scopes() to understand variable capture • Refactoring safety: analyze_scopes() before variable renames • Code review: analyze_scopes() to identify scope-related issues • Learning aid: analyze_scopes({includeBuiltins: true}) to see all identifiers • Dead code detection: analyze_scopes() to find unused variables
Input Schema
Name | Required | Description | Default |
---|---|---|---|
includeBuiltins | No | Include built-in identifiers (default: false). Set true for comprehensive analysis including globals. |