Rename File
rename_fileRename one or more items and automatically rewrite every file that imports them. Use item names WITHOUT extensions (e.g. {from:'components/OldName', to:'components/NewName'}). Preferred over delete+create — preserves content and fixes importers. Same type only. Pass several renames to apply them atomically in ONE pass; importer rewrites are resolved across the whole batch (including chains where one rename's target is another's source).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| renames | Yes | ||
| projectId | Yes | ||
| expected_version | No |