Stage Code Action
stage-code-actionStage a selected C# code fix, refactoring, or prepared Fix All in the active transaction without writing source files, using the supplied action ID and matching snapshot.
Instructions
Revalidates and stages one selected Code Fix, refactoring or prepared Fix All operation in the active transaction without writing source files. Start the transaction before discovery or preparation, then supply the actionId from list-code-actions or the new prepared ID from prepare-fix-all with its matching expectedSnapshot. Prepared Fix All staging must match the exact prepared change set and document limit. Successful staging consumes the reference; use the returned snapshot and rediscover before selecting another action. Inspect transaction-preview, or transaction-review in approval-required mode, then transaction-commit to write files or transaction-rollback to discard staged work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actionId | Yes | The opaque action reference. | |
| workspace | No | Provide workspaceId, alias, path, or any combination. | |
| expectedSnapshot | Yes | Echo the snapshot returned with the data or transaction state used to construct this request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||