get_usages
Find all usages of any class across imports, inheritance, instantiations, annotations, and aliases. Use before renaming to enumerate exactly what must change.
Instructions
Every place a class name is used — imports, inheritance,
instantiations, annotations, references — including usages through import
aliases (from pkg.db.models import X as XDB). Run this BEFORE a
rename to enumerate what must change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| class_name | Yes | ||
| include_tests | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| total | Yes | ||
| usages | Yes | ||
| aliases | Yes | ||
| truncated | Yes | ||
| class_name | Yes | ||
| files_affected | Yes |