Drawing: Finalize (validate + save + screenshot)
drawing_finalizeRun full validation and critique checks, then save the drawing, export a screenshot, and return the file path.
Instructions
Premium completion gate: runs BOTH the 8-step validator AND the premium critique focuses (iso128, layer_color, dim_overlap, untrimmed_corner, duplicate_entities, construction_left, gdt, plus the P&ID focuses pid_dangling_line, pid_duplicate_tag, pid_incompatible_connection, pid_untagged_instrument, pid_illegal_tag, pid_unconnected_equipment — silent on a sheet with no P&ID symbols, plus the mechanical focuses mech_missing_centreline, mech_unhatched_section, mech_view_misaligned, mech_duplicate_dimension, mech_thread_unrepresented, mech_bom_balloon_mismatch — silent on a sheet with no mechanical part, plus the architectural focuses arch_room_unlabelled, arch_wall_gap, arch_opening_clash — silent on a sheet with no ACADMCP_ARCH record, plus the topology focuses topo_dangling_endpoint, topo_near_miss, topo_interior_crossing — on network layers no P&ID or architectural focus reads, silent on every sheet this server draws), then saves to disk, exports a screenshot, and returns the DWG path.
Raises ToolError if any validator 'error' finding is present, or if critique reports an 'error' (or, with strict_critique=True, any critique issue). Critique warnings are surfaced under payload['critique'] without failing the gate by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expected | No | Optional contract: {'part_type', 'helix_angle', 'must_have_bore', 'must_have_keyway'} | |
| save_path | No | If given, save drawing here before validation. Pass full path including extension. | |
| screenshot_path | No | If given, write PNG screenshot to this path. | |
| strict_critique | No | If true, ANY critique issue (including warnings) fails the gate — the full premium discipline. Default false: only critique 'error' issues (e.g. leftover construction geometry) fail; warnings are surfaced in the payload. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||