execute_and_render
Run source code to validate logic and render it as HTML, returning console output and a screenshot for visual verification.
Instructions
Execute source code via Codebox (Judge0) for logic validation and render it as HTML in a headless browser via Playwright, returning the console output and a screenshot. Use this to write full-stack UI code and instantly verify both its logic and visual appearance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language_id | Yes | Judge0-compatible language ID for Codebox execution. Use 63 for JavaScript (Node.js), 82 for HTML/CSS, etc. | |
| source_code | Yes | The raw HTML/CSS/JS source code to execute and render. | |
| viewport_width | No | Browser viewport width in pixels (default: 1280). | |
| viewport_height | No | Browser viewport height in pixels (default: 720). |