Validate scene_data before generating 3D code.
Runs 12 structural checks across 4 categories:
S — Structure (4 rules): scene_id, objects array, camera validity
O — Objects (5 rules): ids, positions, frustum bounds,
overlap, pending synthesis contracts
L — Lighting (2 rules): non-ambient light presence,
intensity range
A — Animation(2 rules): target_id resolution, config fields
Severity levels:
error → blocks codegen. Must fix before generate_r3f_code.
warn → does not block. Review before proceeding.
Returns is_valid: true only when zero "error" rules fail.
Returns next_step string with exact instruction for what to do next.
Call this tool AFTER generate_scene and BEFORE synthesize_geometry.
If is_valid is false, call edit_scene to fix errors, then
re-run validate_scene before proceeding to codegen.
Connector