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``。
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": {
"ctx": "<ctx>",
"code": "<code>"
},
"name": "validate_vex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | Yes | ||
| code | Yes | ||
| context | No | cvex |