plc_rename_variable
Atomically rename a PLC variable across declarations, ST, and LD by staging a guarded change after planning; rejects collisions, incomplete source, and reference capture.
Instructions
Recompute and stage a guarded variable rename atomically across declarations, ST and LD. Read plc_plan_rename first. Return the new variable ID; reject incomplete affected source, collisions or reference capture. No IDE build or external-consumer updates are implied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | ||
| variable_id | Yes | ||
| transaction_id | Yes | ||
| expected_revision | Yes | Project revision read before staging this change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||