unity_undo_last
Revert the last verified MCP undo group, optionally by agent ID. Use force to include newer Unity-registered changes; no Redo step is created.
Instructions
Revert the latest verified MCP Undo group, optionally by agentId. Newer MCP/native groups require force:true. Only Unity-registered changes are covered; this revert creates no Redo step. Use unity_undo for normal Undo/Redo. Reads and execute-code are not targets.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "unity_undo_last"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| force | No | Also revert newer actions stacked on top of the target (Unity's linear undo). Default false. | |
| agentId | No | Optional: revert this agent's most recent action instead of the global newest (see unity_undo_history for ids). |