ldraw_verify_step
Visually verify a single LDraw build step against a reference instruction image using a Vision LLM. Returns compact PASS JSON or detailed LDU discrepancy diagnosis with side-by-side PNG.
Instructions
Independently verify an LDraw step against a reference instruction image using a configured Vision LLM (Gemini or OpenAI-compatible). Returns compact JSON on PASS (zero image bloat) or LDU discrepancy diagnosis + side-by-side PNG on FAIL.
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": {
"stepNumber": "<stepNumber>",
"instructionImagePath": "<instructionImagePath>"
},
"name": "ldraw_verify_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yawDeg | No | Camera azimuth angle in degrees (default -35) | |
| ldrPath | No | Path to .ldr or .mpd file | |
| pitchDeg | No | Camera elevation angle in degrees (default 30) | |
| extraRules | No | Optional model-specific or set-specific inspection rules appended to the QA prompt | |
| ldrContent | No | Inline LDraw content (if ldrPath not provided) | |
| stepNumber | Yes | 1-based global step number to verify | |
| isolateSubmodels | No | Auto-hide main build when stepNumber is inside a submodel .ldr (default true) | |
| alwaysReturnImage | No | Attach side-by-side image even when status is PASS (default false to save context) | |
| instructionImagePath | Yes | Path to the reference LEGO instruction page PNG/JPG/WebP for this step |