editor_play_mode
Starts, stops, pauses, or resumes play mode in the live Flax Editor and waits until the requested state is reached, including heavy scene loads.
Instructions
Controls play mode in the live Flax Editor. Action must be start, stop, pause, or resume. Returns when the editor has reached the requested state (up to 30 seconds, so a heavy scene can load).
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": "editor_play_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Play mode action: start, stop, pause, or resume. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isPaused | Yes | ||
| isPlayMode | Yes | ||
| mainThreadId | Yes | ||
| requestedAction | Yes |