file_commit
Promote staged sprite artifacts to a project path, rollback overwritten files, verify commit status, or discard staging workspaces.
Instructions
Promote staged artifacts to a project path, or rollback/verify.
Modes: commit_single — copy staged sprite (or artifact) to destination; writes .bak on overwrite rollback_single — restore destination from destination.bak verify_commit — check destination / .bak presence discard_workspace — delete staging workspace directory
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "<mode>"
},
"name": "file_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| artifact | No | ||
| destination | No | ||
| workspace_id | No |