editor_preview
Launches the current Construct 2 layout in the project's preview browser, starting the local preview server and optionally running debug mode.
Instructions
Run the current layout in the browser (Run layout / Debug layout). Construct 2 serves the preview at http://localhost:50000 and opens it in the project's preview browser.
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": "editor_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| debug | No | ||
| project | No |