Set Play Mode
unity_set_play_modeControl Unity Editor play mode: play, stop, pause, or unpause. Stop before structural scene edits because changes made while playing are lost.
Instructions
Enter/exit play mode: play|stop|pause|unpause. Scene edits made while playing are lost on stop — prefer stopped for structural changes.
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": {
"action": "<action>"
},
"name": "unity_set_play_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Play-mode transition to perform |