validate_vex
Compile VEX code with HFS vcc to check validity, returning detailed diagnostics with line and column for syntax and compile errors.
Instructions
用真实 HFS/bin/vcc 编译 VEX(add-node-parameter-vex-tools,NO_UNDO)。
临时 ``.vfl`` + ``subprocess.run([vcc, ...], shell=False, timeout=10)``;
不调用 Python exec / eval / compile / execute_code / hou.hscript /
hou.vexLint / hou.text.vexSyntaxCheck;不执行编译产物。10 秒超时、
输出 64KB 上限、finally 清理源与产物。返回
``{valid, context, diagnostics: [{severity, line, column, message}]}``。
响应过 ``apply_response_cap``。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | Yes | ||
| code | Yes | ||
| context | No | cvex |