trace_symbol
Trace a symbol to find its constant value and hardcoded copies (magic numbers) across the project, enabling impact analysis before renaming or modifying code.
Instructions
Trace constant values + hardcoded copies (magic numbers). Function impact? impact_analysis. Rename? rename_symbol.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File rel to root where symbol is defined | |
| symbol | Yes | Symbol name to trace (e.g. "MAX_RETRY_COUNT") | |
| max_results | No | Max results per section (default: 30) | |
| workspace_dir | Yes | REQUIRED: project root (abs). reindex first if new. | |
| include_literals | No | Search for hardcoded literal values across the project (default: false, slower) |