{
  "openapi": "3.1.0",
  "info": {
    "title": "MIDAS CIVIL NX tools (MIDAS IT Europe)",
    "version": "0.8.1",
    "description": "The engines of the MIDAS IT Europe CIVIL NX plugins as API tools. Every write previews first: call without apply, show the user, then call again with apply: true and confirmPlanHash from the preview. undo_run reverses recorded runs. Calculation tools need no authentication; the others need the user's personal token from https://midasiteurope.com/llm (free account)."
  },
  "servers": [
    {
      "url": "https://midasiteurope.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "personalToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "The user's personal token (cnx_…) from https://midasiteurope.com/llm. It carries their MAPI key, encrypted."
      }
    }
  },
  "security": [
    {
      "personalToken": []
    },
    {}
  ],
  "paths": {
    "/api/v1/tools/analysis_diagnose": {
      "post": {
        "operationId": "analysis_diagnose",
        "summary": "Diagnose an analysis error or warning",
        "description": "Use when the analysis stops or warns (\"DOF may be singular\", \"error norm is infinite / NaN\", convergence not reached, run-time errors): pass the message text. It names the nodes and stages with free DOFs, the cause and the fix. For a general review of the model use model_health_check. Finds why a CI",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "maxLength": 20000,
                    "description": "The analysis message(s) as CIVIL NX printed them, e.g. 'WARNING : NODE NO. 123 RZ DOF MAY BE SINGULAR'. Several lines are fine."
                  },
                  "nodes": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "maxItems": 500,
                    "description": "Node numbers to examine (those in the message are taken automatically)."
                  },
                  "stage": {
                    "type": "string",
                    "description": "Construction stage to examine in detail (a stage named in the message is taken automatically). Default: all stages, five examples each."
                  },
                  "maxIds": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "default": 30,
                    "description": "Ids listed per finding."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/auto_structure_groups": {
      "post": {
        "operationId": "auto_structure_groups",
        "summary": "Auto Structure Groups",
        "description": "Use to group elements automatically by section, material or both. For groups by position or by construction-stage segment use stage_groups; for one group of ids you already know use civil_write_tables (GRUP). Creates one structure group per section, per material, or per section + material pair, with",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "enum": [
                      "section",
                      "section_material",
                      "material"
                    ],
                    "default": "section",
                    "description": "What one group holds: one section, one section + material pair, or one material."
                  },
                  "prefix": {
                    "type": "string",
                    "default": "SG_",
                    "description": "Put in front of every group name."
                  },
                  "includeNodes": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also put each group's element nodes in the group."
                  },
                  "minElements": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Skip groups with fewer elements than this (2 or more turns the filter on)."
                  },
                  "groups": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Write only these proposed groups (names from the preview); default all."
                  },
                  "existing": {
                    "enum": [
                      "skip",
                      "overwrite"
                    ],
                    "default": "skip",
                    "description": "A proposed name that already exists: leave that group alone, or add this run's members to it."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write to CIVIL NX. Only after the user approved the preview."
                  },
                  "confirmPlanHash": {
                    "type": "string",
                    "description": "planHash from the approved preview; the write is refused if the plan differs."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/b2p_survey": {
      "post": {
        "operationId": "b2p_survey",
        "summary": "Beam to Plate — which beams and sections can convert",
        "description": "Use before b2p_convert, to see which beams and sections can become a plate or solid mesh. To read a section's shape use section_read; for bar placement in a design check use ec2_describe_section or cs455_describe_section. Reads the model the way the Beam to Plate plugin (1.0.6) does and studies ever",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elementIds": {
                    "type": [
                      "string",
                      "array"
                    ],
                    "items": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "description": "Beam element ids: \"101-118, 205\" or [101, 102]."
                  },
                  "sections": {
                    "type": "array",
                    "items": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "description": "Every beam of these section ids."
                  },
                  "groups": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Every beam in these structure groups."
                  },
                  "useCivilSelection": {
                    "type": "boolean",
                    "description": "The elements selected in CIVIL NX right now."
                  },
                  "longSize": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "description": "Mesh size along the member (default 0.5 m), in the model's length unit (b2p_survey reports it)."
                  },
                  "transSize": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "description": "Mesh size across the section (default 0.25 m), in the model's length unit (b2p_survey reports it)."
                  },
                  "solidMode": {
                    "enum": [
                      "auto",
                      "plate",
                      "solid"
                    ],
                    "default": "auto",
                    "description": "auto = each section as the plugin suggests (solid for compact concrete, plates for thin walls); plate; solid."
                  },
                  "meshAs": {
                    "type": "object",
                    "additionalProperties": {
                      "enum": [
                        "plate",
                        "solid"
                      ]
                    },
                    "description": "Per-section override of the suggestion, {sectionId: 'plate'|'solid'}."
                  },
                  "solidPlates": {
                    "enum": [
                      "grid",
                      "outline",
                      "walls"
                    ],
                    "default": "grid",
                    "description": "How a solid (concrete) section meshed as PLATES is idealised: grid of plates over the real section; thin plates round the outline; one plate per wall."
                  },
                  "calibrate": {
                    "enum": [
                      "generic",
                      "all",
                      "off"
                    ],
                    "default": "generic",
                    "description": "Adjust plate thicknesses so the mesh has the section's own A, centroid, Iyy, Izz: where the shape is idealised (generic), every section, or never."
                  },
                  "acceptSections": {
                    "type": "array",
                    "items": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "description": "Section ids to convert although their check failed (the window's 'Convert anyway'). Only with the user's agreement."
                  },
                  "includeUncountedStiffeners": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also mesh stiffeners CIVIL NX leaves out of the section (the 'C' box unticked)."
                  },
                  "facets": {
                    "type": "integer",
                    "minimum": 8,
                    "maximum": 64,
                    "default": 24,
                    "description": "Facets per circle for round sections."
                  },
                  "model": {
                    "enum": [
                      "convert",
                      "slice"
                    ],
                    "default": "convert",
                    "description": "convert = plates/solids along the member; slice = a transverse slice of each section meshed in its own plane (beams kept, nothing linked or loaded)."
                  },
                  "sectionLimit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 200,
                    "default": 40,
                    "description": "How many section cards to return."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/b2p_convert": {
      "post": {
        "operationId": "b2p_convert",
        "summary": "Beam to Plate — convert beams into a plate/solid mesh",
        "description": "Use to replace beam elements with a plate or solid mesh of their real cross-section (a detailed local model). Not for building a new deck (skew_grillage) or changing spans (bridge_reshape). Converts beam elements into a plate (or solid) mesh of their cross-section with the Beam to Plate plugin's own",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elementIds": {
                    "type": [
                      "string",
                      "array"
                    ],
                    "items": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "description": "Beam element ids: \"101-118, 205\" or [101, 102]."
                  },
                  "sections": {
                    "type": "array",
                    "items": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "description": "Every beam of these section ids."
                  },
                  "groups": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Every beam in these structure groups."
                  },
                  "useCivilSelection": {
                    "type": "boolean",
                    "description": "The elements selected in CIVIL NX right now."
                  },
                  "model": {
                    "enum": [
                      "convert",
                      "slice"
                    ],
                    "default": "convert",
                    "description": "convert = plates/solids along the member; slice = a transverse slice of each section meshed in its own plane (beams kept, nothing linked or loaded)."
                  },
                  "longSize": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "description": "Mesh size along the member (default 0.5 m), in the model's length unit (b2p_survey reports it)."
                  },
                  "transSize": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "description": "Mesh size across the section (default 0.25 m), in the model's length unit (b2p_survey reports it)."
                  },
                  "solidMode": {
                    "enum": [
                      "auto",
                      "plate",
                      "solid"
                    ],
                    "default": "auto",
                    "description": "auto = each section as the plugin suggests (solid for compact concrete, plates for thin walls); plate; solid."
                  },
                  "meshAs": {
                    "type": "object",
                    "additionalProperties": {
                      "enum": [
                        "plate",
                        "solid"
                      ]
                    },
                    "description": "Per-section override of the suggestion, {sectionId: 'plate'|'solid'}."
                  },
                  "solidPlates": {
                    "enum": [
                      "grid",
                      "outline",
                      "walls"
                    ],
                    "default": "grid",
                    "description": "How a solid (concrete) section meshed as PLATES is idealised: grid of plates over the real section; thin plates round the outline; one plate per wall."
                  },
                  "calibrate": {
                    "enum": [
                      "generic",
                      "all",
                      "off"
                    ],
                    "default": "generic",
                    "description": "Adjust plate thicknesses so the mesh has the section's own A, centroid, Iyy, Izz: where the shape is idealised (generic), every section, or never."
                  },
                  "deckPlates": {
                    "enum": [
                      "follow",
                      "straight"
                    ],
                    "default": "follow",
                    "description": "Deck plates (plugin 1.0.6): follow = along the slab's mid-thickness, as before; straight = every top-slab node on one line under the top surface, each thicker plate (tapering cantilever, haunches) offset to its own concrete through the plate offset, so area, centroid and second moments are kept; webs run on to the deck line."
                  },
                  "acceptSections": {
                    "type": "array",
                    "items": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "description": "Section ids to convert although their check failed (the window's 'Convert anyway'). Only with the user's agreement."
                  },
                  "materials": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "additionalProperties": {
                        "type": [
                          "integer",
                          "string",
                          "null"
                        ]
                      }
                    },
                    "description": "Material per composite part, {sectionId: {part: materialId}} (b2p_survey lists each section's materialSlots); default: from the CS data or the beam's own."
                  },
                  "includeUncountedStiffeners": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also mesh stiffeners CIVIL NX leaves out of the section (the 'C' box unticked)."
                  },
                  "diaphragms": {
                    "type": "boolean",
                    "default": true,
                    "description": "Fill compact diaphragm segments of a box run with plates (plate mode)."
                  },
                  "transverseStiffeners": {
                    "type": "object",
                    "description": "Add transverse web stiffeners (CIVIL NX holds none): h outstand, b thickness, spacing along the girder, side, one at each end.",
                    "properties": {
                      "h": {
                        "type": "number"
                      },
                      "b": {
                        "type": "number"
                      },
                      "spacing": {
                        "type": "number"
                      },
                      "side": {
                        "enum": [
                          "both",
                          "in",
                          "out"
                        ]
                      },
                      "ends": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "sliceWidth": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "description": "model 'slice': the slice width = plate thickness (default 1 m), in the model's length unit (b2p_survey reports it)."
                  },
                  "sliceAtPct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "default": 50,
                    "description": "model 'slice': where along each member, %."
                  },
                  "facets": {
                    "type": "integer",
                    "minimum": 8,
                    "maximum": 64,
                    "default": 24,
                    "description": "Facets per circle for round sections."
                  },
                  "convertLoads": {
                    "type": "boolean",
                    "default": true,
                    "description": "Move beam loads, nodal loads on the beams' nodes and element temperatures onto the plates."
                  },
                  "loadAt": {
                    "enum": [
                      "exact",
                      "centreline",
                      "spread",
                      "deck"
                    ],
                    "default": "exact",
                    "description": "Where a converted load lands: exactly where it acts; on the section centreline; spread over the section; spread over the deck top."
                  },
                  "loadFloor": {
                    "type": "number",
                    "minimum": 0,
                    "description": "Ignore nodal loads under this, in the model's force unit (default 0.01 kN); totals are kept."
                  },
                  "virtualBeams": {
                    "type": "boolean",
                    "default": true,
                    "description": "One virtual beam per row of plates, so results read as beam forces."
                  },
                  "joinDecks": {
                    "type": "boolean",
                    "default": true,
                    "description": "Join neighbouring girders' deck slabs."
                  },
                  "linkAll": {
                    "type": "boolean",
                    "default": false,
                    "description": "Rigid-link every member end, not only where something else attaches."
                  },
                  "mergeTolerance": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "description": "Node merge tolerance (default 0.0001 m), in the model's length unit (b2p_survey reports it)."
                  },
                  "thicknessGroupingPct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 20,
                    "default": 0.5,
                    "description": "Plates within this % share one thickness record."
                  },
                  "groupName": {
                    "type": "string",
                    "maxLength": 16,
                    "default": "B2P mesh",
                    "description": "Structure group for the whole mesh ('' for none)."
                  },
                  "boundaryGroup": {
                    "type": "string",
                    "maxLength": 16,
                    "default": "B2P links",
                    "description": "Boundary group for the rigid links (one per stage in a staged model)."
                  },
                  "reuseExistingNodes": {
                    "type": "boolean",
                    "default": true,
                    "description": "Use a model node already at a mesh point instead of a new one."
                  },
                  "deleteSourceBeams": {
                    "type": "boolean",
                    "default": true,
                    "description": "DESTRUCTIVE: delete the converted beams after the mesh is written and read back (b2p_undo puts them back). Never deleted for a slice."
                  },
                  "deleteOrphanNodes": {
                    "type": "boolean",
                    "default": true,
                    "description": "Remove the beams' own nodes that nothing else uses once they are deleted."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write to CIVIL NX. Only after the user approved the preview."
                  },
                  "confirmPlanHash": {
                    "type": "string",
                    "description": "planHash from the approved preview; the write is refused if the plan differs."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/bridge_reshape_read": {
      "post": {
        "operationId": "bridge_reshape_read",
        "summary": "Bridge Reshaper — read the bridge",
        "description": "Use before bridge_reshape, to see the existing bridge's spans, skews, alignment and levels. Read-only. Reads the open model the way the Bridge Reshaper plugin (1.0.6) does: the deck (straight, in straight pieces kinked at half-joints or piers, or curved; beam girders, girders meshed as plates, or a ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "axis": {
                    "enum": [
                      "x",
                      "y"
                    ],
                    "description": "Spans run along global X or Y. Default: X, or Y when no deck is found along X (the read says which it used)."
                  },
                  "deckGroups": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Structure groups that ARE the deck, when the automatic choice is wrong. Default: found from the model."
                  },
                  "picture": {
                    "type": "boolean",
                    "default": true,
                    "description": "Return a plan drawing (PNG) to look at."
                  },
                  "supports": {
                    "type": "array",
                    "minItems": 2,
                    "items": {
                      "type": "object",
                      "properties": {
                        "ch": {
                          "type": "number"
                        },
                        "skew": {
                          "type": "number",
                          "default": 0
                        }
                      },
                      "required": [
                        "ch"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Where the supports are, chosen instead of the ones found — when the plugin finds none (bearings it cannot read) or finds every construction-stage support defined. Each: ch = chainage along the deck from where its girders start (model unit), skew in degrees from square. At least the two ends. bridge_reshape_read reports the girders' extent and the supports it found."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/bridge_reshape": {
      "post": {
        "operationId": "bridge_reshape",
        "summary": "Bridge Reshaper — change spans, skews, alignment and levels",
        "description": "Use to change the spans, support skews, alignment or deck levels of a bridge that is already in the model. For a new deck use skew_grillage; for geometry from a drawing use dxf_import. Changes the geometry of the bridge in the open model in place, with the Bridge Reshaper plugin's own engine (1.0.6)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "spans": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "description": "New length of every span, Abutment A first (model unit). Default: as modelled."
                  },
                  "addToEverySpan": {
                    "type": "number",
                    "description": "Instead of spans: add this to every span."
                  },
                  "skews": {
                    "type": "array",
                    "items": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "description": "New skew of every support in degrees from square, Abutment A first; null keeps one. Default: as modelled."
                  },
                  "skewAll": {
                    "type": "number",
                    "description": "Instead of skews: the same skew at every support."
                  },
                  "crossMembers": {
                    "enum": [
                      "parallel",
                      "square"
                    ],
                    "default": "parallel"
                  },
                  "substructure": {
                    "enum": [
                      "follow",
                      "rigid"
                    ],
                    "default": "follow",
                    "description": "follow: piers and abutments shear with their support's skew; rigid: they keep their shape and turn with it."
                  },
                  "alignment": {
                    "type": "object",
                    "description": "A new horizontal alignment (default: as modelled - a curved deck keeps its curve). straight: a straight line through the deck start, at the deck's start heading or headingDeg (straightens a curved deck). segments: straights, arcs and clothoid transitions from the deck start, along the deck. points: a curve fitted to X,Y points (model coordinates unless keepCoordinates: false): spline through them, or a least-squares arc or polynomial. landxml / dxf: the file's text. The deck line that follows it is the centreline unless followLine names a girder/edge line (index from bridge_reshape_read).",
                    "properties": {
                      "type": {
                        "enum": [
                          "none",
                          "straight",
                          "segments",
                          "points",
                          "landxml",
                          "dxf"
                        ]
                      },
                      "headingDeg": {
                        "type": "number",
                        "description": "straight: plan direction in degrees from global X (anticlockwise)."
                      },
                      "segments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "enum": [
                                "line",
                                "arc",
                                "spiral"
                              ]
                            },
                            "length": {
                              "type": "number"
                            },
                            "radius": {
                              "type": "number",
                              "description": "arc: radius; spiral: radius at its start (omit = from straight)."
                            },
                            "radiusEnd": {
                              "type": "number",
                              "description": "spiral: radius at its end (omit = to straight)."
                            },
                            "turn": {
                              "enum": [
                                "L",
                                "R"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "length"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "points": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "description": "[[x, y], ...] in the model's unit."
                      },
                      "fit": {
                        "enum": [
                          "spline",
                          "arc",
                          "poly2",
                          "poly3",
                          "poly4",
                          "poly5"
                        ],
                        "default": "spline"
                      },
                      "text": {
                        "type": "string",
                        "description": "landxml / dxf: the file's contents."
                      },
                      "index": {
                        "type": "integer",
                        "minimum": 0,
                        "description": "landxml / dxf: which alignment in the file (default 0)."
                      },
                      "keepCoordinates": {
                        "type": "boolean",
                        "default": true,
                        "description": "points / landxml / dxf: use the coordinates as given (true) or place the curve's start at the deck start along the deck (false)."
                      },
                      "chStart": {
                        "type": "number",
                        "description": "Chainage along the alignment where the deck starts. Default: just far enough that a skewed deck start lies on it."
                      },
                      "followLine": {
                        "anyOf": [
                          {
                            "const": "centre"
                          },
                          {
                            "type": "integer",
                            "minimum": 0
                          }
                        ],
                        "description": "\"centre\" (default) or a girder/edge line index."
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  "levels": {
                    "type": "object",
                    "description": "New deck levels (default: as modelled). Each node keeps its depth below the deck surface; piers and abutments are stretched vertically to meet the deck (their lowest node stays).",
                    "properties": {
                      "profile": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "asis",
                              "flat",
                              "grades"
                            ]
                          },
                          "z0": {
                            "type": "number",
                            "description": "Level at Abutment A (flat: the level everywhere). Default: as modelled."
                          },
                          "g0": {
                            "type": "number",
                            "description": "grades: grade from Abutment A, in %. Default: the deck's average grade now."
                          },
                          "pvis": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "ch": {
                                  "type": "number"
                                },
                                "g": {
                                  "type": "number",
                                  "description": "grade after it, %"
                                },
                                "L": {
                                  "type": "number",
                                  "description": "parabolic curve length (0 = sharp)"
                                }
                              },
                              "required": [
                                "ch",
                                "g"
                              ],
                              "additionalProperties": false
                            },
                            "description": "grades: intersection points by NEW chainage from Abutment A."
                          }
                        },
                        "additionalProperties": false
                      },
                      "cross": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "asis",
                              "flat",
                              "oneway",
                              "crown"
                            ]
                          },
                          "pct": {
                            "type": "number",
                            "description": "oneway: rising to the left, % (negative falls); crown: falling each way from the centreline, %."
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "layout": {
                    "type": "object",
                    "description": "Deck in straight pieces only: straight (lay it straight) or turns at joints, piers or chainages, each with its angle in degrees (positive turns left).",
                    "properties": {
                      "kind": {
                        "enum": [
                          "asis",
                          "straight",
                          "turns"
                        ]
                      },
                      "turns": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "at": {
                              "enum": [
                                "joint",
                                "pier",
                                "ch"
                              ]
                            },
                            "index": {
                              "type": "integer",
                              "description": "joint: 1-based joint"
                            },
                            "k": {
                              "type": "integer",
                              "description": "pier: support index"
                            },
                            "ch": {
                              "type": "number"
                            },
                            "angle": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "at",
                            "angle"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "square": {
                        "type": "boolean",
                        "default": true,
                        "description": "Cross members follow the supports (square grid when all supports are square)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "axis": {
                    "enum": [
                      "x",
                      "y"
                    ],
                    "description": "Spans run along global X or Y. Default: X, or Y when no deck is found along X (the read says which it used)."
                  },
                  "deckGroups": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Structure groups that ARE the deck, when the automatic choice is wrong. Default: found from the model."
                  },
                  "picture": {
                    "type": "boolean",
                    "default": true,
                    "description": "Return a plan drawing (PNG) to look at."
                  },
                  "supports": {
                    "type": "array",
                    "minItems": 2,
                    "items": {
                      "type": "object",
                      "properties": {
                        "ch": {
                          "type": "number"
                        },
                        "skew": {
                          "type": "number",
                          "default": 0
                        }
                      },
                      "required": [
                        "ch"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Where the supports are, chosen instead of the ones found — when the plugin finds none (bearings it cannot read) or finds every construction-stage support defined. Each: ch = chainage along the deck from where its girders start (model unit), skew in degrees from square. At least the two ends. bridge_reshape_read reports the girders' extent and the supports it found."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write to CIVIL NX. Only after the user approved the preview (and saved a copy of the model)."
                  },
                  "confirmPlanHash": {
                    "type": "string",
                    "description": "planHash from the approved preview; the write is refused if the plan differs."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/bridge_thermal_calc": {
      "post": {
        "operationId": "bridge_thermal_calc",
        "summary": "Bridge thermal actions (EN 1991-1-5 / CS 454 / BS 5400-2)",
        "description": "Use for code temperature values of a bridge (EN 1991-1-5, CS 454, BS 5400-2) without touching the model. To write them use bridge_thermal_apply; for a temperature you already know use civil_loads_supports (temperature). Calculates bridge temperature actions with the Bridge Thermal Loads plugin's own",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "enum": [
                      "EN1991-1-5_2003_UKNA",
                      "EN1991-1-5_2003_CEN",
                      "CS454",
                      "BS5400-2_2006",
                      "BS5400-2_1978"
                    ],
                    "default": "EN1991-1-5_2003_UKNA",
                    "description": "EN 1991-1-5 with the UK NA (default) or the CEN values, CS 454, BS 5400-2:2006 or the legacy BS 5400-2:1978."
                  },
                  "site": {
                    "type": "object",
                    "description": "For the uniform component (and bearing / combined cases). Tmin / Tmax are the shade air temperatures read from the code's maps by the user (the maps are not built in), °C.",
                    "properties": {
                      "Tmin": {
                        "type": "number"
                      },
                      "Tmax": {
                        "type": "number"
                      },
                      "altitude": {
                        "type": "number",
                        "description": "m above sea level (default 0)."
                      },
                      "returnYears": {
                        "type": "number",
                        "description": "Default: the code's basis (50 for EN)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "T0": {
                    "type": "object",
                    "description": "Initial (restraint) temperature, °C. Default: the code's value where it gives one.",
                    "properties": {
                      "expansion": {
                        "type": "number"
                      },
                      "contraction": {
                        "type": "number"
                      },
                      "knownAtBearingSetting": {
                        "type": "boolean",
                        "default": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "surfacing": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": [
                          "unsurfaced",
                          "waterproofed",
                          "mm",
                          "ballast"
                        ],
                        "default": "mm"
                      },
                      "mm": {
                        "type": "number",
                        "default": 100,
                        "description": "Surfacing depth, mm (mode mm)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "method": {
                    "enum": [
                      "approach2",
                      "approach1"
                    ],
                    "description": "Temperature difference: approach2 = non-linear profile (code profiles), approach1 = linear. Default: the code's (the CEN text leaves it to the annex — then it must be given)."
                  },
                  "procedure": {
                    "enum": [
                      "normal",
                      "simplified"
                    ],
                    "default": "normal",
                    "description": "Composite decks under EN: normal or simplified procedure."
                  },
                  "loads": {
                    "type": "object",
                    "description": "Load types to generate (each gives two cases). Default: uniform and difference.",
                    "properties": {
                      "uniform": {
                        "type": "boolean",
                        "default": true
                      },
                      "difference": {
                        "type": "boolean",
                        "default": true
                      },
                      "bearing": {
                        "type": "boolean",
                        "default": false,
                        "description": "Bearing / joint ranges (USER cases, not for structural combinations)."
                      },
                      "combined": {
                        "type": "boolean",
                        "default": false,
                        "description": "CS 454 / BS 5400-2:2006 combined X − Y distributions (EC1T_Comb_*, used INSTEAD of Uniform + Difference)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "modularRatio": {
                    "type": "number",
                    "description": "Es/Ec, needed for combined cases on composite sections (LR 765 effective temperature)."
                  },
                  "simultaneity": {
                    "type": "boolean",
                    "default": true,
                    "description": "Report the simultaneity combinations (ω factors)."
                  },
                  "elementDifferences": {
                    "type": "boolean",
                    "default": false
                  },
                  "trussReduction": {
                    "type": "boolean",
                    "default": false,
                    "description": "Steel truss / plate girder reduction where the code gives one."
                  },
                  "sections": {
                    "type": "array",
                    "description": "Deck sections. For one section the shorthand kind / h / D may be used instead.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "kind": {
                          "enum": [
                            "steel_box",
                            "steel_plate",
                            "composite",
                            "concrete_slab",
                            "concrete_beam",
                            "concrete_box"
                          ],
                          "description": "Deck type: steel_box, steel_plate (truss or plate girders), composite (concrete deck on steel girders), concrete_slab, concrete_beam, concrete_box."
                        },
                        "h": {
                          "type": "number",
                          "description": "Depth for the profile, m: the slab depth for composite decks, the overall depth otherwise."
                        },
                        "D": {
                          "type": "number",
                          "description": "Overall depth, m."
                        },
                        "parts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "z1": {
                                "type": "number",
                                "description": "Top of the part, m below the top of the deck."
                              },
                              "z2": {
                                "type": "number",
                                "description": "Bottom of the part, m."
                              },
                              "b": {
                                "type": "number",
                                "description": "Width, m."
                              },
                              "mat": {
                                "enum": [
                                  "steel",
                                  "concrete"
                                ]
                              },
                              "name": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "z1",
                              "z2",
                              "b"
                            ],
                            "additionalProperties": false
                          },
                          "description": "Width against depth, for the band forces and combined cases."
                        },
                        "isPlate": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "kind": {
                    "enum": [
                      "steel_box",
                      "steel_plate",
                      "composite",
                      "concrete_slab",
                      "concrete_beam",
                      "concrete_box"
                    ],
                    "description": "Deck type: steel_box, steel_plate (truss or plate girders), composite (concrete deck on steel girders), concrete_slab, concrete_beam, concrete_box."
                  },
                  "h": {
                    "type": "number"
                  },
                  "D": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/bridge_thermal_read": {
      "post": {
        "operationId": "bridge_thermal_read",
        "summary": "Read the deck sections for thermal loads",
        "description": "Use before bridge_thermal_apply, to find the deck and its sections. Read-only. Reads the open model the way the Bridge Thermal Loads plugin does: the deck from a structure group, element list or the CIVIL NX selection, grouped into sections (beams by section, plates by thickness), each with the prop",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "group": {
                    "type": "string",
                    "description": "Structure group holding the deck elements."
                  },
                  "elementIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "useSelection": {
                    "type": "boolean",
                    "description": "Use the elements selected in CIVIL NX (when neither group nor elementIds is given)."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/bridge_thermal_apply": {
      "post": {
        "operationId": "bridge_thermal_apply",
        "summary": "Write bridge temperature loads (Bridge Thermal Loads)",
        "description": "Use to write code-derived bridge temperature load cases (EC1T_…) on the deck. For a single temperature value you already have, civil_loads_supports (temperature) is simpler. Calculates the temperature actions for the deck and writes them with the Bridge Thermal Loads plugin's writer: EC1T_Uniform_Ex",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "group": {
                    "type": "string",
                    "description": "Structure group holding the deck elements."
                  },
                  "elementIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "useSelection": {
                    "type": "boolean",
                    "description": "Use the elements selected in CIVIL NX (when neither group nor elementIds is given)."
                  },
                  "sectionOverrides": {
                    "type": "array",
                    "description": "Corrections to the sections bridge_thermal_read reports (by key or name).",
                    "items": {
                      "type": "object",
                      "properties": {
                        "section": {
                          "type": "string"
                        },
                        "kind": {
                          "enum": [
                            "steel_box",
                            "steel_plate",
                            "composite",
                            "concrete_slab",
                            "concrete_beam",
                            "concrete_box"
                          ],
                          "description": "Deck type: steel_box, steel_plate (truss or plate girders), composite (concrete deck on steel girders), concrete_slab, concrete_beam, concrete_box."
                        },
                        "h": {
                          "type": "number"
                        },
                        "D": {
                          "type": "number"
                        },
                        "parts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "z1": {
                                "type": "number",
                                "description": "Top of the part, m below the top of the deck."
                              },
                              "z2": {
                                "type": "number",
                                "description": "Bottom of the part, m."
                              },
                              "b": {
                                "type": "number",
                                "description": "Width, m."
                              },
                              "mat": {
                                "enum": [
                                  "steel",
                                  "concrete"
                                ]
                              },
                              "name": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "z1",
                              "z2",
                              "b"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "section"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "code": {
                    "enum": [
                      "EN1991-1-5_2003_UKNA",
                      "EN1991-1-5_2003_CEN",
                      "CS454",
                      "BS5400-2_2006",
                      "BS5400-2_1978"
                    ],
                    "default": "EN1991-1-5_2003_UKNA",
                    "description": "EN 1991-1-5 with the UK NA (default) or the CEN values, CS 454, BS 5400-2:2006 or the legacy BS 5400-2:1978."
                  },
                  "site": {
                    "type": "object",
                    "description": "For the uniform component (and bearing / combined cases). Tmin / Tmax are the shade air temperatures read from the code's maps by the user (the maps are not built in), °C.",
                    "properties": {
                      "Tmin": {
                        "type": "number"
                      },
                      "Tmax": {
                        "type": "number"
                      },
                      "altitude": {
                        "type": "number",
                        "description": "m above sea level (default 0)."
                      },
                      "returnYears": {
                        "type": "number",
                        "description": "Default: the code's basis (50 for EN)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "T0": {
                    "type": "object",
                    "description": "Initial (restraint) temperature, °C. Default: the code's value where it gives one.",
                    "properties": {
                      "expansion": {
                        "type": "number"
                      },
                      "contraction": {
                        "type": "number"
                      },
                      "knownAtBearingSetting": {
                        "type": "boolean",
                        "default": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "surfacing": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": [
                          "unsurfaced",
                          "waterproofed",
                          "mm",
                          "ballast"
                        ],
                        "default": "mm"
                      },
                      "mm": {
                        "type": "number",
                        "default": 100,
                        "description": "Surfacing depth, mm (mode mm)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "method": {
                    "enum": [
                      "approach2",
                      "approach1"
                    ],
                    "description": "Temperature difference: approach2 = non-linear profile (code profiles), approach1 = linear. Default: the code's (the CEN text leaves it to the annex — then it must be given)."
                  },
                  "procedure": {
                    "enum": [
                      "normal",
                      "simplified"
                    ],
                    "default": "normal",
                    "description": "Composite decks under EN: normal or simplified procedure."
                  },
                  "loads": {
                    "type": "object",
                    "description": "Load types to generate (each gives two cases). Default: uniform and difference.",
                    "properties": {
                      "uniform": {
                        "type": "boolean",
                        "default": true
                      },
                      "difference": {
                        "type": "boolean",
                        "default": true
                      },
                      "bearing": {
                        "type": "boolean",
                        "default": false,
                        "description": "Bearing / joint ranges (USER cases, not for structural combinations)."
                      },
                      "combined": {
                        "type": "boolean",
                        "default": false,
                        "description": "CS 454 / BS 5400-2:2006 combined X − Y distributions (EC1T_Comb_*, used INSTEAD of Uniform + Difference)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "modularRatio": {
                    "type": "number",
                    "description": "Es/Ec, needed for combined cases on composite sections (LR 765 effective temperature)."
                  },
                  "simultaneity": {
                    "type": "boolean",
                    "default": true,
                    "description": "Report the simultaneity combinations (ω factors)."
                  },
                  "elementDifferences": {
                    "type": "boolean",
                    "default": false
                  },
                  "trussReduction": {
                    "type": "boolean",
                    "default": false,
                    "description": "Steel truss / plate girder reduction where the code gives one."
                  },
                  "material": {
                    "type": "object",
                    "description": "Band material: element (default, the model's E and α) or input (the code's α with E given here, in the model's force/length² units).",
                    "properties": {
                      "mode": {
                        "enum": [
                          "element",
                          "input"
                        ],
                        "default": "element"
                      },
                      "Esteel": {
                        "type": "number"
                      },
                      "Econcrete": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  "wholeModelUniform": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write the uniform component as a system temperature on the whole model (all sections must be one deck type)."
                  },
                  "suffix": {
                    "type": "string",
                    "description": "Write a named set: every case name gets this suffix (letters, digits, _ or -, at most 12), e.g. _2."
                  },
                  "overwrite": {
                    "type": "boolean",
                    "default": false,
                    "description": "Replace EC1T_ cases of the same names already in the model. Only with the user's agreement."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/bridge_thermal_remove": {
      "post": {
        "operationId": "bridge_thermal_remove",
        "summary": "Remove the thermal loads",
        "description": "Use to delete every EC1T_ thermal load case, whichever run or window wrote it. To reverse one run only use bridge_thermal_undo; for other loads use civil_remove_loads. Removes what the Bridge Thermal Loads plugin writes: every load case whose name starts with EC1T_ (also named sets and ones the plug",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apply": {
                    "type": "boolean",
                    "default": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/concurrent_forces_setup": {
      "post": {
        "operationId": "concurrent_forces_setup",
        "summary": "Concurrent forces: what the model offers",
        "description": "Concurrent forces, step 1: use before concurrent_forces to list the items, effects and load states the model offers. Read-only. Concurrent Force Reporter, step 1. Reads the open CIVIL NX model the way the plugin does when it connects and lists what a concurrent-forces run can use: every load case an",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "search": {
                    "type": "string",
                    "description": "Only load cases / combinations whose name contains this (case-insensitive)."
                  },
                  "includeConstituents": {
                    "type": "boolean",
                    "default": false,
                    "description": "List each combination's children (name, factor, analysis kind)."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000,
                    "default": 300,
                    "description": "At most this many load case entries."
                  },
                  "units": {
                    "type": "object",
                    "description": "Units to report in (MIDAS converts). Default: the model's own.",
                    "properties": {
                      "force": {
                        "type": "string",
                        "enum": [
                          "N",
                          "kN",
                          "kgf",
                          "tonf",
                          "lbf",
                          "kips"
                        ]
                      },
                      "length": {
                        "type": "string",
                        "enum": [
                          "mm",
                          "cm",
                          "m",
                          "in",
                          "ft"
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/concurrent_forces": {
      "post": {
        "operationId": "concurrent_forces",
        "summary": "Concurrent forces at the governing state",
        "description": "Use for the forces that act together with the extreme of ONE effect (e.g. My max with its concurrent N and Vz). For which load cases make up a combination use combination_contributions; for plain result rows use preview_result_table. Concurrent Force Reporter, step 2. For a set of items (elements, n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "type": "string",
                    "description": "Items in set syntax, e.g. \"101to148, N9001to9006, EL12\"."
                  },
                  "groups": {
                    "type": "array",
                    "description": "Structure groups to add to the set.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "include": {
                          "type": "string",
                          "enum": [
                            "elements",
                            "nodes",
                            "both",
                            "links",
                            "all"
                          ],
                          "default": "elements",
                          "description": "elements, nodes, both, links (general/elastic links with an end on the group's nodes) or all."
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "keyItem": {
                    "type": "string",
                    "description": "The item whose extreme picks the state, e.g. \"101\", \"N9001\", \"EL12\". Must be in the set."
                  },
                  "keyEffect": {
                    "type": "string",
                    "description": "The governing component: a keyEffect id from setup (e.g. BEAM:Moment-y, REACTION:FZ), or just the component (Moment-y, FZ, Axial) for the key item's own table. Default: the first component of the key item's table."
                  },
                  "criterion": {
                    "type": "string",
                    "enum": [
                      "max",
                      "min",
                      "absmax"
                    ],
                    "default": "max"
                  },
                  "loadCases": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "minItems": 1,
                    "description": "Load case / combination names to search (available ones from setup)."
                  },
                  "stageSteps": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Stage step tokens (from setup) when construction-stage cases are selected. Default: every stage step."
                  },
                  "position": {
                    "type": "string",
                    "enum": [
                      "I",
                      "J",
                      "both",
                      "all"
                    ],
                    "default": "all",
                    "description": "Which output points to SHOW for I/J members; the governing state is always searched over all of them."
                  },
                  "units": {
                    "type": "object",
                    "description": "Units to report in (MIDAS converts). Default: the model's own.",
                    "properties": {
                      "force": {
                        "type": "string",
                        "enum": [
                          "N",
                          "kN",
                          "kgf",
                          "tonf",
                          "lbf",
                          "kips"
                        ]
                      },
                      "length": {
                        "type": "string",
                        "enum": [
                          "mm",
                          "cm",
                          "m",
                          "in",
                          "ft"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "maxRows": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2000,
                    "default": 200,
                    "description": "At most this many table rows inline."
                  },
                  "csv": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also store the full table (header, notes, every row) as a CSV file and return its link."
                  }
                },
                "required": [
                  "keyItem",
                  "loadCases"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/concurrent_forces_probe": {
      "post": {
        "operationId": "concurrent_forces_probe",
        "summary": "Concurrent forces: probe the result tables",
        "description": "Use only to diagnose why concurrent_forces finds no results for a source; not a result reader. Concurrent Force Reporter diagnostics. For each result source the plugin reads (beam, truss, plate, general link, elastic link, node reaction, node displacement), asks this CIVIL NX build with one item of ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "units": {
                    "type": "object",
                    "description": "Units to report in (MIDAS converts). Default: the model's own.",
                    "properties": {
                      "force": {
                        "type": "string",
                        "enum": [
                          "N",
                          "kN",
                          "kgf",
                          "tonf",
                          "lbf",
                          "kips"
                        ]
                      },
                      "length": {
                        "type": "string",
                        "enum": [
                          "mm",
                          "cm",
                          "m",
                          "in",
                          "ft"
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/cs454_lane_layout": {
      "post": {
        "operationId": "cs454_lane_layout",
        "summary": "CS 454 notional lanes for a carriageway",
        "description": "Use to lay out CS 454 notional lanes on a carriageway width, with no model. For EN 1991-2 lanes use ec_lane_layout; to write lanes and vehicles use cs454_moving_loads. Lays out CS 454 notional lanes, remaining areas, footways and strips on a carriageway cross-section with the CS454 - Moving Load Wiz",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "section": {
                    "type": "object",
                    "description": "Cross-section, m: width (carriageway), kerbOffset, markedLanes, hardShoulder, leftVerge, rightVerge, footways (leftFootway, rightFootway), central reserve.",
                    "additionalProperties": true
                  },
                  "lanes": {
                    "type": "object",
                    "description": "Lane options. picked — Loadings to lay out: M1S (ALL model 1 single), M1C (convoy), M2 (ALL model 2), FW (footway), ACC (accidental), SV / HB (routes alone), SVM1S / SVM1C / SVM2 (SV with ALL), HBM1S / HBM1C / HBM2 (HB with ALL). Also level, packing, svVehicle, svPlacement, svStraddle, actualLanes, prefix…",
                    "additionalProperties": true,
                    "properties": {
                      "picked": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "level": {
                        "type": "string"
                      }
                    }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/cs454_moving_loads_read": {
      "post": {
        "operationId": "cs454_moving_loads_read",
        "summary": "Read the model for CS 454 moving loads",
        "description": "Use before cs454_moving_loads. For Eurocode traffic use ec_moving_loads_read. Read-only: changes nothing in the model. Call it before cs454_moving_loads to see what the CS454 - Moving Load Wizard would do. Returns: existing (the lanes, vehicles, cases and groups already in the model, each marked if ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "configFile": {
                    "type": [
                      "string",
                      "object"
                    ],
                    "description": "The plugin's own Export JSON settings file (or its \"config\"), as text or object: starts from those settings instead of the defaults. The deck is then not re-read unless readDeck: true."
                  },
                  "laneSource": {
                    "enum": [
                      "NEW",
                      "EXISTING"
                    ],
                    "default": "NEW",
                    "description": "NEW shows the lanes the settings would lay out; EXISTING shows the lanes already in the model."
                  },
                  "laneKind": {
                    "enum": [
                      "LINE",
                      "SURFACE"
                    ],
                    "description": "Default: what the model suggests (beams -> LINE, plates -> SURFACE)."
                  },
                  "readDeck": {
                    "type": "boolean",
                    "description": "Read the reference line / alignment, width, kerb offset, cross beams and skew from the deck (default on, off over a loaded settings file)."
                  },
                  "deckFilter": {
                    "type": "object",
                    "description": "Read the deck only from these members, as the plugin's Show only: group (structure group name), section (\"S:<id>\" beam section or \"T:<id>\" plate thickness), zMin / zMax (level band, m).",
                    "additionalProperties": true,
                    "properties": {
                      "group": {
                        "type": "string"
                      },
                      "section": {
                        "type": "string"
                      },
                      "zMin": {
                        "type": "number"
                      },
                      "zMax": {
                        "type": "number"
                      }
                    }
                  },
                  "trafficOtherWay": {
                    "type": "boolean",
                    "description": "Read the deck the other way round (the plugin's \"Traffic runs the other way\")."
                  },
                  "section": {
                    "type": "object",
                    "description": "Carriageway cross-section, m: width, kerbOffset, verges, footways, central reserve… width/kerbOffset are read from the deck if omitted, but the read measures between the outermost girder lines it sees (overhangs not counted unless built as edge lines): where the deck overhangs the outer girders pass width (full carriageway) and kerbOffset (reference girder to kerb; negative when the kerb lies outside the reference girder) yourself.",
                    "additionalProperties": true
                  },
                  "reference": {
                    "type": "object",
                    "description": "Line lanes: the reference line. mode RANGE (range: element ids e.g. '1-10'), GROUP (group), or NODES (nodes: [ids], shape).",
                    "additionalProperties": true
                  },
                  "surface": {
                    "type": "object",
                    "description": "Surface lanes: the alignment. mode GROUP (group), NODES (nodes) or RANGE (range).",
                    "additionalProperties": true
                  },
                  "writeOptions": {
                    "type": "object",
                    "description": "Lane write options the write tool would use (loadDist, groupName, moving, skewStart/skewEnd); here they only shape the lanes shown.",
                    "additionalProperties": true
                  },
                  "codeChange": {
                    "type": "boolean",
                    "default": false,
                    "description": "A permission for the write tool. Here it only changes which blockers are listed — this tool never writes. Accepted so the same inputs serve both tools."
                  },
                  "unitSwitch": {
                    "type": "boolean",
                    "default": false,
                    "description": "A permission for the write tool. Here it only changes which blockers are listed — this tool never writes. Accepted so the same inputs serve both tools."
                  },
                  "config": {
                    "type": "object",
                    "description": "Advanced: any other plugin configuration field, deep-merged over the settings.",
                    "additionalProperties": true
                  },
                  "lanes": {
                    "type": "object",
                    "description": "Lane options. picked — Loadings to lay out: M1S (ALL model 1 single), M1C (convoy), M2 (ALL model 2), FW (footway), ACC (accidental), SV / HB (routes alone), SVM1S / SVM1C / SVM2 (SV with ALL), HBM1S / HBM1C / HBM2 (HB with ALL). Also level, packing, svVehicle, svPlacement, svStraddle, actualLanes, prefix…",
                    "additionalProperties": true,
                    "properties": {
                      "picked": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "level": {
                        "type": "string"
                      }
                    }
                  },
                  "vehicles": {
                    "type": "object",
                    "description": "Vehicle options: levels (NORMAL, T26, T18, FE1, T7_5, FE2, T3; lower levels stacked in), allModel1, allModel2, svTypes (e.g. [\"SV 80\", \"SV 100\"]) and hbUnitsList (e.g. [30, 45]) — every one crossed with every ALL vehicle — svSpeeds, limitStates, envelopes ({ family: true|false }: envelope load combinations, one per family; combinations on by default), fireEngines, customVehicles…",
                    "additionalProperties": true,
                    "properties": {
                      "levels": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "allModel2": {
                        "type": "boolean"
                      },
                      "svTypes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "hbUnitsList": {
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      }
                    }
                  },
                  "irishRailTrains": {
                    "type": [
                      "boolean",
                      "array"
                    ],
                    "items": {
                      "type": "string"
                    },
                    "description": "Add Irish Rail CCE-STR-PSD-008 trains as user-defined vehicles: true for all, or a list of train ids / names (cs454_moving_loads_read options)."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/cs454_moving_loads": {
      "post": {
        "operationId": "cs454_moving_loads",
        "summary": "CS454 - Moving Load Wizard",
        "description": "Use for UK CS 454 assessment live loading (lanes, vehicles, moving-load cases). For EN 1991-2 traffic use ec_moving_loads; to spread existing point loads into patches use point_to_patch_apply. CS 454 assessment live loading with the CS454 - Moving Load Wizard plugin's own engine: notional lanes laid",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "configFile": {
                    "type": [
                      "string",
                      "object"
                    ],
                    "description": "The plugin's own Export JSON settings file (or its \"config\"), as text or object: starts from those settings instead of the defaults. The deck is then not re-read unless readDeck: true."
                  },
                  "laneSource": {
                    "enum": [
                      "NEW",
                      "EXISTING"
                    ],
                    "default": "NEW",
                    "description": "NEW lays out and writes lanes; EXISTING loads the lanes already in the model."
                  },
                  "laneKind": {
                    "enum": [
                      "LINE",
                      "SURFACE"
                    ],
                    "description": "Default: what the model suggests (beams -> LINE, plates -> SURFACE)."
                  },
                  "readDeck": {
                    "type": "boolean",
                    "description": "Read the reference line / alignment, width, kerb offset, cross beams and skew from the deck (default on, off over a loaded settings file)."
                  },
                  "deckFilter": {
                    "type": "object",
                    "description": "Read the deck only from these members, as the plugin's Show only: group (structure group name), section (\"S:<id>\" beam section or \"T:<id>\" plate thickness), zMin / zMax (level band, m).",
                    "additionalProperties": true,
                    "properties": {
                      "group": {
                        "type": "string"
                      },
                      "section": {
                        "type": "string"
                      },
                      "zMin": {
                        "type": "number"
                      },
                      "zMax": {
                        "type": "number"
                      }
                    }
                  },
                  "trafficOtherWay": {
                    "type": "boolean",
                    "description": "Read the deck the other way round (the plugin's \"Traffic runs the other way\")."
                  },
                  "section": {
                    "type": "object",
                    "description": "Carriageway cross-section, m: width, kerbOffset, verges, footways, central reserve… width/kerbOffset are read from the deck if omitted, but the read measures between the outermost girder lines it sees (overhangs not counted unless built as edge lines): where the deck overhangs the outer girders pass width (full carriageway) and kerbOffset (reference girder to kerb; negative when the kerb lies outside the reference girder) yourself.",
                    "additionalProperties": true
                  },
                  "reference": {
                    "type": "object",
                    "description": "Line lanes: the reference line. mode RANGE (range: element ids e.g. '1-10'), GROUP (group), or NODES (nodes: [ids], shape).",
                    "additionalProperties": true
                  },
                  "surface": {
                    "type": "object",
                    "description": "Surface lanes: the alignment. mode GROUP (group), NODES (nodes) or RANGE (range).",
                    "additionalProperties": true
                  },
                  "writeOptions": {
                    "type": "object",
                    "description": "Lane write options: loadDist LANE|CROSS, groupName (cross-beam group), moving BOTH|FORWARD|BACKWARD, skewStart, skewEnd (°; read from the deck when omitted, but pass them on a skew deck: the read has returned 0 for the end skew). With CROSS every wheel line (lane centre ± wheelSpace/2) must lie on a member of groupName, or CIVIL NX refuses the analysis (\"does not intersect a Cross Beam\").",
                    "additionalProperties": true
                  },
                  "codeChange": {
                    "type": "boolean",
                    "default": false,
                    "description": "Allow setting the moving load code to BS. Changing it from another code DELETES every lane in the model — only with the user's agreement."
                  },
                  "unitSwitch": {
                    "type": "boolean",
                    "default": false,
                    "description": "Allow switching CIVIL NX to kN, m for the write and back afterwards (needed for non-SI models)."
                  },
                  "config": {
                    "type": "object",
                    "description": "Advanced: any other plugin configuration field, deep-merged over the settings.",
                    "additionalProperties": true
                  },
                  "scope": {
                    "enum": [
                      "ALL",
                      "LANES",
                      "LOADS"
                    ],
                    "default": "ALL",
                    "description": "ALL = lanes + vehicles + cases (+ envelopes); LANES = lanes only; LOADS = vehicles and cases on the model's existing lanes."
                  },
                  "lanes": {
                    "type": "object",
                    "description": "Lane options. picked — Loadings to lay out: M1S (ALL model 1 single), M1C (convoy), M2 (ALL model 2), FW (footway), ACC (accidental), SV / HB (routes alone), SVM1S / SVM1C / SVM2 (SV with ALL), HBM1S / HBM1C / HBM2 (HB with ALL). Also level, packing, svVehicle, svPlacement, svStraddle, actualLanes, prefix…",
                    "additionalProperties": true,
                    "properties": {
                      "picked": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "level": {
                        "type": "string"
                      }
                    }
                  },
                  "vehicles": {
                    "type": "object",
                    "description": "Vehicle options: levels (NORMAL, T26, T18, FE1, T7_5, FE2, T3; lower levels stacked in), allModel1, allModel2, svTypes (e.g. [\"SV 80\", \"SV 100\"]) and hbUnitsList (e.g. [30, 45]) — every one crossed with every ALL vehicle — svSpeeds, limitStates, envelopes ({ family: true|false }: envelope load combinations, one per family; combinations on by default), fireEngines, customVehicles…",
                    "additionalProperties": true,
                    "properties": {
                      "levels": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "allModel2": {
                        "type": "boolean"
                      },
                      "svTypes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "hbUnitsList": {
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      }
                    }
                  },
                  "irishRailTrains": {
                    "type": [
                      "boolean",
                      "array"
                    ],
                    "items": {
                      "type": "string"
                    },
                    "description": "Add Irish Rail CCE-STR-PSD-008 trains as user-defined vehicles: true for all, or a list of train ids / names (cs454_moving_loads_read options)."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/cs454_combinations_read": {
      "post": {
        "operationId": "cs454_combinations_read",
        "summary": "Read the model for CS 454 combinations",
        "description": "Use before cs454_combinations_apply. For Eurocode use ec_combinations_read; to list or explore the combinations already in the model use combination_tree. Reads the open model the way the CS 454 Load Assessment Combinations plugin does: every static, construction-stage, settlement and moving load ca",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/cs454_combinations_apply": {
      "post": {
        "operationId": "cs454_combinations_apply",
        "summary": "Generate and write CS 454 assessment combinations",
        "description": "Use for the full CS 454 (UK assessment) combination set. For EN 1990 use ec_combinations_apply; for a few hand-picked combinations use civil_combinations_quick. Generates CS 454 assessment load combinations with the plugin's engine (Table A.1 γfL by combination 1–4 and limit state, adverse/relieving",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "structureType": {
                    "enum": [
                      "general",
                      "castIron",
                      "masonryArch"
                    ],
                    "default": "general",
                    "description": "Table A.1 general or cast iron (ULS only); masonry arches are out of scope (blocked)."
                  },
                  "scope": {
                    "type": "object",
                    "description": "Combinations 1–4, each { uls, sls }. Default: c1 ULS+SLS, c2–c4 ULS.",
                    "properties": {
                      "c1": {
                        "type": "object",
                        "properties": {
                          "uls": {
                            "type": "boolean"
                          },
                          "sls": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      "c2": {
                        "type": "object",
                        "properties": {
                          "uls": {
                            "type": "boolean"
                          },
                          "sls": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      "c3": {
                        "type": "object",
                        "properties": {
                          "uls": {
                            "type": "boolean"
                          },
                          "sls": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      "c4": {
                        "type": "object",
                        "properties": {
                          "uls": {
                            "type": "boolean"
                          },
                          "sls": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "cases": {
                    "type": "array",
                    "description": "Per-case mapping edits (match by caseId or caseName, as cs454_combinations_read lists them).",
                    "items": {
                      "type": "object",
                      "properties": {
                        "caseId": {
                          "type": "string"
                        },
                        "caseName": {
                          "type": "string"
                        },
                        "section": {
                          "enum": [
                            "static",
                            "csa",
                            "settlement",
                            "moving"
                          ]
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "action": {
                          "type": "string",
                          "description": "A Table A.1 action key (static) or a moving action (TRAFFIC_NORMAL, TRAFFIC_ASSOCIATED, TRAFFIC_ABNORMAL_SV, TRAFFIC_ABNORMAL_HB, FOOTWAY, ACCIDENTAL_VEHICLE)."
                        },
                        "model": {
                          "type": "string",
                          "description": "Moving: CS 454 load model key (cs454_combinations_read options.loadModels)."
                        },
                        "assessmentLevel": {
                          "type": "string"
                        },
                        "limitState": {
                          "enum": [
                            "auto",
                            "uls",
                            "sls",
                            "both"
                          ]
                        },
                        "gammaFL": {
                          "type": "object",
                          "properties": {
                            "uls": {
                              "type": "number"
                            },
                            "sls": {
                              "type": "number"
                            }
                          },
                          "description": "Moving cases without Auto Live Load Combination only: replaces the Table A.1 γfL for that case."
                        }
                      }
                    }
                  },
                  "customActions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "User-defined variable actions (become X_<NAME>, factors 1.00/0.00 until edited)."
                  },
                  "factorEdits": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": "string"
                        },
                        "comb": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 4
                        },
                        "limitState": {
                          "enum": [
                            "uls",
                            "sls"
                          ]
                        },
                        "side": {
                          "enum": [
                            "adverse",
                            "relieving"
                          ]
                        },
                        "value": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "action",
                        "comb",
                        "limitState",
                        "side",
                        "value"
                      ]
                    },
                    "description": "Table A.1 cell edits."
                  },
                  "gammaF3": {
                    "type": "object",
                    "properties": {
                      "uls": {
                        "type": "number"
                      },
                      "sls": {
                        "type": "number"
                      }
                    }
                  },
                  "gammaF3Mode": {
                    "enum": [
                      "leaveToResistanceCheck",
                      "foldIntoCombination"
                    ],
                    "default": "leaveToResistanceCheck"
                  },
                  "groups": {
                    "description": "null = automatic from the mapping; \"template:<id>\" (see options.groupTemplates); or the full { groups, withinCategory, constraints } state.",
                    "type": [
                      "string",
                      "object",
                      "null"
                    ]
                  },
                  "relations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "category": {
                          "type": "string"
                        },
                        "mode": {
                          "enum": [
                            "XOR",
                            "OR",
                            "AND"
                          ]
                        },
                        "allowNone": {
                          "type": "boolean"
                        },
                        "collapse": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "category"
                      ]
                    }
                  },
                  "collapse": {
                    "type": "boolean",
                    "default": true,
                    "description": "Combine exclusive groups into one envelope sub-combination (the plugin's default); false never collapses."
                  },
                  "commit": {
                    "type": "object",
                    "properties": {
                      "target": {
                        "enum": [
                          "GEN",
                          "CONC",
                          "STEEL",
                          "SRC",
                          "STLCOMP"
                        ],
                        "default": "GEN"
                      },
                      "existingHandling": {
                        "enum": [
                          "KEEP",
                          "DELETE_TARGET",
                          "DELETE_ALL"
                        ],
                        "description": "Required when the target already holds combinations. Deleting only with the user's agreement."
                      },
                      "prefix": {
                        "type": "string",
                        "description": "At most 2 characters, added as <prefix>_<name>."
                      },
                      "includeEnvelopes": {
                        "type": "boolean",
                        "default": false,
                        "description": "Also write one envelope per family (General only)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "show": {
                    "type": "object",
                    "description": "Which combinations to list in the preview (all are written).",
                    "properties": {
                      "family": {
                        "type": "string"
                      },
                      "nameContains": {
                        "type": "string"
                      },
                      "limit": {
                        "type": "integer",
                        "default": 30
                      }
                    },
                    "additionalProperties": false
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/cs455_describe_section": {
      "post": {
        "operationId": "cs455_describe_section",
        "summary": "CS 455: read a section and place its bars",
        "description": "Step 1 of a CS 455 (UK assessment) concrete section check. For a Eurocode check use ec2_describe_section; only to read or edit a section's shape use section_read. Start here when the user shares a reinforcement drawing, photo or schedule. Read from it: cover, for each face the layers (number of bars",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sectionId": {
                    "type": [
                      "integer",
                      "string"
                    ],
                    "description": "The CIVIL NX section id (a beam section)."
                  },
                  "rebar": {
                    "type": "object",
                    "description": "The bar schedule, as the plugin's Reinforcement tab: cover (mm to the bar face, default 50), gap (mm between layers, default max(25, Ø)), rows [{face: bottom|top|side|depth, layer (any whole number, 1 = outermost), count ('8' bars or '@150' spacing), dia (mm, or '1.128in', or '#9'), depth (mm below top, face 'depth' only), span ('±430:900' width limits), from/to/which (side bars)}], coords {datum: bc|bl|tc, text: 'y z dia' per line, mm}.",
                    "properties": {
                      "cover": {
                        "type": "number"
                      },
                      "gap": {
                        "type": [
                          "number",
                          "string"
                        ]
                      },
                      "rows": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "face": {
                              "enum": [
                                "bottom",
                                "top",
                                "side",
                                "depth"
                              ]
                            },
                            "layer": {
                              "type": "integer"
                            },
                            "count": {
                              "type": [
                                "string",
                                "integer"
                              ],
                              "description": "8 (bars) or '@150' (spacing, mm)"
                            },
                            "dia": {
                              "type": [
                                "number",
                                "string"
                              ],
                              "description": "Bar diameter: mm (32, 28.6), inches ('1.128in', '1 1/8\"') or a US bar number ('#9')."
                            },
                            "depth": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "span": {
                              "type": "string"
                            },
                            "from": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "to": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "which": {
                              "enum": [
                                "both",
                                "left",
                                "right"
                              ]
                            }
                          },
                          "required": [
                            "face",
                            "count",
                            "dia"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "coords": {
                        "type": "object",
                        "properties": {
                          "datum": {
                            "enum": [
                              "bc",
                              "bl",
                              "tc"
                            ]
                          },
                          "text": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "restrained": {
                    "type": "boolean",
                    "description": "Compression bars are restrained by links (cl 5.3.1). Default false: compression bars get no compressive strength (cl 5.3.2(1)), conservative."
                  },
                  "confirmDimensions": {
                    "type": "boolean",
                    "description": "Only after the user has compared the drawn section with the drawing: needed when CIVIL NX published no properties to check the outline against."
                  },
                  "concreteParts": {
                    "type": "object",
                    "description": "Composite sections: { part id: f_cu } where a part's grade differs (describe lists the parts)."
                  },
                  "image": {
                    "type": "boolean",
                    "description": "cs455_describe_section only: return the drawing of the section with its bars (default true)."
                  }
                },
                "required": [
                  "sectionId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/cs455_assess": {
      "post": {
        "operationId": "cs455_assess",
        "summary": "CS 455 assessment of an RC beam, column, pier or pile section",
        "description": "Use for CS 455 (UK assessment) ULS of RC beam, column, pier or pile sections. For EN 1992 use ec2_section_check; for slabs and plates use slab_assess; for stresses use stress_profile or sls_stress_check. CS 455 ULS assessment of reinforced concrete beam sections with the plugin's own engine: reads t",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sectionId": {
                    "type": [
                      "integer",
                      "string"
                    ],
                    "description": "The CIVIL NX section id (a beam section)."
                  },
                  "rebar": {
                    "type": "object",
                    "description": "The bar schedule, as the plugin's Reinforcement tab: cover (mm to the bar face, default 50), gap (mm between layers, default max(25, Ø)), rows [{face: bottom|top|side|depth, layer (any whole number, 1 = outermost), count ('8' bars or '@150' spacing), dia (mm, or '1.128in', or '#9'), depth (mm below top, face 'depth' only), span ('±430:900' width limits), from/to/which (side bars)}], coords {datum: bc|bl|tc, text: 'y z dia' per line, mm}.",
                    "properties": {
                      "cover": {
                        "type": "number"
                      },
                      "gap": {
                        "type": [
                          "number",
                          "string"
                        ]
                      },
                      "rows": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "face": {
                              "enum": [
                                "bottom",
                                "top",
                                "side",
                                "depth"
                              ]
                            },
                            "layer": {
                              "type": "integer"
                            },
                            "count": {
                              "type": [
                                "string",
                                "integer"
                              ],
                              "description": "8 (bars) or '@150' (spacing, mm)"
                            },
                            "dia": {
                              "type": [
                                "number",
                                "string"
                              ],
                              "description": "Bar diameter: mm (32, 28.6), inches ('1.128in', '1 1/8\"') or a US bar number ('#9')."
                            },
                            "depth": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "span": {
                              "type": "string"
                            },
                            "from": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "to": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "which": {
                              "enum": [
                                "both",
                                "left",
                                "right"
                              ]
                            }
                          },
                          "required": [
                            "face",
                            "count",
                            "dia"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "coords": {
                        "type": "object",
                        "properties": {
                          "datum": {
                            "enum": [
                              "bc",
                              "bl",
                              "tc"
                            ]
                          },
                          "text": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "restrained": {
                    "type": "boolean",
                    "description": "Compression bars are restrained by links (cl 5.3.1). Default false: compression bars get no compressive strength (cl 5.3.2(1)), conservative."
                  },
                  "confirmDimensions": {
                    "type": "boolean",
                    "description": "Only after the user has compared the drawn section with the drawing: needed when CIVIL NX published no properties to check the outline against."
                  },
                  "concreteParts": {
                    "type": "object",
                    "description": "Composite sections: { part id: f_cu } where a part's grade differs (describe lists the parts)."
                  },
                  "image": {
                    "type": "boolean",
                    "description": "cs455_describe_section only: return the drawing of the section with its bars (default true)."
                  },
                  "stations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "element": {
                          "type": "integer"
                        },
                        "end": {
                          "enum": [
                            "I",
                            "J",
                            "IJ"
                          ]
                        },
                        "location": {
                          "enum": [
                            "support",
                            "midspan",
                            "quarter",
                            "other"
                          ]
                        }
                      },
                      "required": [
                        "element"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Element ends to assess (default: the section's first element, both ends, midspan). Location 'support' removes the shear enhancement near supports."
                  },
                  "cases": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Load cases / combinations by name (default: every load combination the model has)."
                  },
                  "fcu": {
                    "type": "number",
                    "description": "Concrete cube strength, MPa (default: from the model's EN grade C../.. — its cube value)."
                  },
                  "fy": {
                    "type": "number",
                    "description": "Reinforcement yield strength, MPa (default 500)."
                  },
                  "concreteModel": {
                    "enum": [
                      "parabolic",
                      "rectangular"
                    ],
                    "description": "Figure 3.4.1 curve (default) or the constant 0.6 fcu/γmc block of cl 5.1(3)."
                  },
                  "shear": {
                    "type": "boolean",
                    "description": "Run the shear check (default true)."
                  },
                  "links": {
                    "type": "object",
                    "properties": {
                      "dia": {
                        "type": [
                          "number",
                          "string"
                        ],
                        "description": "mm, or inches '0.5in', or US '#4' (default 12)"
                      },
                      "legs": {
                        "type": "integer"
                      },
                      "spacing": {
                        "type": "number",
                        "description": "mm along the member"
                      },
                      "fyv": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "spacing"
                    ],
                    "additionalProperties": false,
                    "description": "Links (omit for concrete-only shear, cl 5.6). Used by shear and by torsion."
                  },
                  "torsion": {
                    "type": "boolean",
                    "description": "Torsion check, CS 455 cl 5.17–5.27, on rows that carry a torque (default true, as in the plugin)."
                  },
                  "tensionOrigin": {
                    "enum": [
                      "externally applied axial tension",
                      "restraint-induced tension"
                    ]
                  },
                  "secondaryActions": {
                    "enum": [
                      "report",
                      "block"
                    ],
                    "description": "Vy / T / Mz: assess N–My–Vz and list them (default), or refuse rows where they are non-zero."
                  },
                  "axialSign": {
                    "enum": [
                      -1,
                      1
                    ],
                    "description": "Positive MIDAS axial is tension (-1, default) or compression (1)."
                  },
                  "momentSign": {
                    "enum": [
                      1,
                      -1
                    ],
                    "description": "Positive MIDAS My is sagging (1, default) or hogging (-1)."
                  },
                  "drawingReference": {
                    "type": "string"
                  },
                  "classification": {
                    "enum": [
                      "RC"
                    ],
                    "description": "RC only in these tools."
                  },
                  "maxRows": {
                    "type": "integer",
                    "description": "Stop above this many force rows (default 1000)."
                  },
                  "member": {
                    "type": "object",
                    "description": "Assess as a column, pier or pile to CS 455 Section 7 instead of a beam (the plugin's Sections tab > Member). The effective height about each axis is a Table 7.2 case (1: both ends held in position and rotation 0.7; 2: top in position only, bottom fixed 0.85; 3: both ends in position only 1.0; 4: bottom fixed, top unrestrained, racked rollers 1.3; 5: bottom fixed, top unrestrained 1.4; 6: bottom fixed, top restrained in rotation only 1.5; 7: cantilever, top free 2.3) or your own factor k (l_e = k l_o). Give links: their diameter and spacing decide whether the compression bars count (7.6). A pile is assessed as a column with no soil restraint: give k for its depth to fixity. Omit for a beam.",
                    "properties": {
                      "type": {
                        "enum": [
                          "beam",
                          "column",
                          "pier",
                          "pile"
                        ]
                      },
                      "length": {
                        "type": "number",
                        "description": "Length between restraints l_o, metres."
                      },
                      "caseY": {
                        "type": "integer",
                        "enum": [
                          0,
                          1,
                          2,
                          3,
                          4,
                          5,
                          6,
                          7
                        ],
                        "description": "Table 7.2 case about the y axis (bending My); 0 = use kY. Default 3."
                      },
                      "caseZ": {
                        "type": "integer",
                        "enum": [
                          0,
                          1,
                          2,
                          3,
                          4,
                          5,
                          6,
                          7
                        ],
                        "description": "Table 7.2 case about the z axis (bending Mz); 0 = use kZ. Default 3."
                      },
                      "kY": {
                        "type": "number",
                        "description": "Effective height factor about y (used when caseY is 0 or omitted with kY given)."
                      },
                      "kZ": {
                        "type": "number",
                        "description": "Effective height factor about z."
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  "maxResults": {
                    "type": "integer",
                    "description": "How many rows to list, worst first (default 40)."
                  },
                  "includeJobs": {
                    "type": "boolean",
                    "description": "Also return the exact engine job of each listed row (for audit or re-running in the plugin)."
                  }
                },
                "required": [
                  "sectionId",
                  "rebar"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/cs455_export_calc_sheet": {
      "post": {
        "operationId": "cs455_export_calc_sheet",
        "summary": "CS 455 calculation sheet (Excel)",
        "description": "Use for the CS 455 Excel calculation sheet of one element end. For EN 1992 use ec2_export_calc_sheet. The report. Assesses one element end exactly as cs455_assess and writes the plugin's reference-format calculation sheet (.xlsx: A4 pages, title block, geometry, materials, reinforcement, section pro",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sectionId": {
                    "type": [
                      "integer",
                      "string"
                    ],
                    "description": "The CIVIL NX section id (a beam section)."
                  },
                  "rebar": {
                    "type": "object",
                    "description": "The bar schedule, as the plugin's Reinforcement tab: cover (mm to the bar face, default 50), gap (mm between layers, default max(25, Ø)), rows [{face: bottom|top|side|depth, layer (any whole number, 1 = outermost), count ('8' bars or '@150' spacing), dia (mm, or '1.128in', or '#9'), depth (mm below top, face 'depth' only), span ('±430:900' width limits), from/to/which (side bars)}], coords {datum: bc|bl|tc, text: 'y z dia' per line, mm}.",
                    "properties": {
                      "cover": {
                        "type": "number"
                      },
                      "gap": {
                        "type": [
                          "number",
                          "string"
                        ]
                      },
                      "rows": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "face": {
                              "enum": [
                                "bottom",
                                "top",
                                "side",
                                "depth"
                              ]
                            },
                            "layer": {
                              "type": "integer"
                            },
                            "count": {
                              "type": [
                                "string",
                                "integer"
                              ],
                              "description": "8 (bars) or '@150' (spacing, mm)"
                            },
                            "dia": {
                              "type": [
                                "number",
                                "string"
                              ],
                              "description": "Bar diameter: mm (32, 28.6), inches ('1.128in', '1 1/8\"') or a US bar number ('#9')."
                            },
                            "depth": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "span": {
                              "type": "string"
                            },
                            "from": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "to": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "which": {
                              "enum": [
                                "both",
                                "left",
                                "right"
                              ]
                            }
                          },
                          "required": [
                            "face",
                            "count",
                            "dia"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "coords": {
                        "type": "object",
                        "properties": {
                          "datum": {
                            "enum": [
                              "bc",
                              "bl",
                              "tc"
                            ]
                          },
                          "text": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "restrained": {
                    "type": "boolean",
                    "description": "Compression bars are restrained by links (cl 5.3.1). Default false: compression bars get no compressive strength (cl 5.3.2(1)), conservative."
                  },
                  "confirmDimensions": {
                    "type": "boolean",
                    "description": "Only after the user has compared the drawn section with the drawing: needed when CIVIL NX published no properties to check the outline against."
                  },
                  "concreteParts": {
                    "type": "object",
                    "description": "Composite sections: { part id: f_cu } where a part's grade differs (describe lists the parts)."
                  },
                  "image": {
                    "type": "boolean",
                    "description": "cs455_describe_section only: return the drawing of the section with its bars (default true)."
                  },
                  "stations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "element": {
                          "type": "integer"
                        },
                        "end": {
                          "enum": [
                            "I",
                            "J",
                            "IJ"
                          ]
                        },
                        "location": {
                          "enum": [
                            "support",
                            "midspan",
                            "quarter",
                            "other"
                          ]
                        }
                      },
                      "required": [
                        "element"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Element ends to assess (default: the section's first element, both ends, midspan). Location 'support' removes the shear enhancement near supports."
                  },
                  "cases": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Load cases / combinations by name (default: every load combination the model has)."
                  },
                  "fcu": {
                    "type": "number",
                    "description": "Concrete cube strength, MPa (default: from the model's EN grade C../.. — its cube value)."
                  },
                  "fy": {
                    "type": "number",
                    "description": "Reinforcement yield strength, MPa (default 500)."
                  },
                  "concreteModel": {
                    "enum": [
                      "parabolic",
                      "rectangular"
                    ],
                    "description": "Figure 3.4.1 curve (default) or the constant 0.6 fcu/γmc block of cl 5.1(3)."
                  },
                  "shear": {
                    "type": "boolean",
                    "description": "Run the shear check (default true)."
                  },
                  "links": {
                    "type": "object",
                    "properties": {
                      "dia": {
                        "type": [
                          "number",
                          "string"
                        ],
                        "description": "mm, or inches '0.5in', or US '#4' (default 12)"
                      },
                      "legs": {
                        "type": "integer"
                      },
                      "spacing": {
                        "type": "number",
                        "description": "mm along the member"
                      },
                      "fyv": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "spacing"
                    ],
                    "additionalProperties": false,
                    "description": "Links (omit for concrete-only shear, cl 5.6). Used by shear and by torsion."
                  },
                  "torsion": {
                    "type": "boolean",
                    "description": "Torsion check, CS 455 cl 5.17–5.27, on rows that carry a torque (default true, as in the plugin)."
                  },
                  "tensionOrigin": {
                    "enum": [
                      "externally applied axial tension",
                      "restraint-induced tension"
                    ]
                  },
                  "secondaryActions": {
                    "enum": [
                      "report",
                      "block"
                    ],
                    "description": "Vy / T / Mz: assess N–My–Vz and list them (default), or refuse rows where they are non-zero."
                  },
                  "axialSign": {
                    "enum": [
                      -1,
                      1
                    ],
                    "description": "Positive MIDAS axial is tension (-1, default) or compression (1)."
                  },
                  "momentSign": {
                    "enum": [
                      1,
                      -1
                    ],
                    "description": "Positive MIDAS My is sagging (1, default) or hogging (-1)."
                  },
                  "drawingReference": {
                    "type": "string"
                  },
                  "classification": {
                    "enum": [
                      "RC"
                    ],
                    "description": "RC only in these tools."
                  },
                  "maxRows": {
                    "type": "integer",
                    "description": "Stop above this many force rows (default 1000)."
                  },
                  "member": {
                    "type": "object",
                    "description": "Assess as a column, pier or pile to CS 455 Section 7 instead of a beam (the plugin's Sections tab > Member). The effective height about each axis is a Table 7.2 case (1: both ends held in position and rotation 0.7; 2: top in position only, bottom fixed 0.85; 3: both ends in position only 1.0; 4: bottom fixed, top unrestrained, racked rollers 1.3; 5: bottom fixed, top unrestrained 1.4; 6: bottom fixed, top restrained in rotation only 1.5; 7: cantilever, top free 2.3) or your own factor k (l_e = k l_o). Give links: their diameter and spacing decide whether the compression bars count (7.6). A pile is assessed as a column with no soil restraint: give k for its depth to fixity. Omit for a beam.",
                    "properties": {
                      "type": {
                        "enum": [
                          "beam",
                          "column",
                          "pier",
                          "pile"
                        ]
                      },
                      "length": {
                        "type": "number",
                        "description": "Length between restraints l_o, metres."
                      },
                      "caseY": {
                        "type": "integer",
                        "enum": [
                          0,
                          1,
                          2,
                          3,
                          4,
                          5,
                          6,
                          7
                        ],
                        "description": "Table 7.2 case about the y axis (bending My); 0 = use kY. Default 3."
                      },
                      "caseZ": {
                        "type": "integer",
                        "enum": [
                          0,
                          1,
                          2,
                          3,
                          4,
                          5,
                          6,
                          7
                        ],
                        "description": "Table 7.2 case about the z axis (bending Mz); 0 = use kZ. Default 3."
                      },
                      "kY": {
                        "type": "number",
                        "description": "Effective height factor about y (used when caseY is 0 or omitted with kY given)."
                      },
                      "kZ": {
                        "type": "number",
                        "description": "Effective height factor about z."
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  "element": {
                    "type": "integer"
                  },
                  "end": {
                    "enum": [
                      "I",
                      "J"
                    ]
                  },
                  "location": {
                    "enum": [
                      "support",
                      "midspan",
                      "quarter",
                      "other"
                    ]
                  },
                  "report": {
                    "type": "object",
                    "properties": {
                      "projectNo": {
                        "type": "string"
                      },
                      "project": {
                        "type": "string"
                      },
                      "client": {
                        "type": "string"
                      },
                      "date": {
                        "type": "string"
                      },
                      "reference": {
                        "type": "string"
                      },
                      "revision": {
                        "type": "string"
                      },
                      "preparedBy": {
                        "type": "string"
                      },
                      "checkedBy": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": [
                  "sectionId",
                  "rebar",
                  "element"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/cs_stage_summary": {
      "post": {
        "operationId": "cs_stage_summary",
        "summary": "Construction Stage Reporter — stage summary",
        "description": "Use to list the construction stages already in the model (durations, groups activated). To create stages use construction_stages; for stage results use cs_stage_results. Reads the construction stage definition of the open CIVIL NX model with the Construction Stage Reporter plugin's engine and return",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "stages": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Stage names to report (default: every stage)."
                  },
                  "elementIds": {
                    "type": "boolean",
                    "default": false,
                    "description": "Add the element ids activated and deactivated in each stage (as ranges, e.g. '1-40, 52')."
                  },
                  "groups": {
                    "type": "boolean",
                    "default": false,
                    "description": "Add one row per structure, boundary and load group: members and the stages that switch it."
                  },
                  "maxStages": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "default": 150
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/cs_stage_results": {
      "post": {
        "operationId": "cs_stage_results",
        "summary": "Construction Stage Reporter — construction-stage results",
        "description": "Use for construction-stage analysis results, stage by stage. For results that are not per stage use preview_result_table; for the Excel / PDF report use cs_stage_report. Reads construction-stage analysis results the way the Construction Stage Reporter plugin does (POST /post/TABLE in the constructio",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "stages": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Stage names to report (default: every stage)."
                  },
                  "series": {
                    "type": "string",
                    "default": "Summation",
                    "description": "Construction-stage result series for the displacements."
                  },
                  "listSeries": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also list the construction-stage series the model publishes."
                  },
                  "displacements": {
                    "type": "boolean",
                    "default": true
                  },
                  "nodes": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "maxItems": 50,
                    "description": "Node ids whose displacements to list per stage."
                  },
                  "members": {
                    "type": "object",
                    "description": "Beam results of chosen members: {groups:[structure group names]} and/or {elements:[ids]} (only TYPE BEAM elements count), table 'BEAMFORCE' (default) or 'BEAMSTRESS', component (default Moment-y for forces, Cb(min/max) for stresses; heads such as Axial, Shear-z, Moment-y, Bend(+z), Cb1(-y+z), or short names My, Mz, Fx, Fz), part 'gov' (default: on composite members the governing section part at each position) or 1–4 (1 = girder, 2 = slab), series (default Summation). Composite members' stresses are read per section part (COMPSECTBEAMSTRESS), as the plugin does.",
                    "properties": {
                      "groups": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "elements": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      },
                      "table": {
                        "enum": [
                          "BEAMFORCE",
                          "BEAMSTRESS"
                        ],
                        "default": "BEAMFORCE"
                      },
                      "component": {
                        "type": "string"
                      },
                      "part": {
                        "type": [
                          "string",
                          "integer"
                        ],
                        "default": "gov"
                      },
                      "series": {
                        "type": "string",
                        "default": "Summation"
                      },
                      "components": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Several components at once (instead of component)."
                      },
                      "detailElements": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        },
                        "maxItems": 20
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/cs_stage_report": {
      "post": {
        "operationId": "cs_stage_report",
        "summary": "Construction Stage Reporter — Excel / PDF report",
        "description": "Use for the construction-stage report (Excel, PDF, video). For the whole-model report use model_report_export. Makes the Construction Stage Reporter plugin's own reports of the open model's construction stages and returns download links (never the file inline): the Excel workbook (summary, stage mat",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "formats": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "xlsx",
                        "pdf"
                      ]
                    },
                    "description": "Default both."
                  },
                  "includeLoads": {
                    "type": "boolean",
                    "default": true,
                    "description": "Include the load group matrix and load columns."
                  },
                  "displacements": {
                    "type": "boolean",
                    "default": true
                  },
                  "series": {
                    "type": "string",
                    "default": "Summation"
                  },
                  "members": {
                    "type": "object",
                    "description": "Beam results of chosen members: {groups:[structure group names]} and/or {elements:[ids]} (only TYPE BEAM elements count), table 'BEAMFORCE' (default) or 'BEAMSTRESS', component (default Moment-y for forces, Cb(min/max) for stresses; heads such as Axial, Shear-z, Moment-y, Bend(+z), Cb1(-y+z), or short names My, Mz, Fx, Fz), part 'gov' (default: on composite members the governing section part at each position) or 1–4 (1 = girder, 2 = slab), series (default Summation). Composite members' stresses are read per section part (COMPSECTBEAMSTRESS), as the plugin does.",
                    "properties": {
                      "groups": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "elements": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      },
                      "table": {
                        "enum": [
                          "BEAMFORCE",
                          "BEAMSTRESS"
                        ],
                        "default": "BEAMFORCE"
                      },
                      "component": {
                        "type": "string"
                      },
                      "part": {
                        "type": [
                          "string",
                          "integer"
                        ],
                        "default": "gov"
                      },
                      "series": {
                        "type": "string",
                        "default": "Summation"
                      }
                    },
                    "additionalProperties": false
                  },
                  "snapshots": {
                    "type": "boolean",
                    "default": true,
                    "description": "A picture per stage in the PDF from CIVIL NX (/view/CAPTURE)."
                  },
                  "view": {
                    "enum": [
                      "iso",
                      "plan",
                      "elevation",
                      "side"
                    ],
                    "default": "iso"
                  },
                  "maxSnapshots": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 200,
                    "default": 60,
                    "description": "With more stages than this, pictures for this many evenly spread stages."
                  },
                  "program": {
                    "type": "string",
                    "description": "Program name printed on the reports, when CIVIL NX does not report its version."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/culvert_preview": {
      "post": {
        "operationId": "culvert_preview",
        "summary": "Preview a 2D box culvert (Eurocode)",
        "description": "Step 1 of a 2D box culvert built from inputs (Eurocode). Not for bridge decks (skew_grillage). Validates a 2D Culvert project with the plugin's own Eurocode core and returns what it would build: nodes, elements, soil springs, basic load cases (traffic unit cases), the EN 1990 Annex A2 combination co",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "project": {
                    "type": "object",
                    "description": "Changes to the 2D Culvert project (schema culvert-studio/2), merged onto the plugin's default project; arrays replace. Sections: project {name, reference, revision}; basis {profile: EN-1G | UK-1G | ..., concrete 'C32/40', steel 'B500B'}; geometry {spans [m per cell], clear_height, t_top, t_bot, t_ext, t_int, haunch_top [w,h], haunch_bot}; ground {fill, fill_density, surfacing_thk, surfacing_density, soil_density, soil_sub, phi, k0_override, subgrade (kN/m3), side_springs}; water {gw_depth, internal_depth}; earth_pressure {method K0 | annexB | cl94, fill_6n6p, ...}; traffic {carriageway, lm1, lm2, braking, surcharge, step, lm3 {enabled, sv80, sv100, sv196, gaps}, vehicles}; thermal {dT_exp, dT_con, dT_heat, dT_cool, shrinkage}; loads {sdl}; reinforcement {top_slab, base_slab, walls}; design {allowable_bearing, RH, t0, creep_phi}. Lengths m, bars [dia mm, spacing mm].",
                    "additionalProperties": true
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/culvert_build": {
      "post": {
        "operationId": "culvert_build",
        "summary": "Build the culvert model in CIVIL NX",
        "description": "Use to write the 2D culvert model after culvert_preview. Only for culverts. Writes the 2D Culvert model exactly as the plugin's Build: units, user material, sections, frame, soil springs, supports, every basic load case with its loads, and the nested EN 1990 Annex A2 combinations; then reads the loa",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "project": {
                    "type": "object",
                    "description": "Changes to the 2D Culvert project (schema culvert-studio/2), merged onto the plugin's default project; arrays replace. Sections: project {name, reference, revision}; basis {profile: EN-1G | UK-1G | ..., concrete 'C32/40', steel 'B500B'}; geometry {spans [m per cell], clear_height, t_top, t_bot, t_ext, t_int, haunch_top [w,h], haunch_bot}; ground {fill, fill_density, surfacing_thk, surfacing_density, soil_density, soil_sub, phi, k0_override, subgrade (kN/m3), side_springs}; water {gw_depth, internal_depth}; earth_pressure {method K0 | annexB | cl94, fill_6n6p, ...}; traffic {carriageway, lm1, lm2, braking, surcharge, step, lm3 {enabled, sv80, sv100, sv196, gaps}, vehicles}; thermal {dT_exp, dT_con, dT_heat, dT_cool, shrinkage}; loads {sdl}; reinforcement {top_slab, base_slab, walls}; design {allowable_bearing, RH, t0, creep_phi}. Lengths m, bars [dia mm, spacing mm].",
                    "additionalProperties": true
                  },
                  "newDocument": {
                    "type": "boolean",
                    "description": "DESTRUCTIVE: open a new CIVIL NX model first (the open one is replaced; unsaved work is lost)."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/culvert_analyse_and_check": {
      "post": {
        "operationId": "culvert_analyse_and_check",
        "summary": "Analyse the culvert and run every check",
        "description": "Use only on a culvert made by culvert_build. To analyse any other model use civil_run_analysis. On the culvert model built from the same inputs (refused if the open model's counts differ): runs the CIVIL NX analysis (unless analyse: false), reads the basic-case results (forces, reactions, displaceme",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "project": {
                    "type": "object",
                    "description": "Changes to the 2D Culvert project (schema culvert-studio/2), merged onto the plugin's default project; arrays replace. Sections: project {name, reference, revision}; basis {profile: EN-1G | UK-1G | ..., concrete 'C32/40', steel 'B500B'}; geometry {spans [m per cell], clear_height, t_top, t_bot, t_ext, t_int, haunch_top [w,h], haunch_bot}; ground {fill, fill_density, surfacing_thk, surfacing_density, soil_density, soil_sub, phi, k0_override, subgrade (kN/m3), side_springs}; water {gw_depth, internal_depth}; earth_pressure {method K0 | annexB | cl94, fill_6n6p, ...}; traffic {carriageway, lm1, lm2, braking, surcharge, step, lm3 {enabled, sv80, sv100, sv196, gaps}, vehicles}; thermal {dT_exp, dT_con, dT_heat, dT_cool, shrinkage}; loads {sdl}; reinforcement {top_slab, base_slab, walls}; design {allowable_bearing, RH, t0, creep_phi}. Lengths m, bars [dia mm, spacing mm].",
                    "additionalProperties": true
                  },
                  "analyse": {
                    "type": "boolean",
                    "description": "Run the analysis first (default true)."
                  },
                  "maxLocations": {
                    "type": "integer",
                    "description": "Locations to list, worst first (default 30)."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/culvert_report": {
      "post": {
        "operationId": "culvert_report",
        "summary": "Culvert calculation report",
        "description": "Use for the culvert calculation report. For a general model report use model_report_export. Runs the checks on the analysed culvert model (as culvert_analyse_and_check, without re-analysing unless analyse: true) and writes the plugin's report: format xlsx (default) = the calculation book in the MIDA",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "project": {
                    "type": "object",
                    "description": "Changes to the 2D Culvert project (schema culvert-studio/2), merged onto the plugin's default project; arrays replace. Sections: project {name, reference, revision}; basis {profile: EN-1G | UK-1G | ..., concrete 'C32/40', steel 'B500B'}; geometry {spans [m per cell], clear_height, t_top, t_bot, t_ext, t_int, haunch_top [w,h], haunch_bot}; ground {fill, fill_density, surfacing_thk, surfacing_density, soil_density, soil_sub, phi, k0_override, subgrade (kN/m3), side_springs}; water {gw_depth, internal_depth}; earth_pressure {method K0 | annexB | cl94, fill_6n6p, ...}; traffic {carriageway, lm1, lm2, braking, surcharge, step, lm3 {enabled, sv80, sv100, sv196, gaps}, vehicles}; thermal {dT_exp, dT_con, dT_heat, dT_cool, shrinkage}; loads {sdl}; reinforcement {top_slab, base_slab, walls}; design {allowable_bearing, RH, t0, creep_phi}. Lengths m, bars [dia mm, spacing mm].",
                    "additionalProperties": true
                  },
                  "format": {
                    "enum": [
                      "xlsx",
                      "pdf",
                      "both"
                    ],
                    "description": "xlsx (default), pdf, or both from one run of the checks."
                  },
                  "analyse": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/midas_docs_search": {
      "post": {
        "operationId": "midas_docs_search",
        "summary": "Search the MIDAS manuals",
        "description": "Use for how-to questions, what a CIVIL NX input means, or a MIDAS API table's fields. For valid names (material grades, section shapes) use midas_library. Searches the MIDAS help centre (support.midasuser.com), live: the CIVIL NX and GEN NX online help (every dialog: what it does, where it is in the",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "What to look for, in the manual's own words where possible, e.g. \"composite section for construction stage\", \"moving load optimization\", \"db/STAG\"."
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "civil",
                        "gen",
                        "api",
                        "faq",
                        "tutorials",
                        "updates",
                        "cim",
                        "excel",
                        "grasshopper",
                        "support",
                        "all"
                      ]
                    },
                    "description": "Where to search: civil (CIVIL NX online help), gen (GEN NX online help), api (MIDAS API (MAPI) JSON manual), faq (FAQ), tutorials (Tutorials), updates (Product updates / release notes), cim (CIM online help), excel (Excel Connector), grasshopper (Grasshopper API), support (support FAQ: answers from past MIDAS support replies), or all. Default: civil, api, faq, tutorials, support."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 25,
                    "default": 8
                  },
                  "page": {
                    "type": "integer",
                    "minimum": 1,
                    "default": 1
                  }
                },
                "required": [
                  "query"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/midas_docs_read": {
      "post": {
        "operationId": "midas_docs_read",
        "summary": "Read a MIDAS manual article",
        "description": "Use after midas_docs_search, to read one article in full. Reads one MIDAS help-centre article in full, as Markdown: headings, notes, input tables, and for the MIDAS API manual the URI, methods, JSON schema and JSON examples as code blocks. Also lists the article's images (links). Long articles come ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Article id from midas_docs_search (e.g. \"35987578396697\"), the article's support.midasuser.com URL, or a support FAQ id (\"faq-0123\")."
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "default": 0,
                    "description": "Character offset to start from (nextOffset of the previous call)."
                  },
                  "maxChars": {
                    "type": "integer",
                    "minimum": 1000,
                    "maximum": 60000,
                    "default": 15000
                  },
                  "images": {
                    "type": "boolean",
                    "default": true,
                    "description": "List the article's images (alt text and link)."
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/dxf_inspect": {
      "post": {
        "operationId": "dxf_inspect",
        "summary": "Advanced DXF Importer — inspect a drawing",
        "description": "Use before dxf_import, to see what a DXF would create. No model needed. Reads a DXF with the Advanced DXF Importer plugin's own parser and clean-up and reports what an import would create: the file (version, encoding, entity counts, what is ignored or unsupported), its units, every layer with its en",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dxfText": {
                    "type": "string",
                    "description": "The DXF file's text (ASCII DXF), up to 4 MB. Use dxfBase64 for a binary DXF or an R12 file with non-ASCII layer names (the bytes then keep their code page)."
                  },
                  "dxfBase64": {
                    "type": "string",
                    "description": "The DXF file's bytes, base64, up to 4 MB decoded."
                  },
                  "url": {
                    "type": "string",
                    "description": "An https address the DXF is downloaded from, up to 25 MB (public hosts only on the website)."
                  },
                  "filePath": {
                    "type": "string",
                    "description": "Local server only: a path to the DXF on this machine, up to 50 MB."
                  },
                  "fileName": {
                    "type": "string",
                    "description": "Name of the drawing (default: from the URL or path, else drawing.dxf). It names the import's master group DXF_<name> #<token>."
                  },
                  "drawingUnits": {
                    "enum": [
                      "mm",
                      "cm",
                      "m",
                      "in",
                      "ft"
                    ],
                    "description": "The drawing's units when it does not record them ($INSUNITS; R12 files never do), or to override them."
                  },
                  "matchModelUnits": {
                    "type": "boolean",
                    "default": true,
                    "description": "As in the plugin: switch the CIVIL NX model's length unit to the drawing's (mm/cm/m/in/ft) before writing. DESTRUCTIVE when it changes the unit — the preview says so; undo switches it back. false = keep the model's unit and convert the coordinates."
                  },
                  "plane": {
                    "enum": [
                      "XY",
                      "XZ",
                      "YZ"
                    ],
                    "default": "XY",
                    "description": "Flat drawings only: XY → plan (global XY), XZ → elevation, YZ → side elevation."
                  },
                  "planeOffset": {
                    "type": "number",
                    "description": "Flat drawings only: metres added along the axis the drawing's normal maps to."
                  },
                  "origin": {
                    "type": "object",
                    "description": "Move the drawing: {mode:'none'} (default), {mode:'min'} (drawing minimum to 0,0,0), or {mode:'user', x, y, z} (metres, subtracted). Use it for OS-grid / site coordinates.",
                    "properties": {
                      "mode": {
                        "enum": [
                          "none",
                          "min",
                          "user"
                        ]
                      },
                      "x": {
                        "type": "number"
                      },
                      "y": {
                        "type": "number"
                      },
                      "z": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  "mergeTolerance": {
                    "type": "number",
                    "default": 1,
                    "description": "Node merge tolerance, mm (clean-up)."
                  },
                  "arcSegments": {
                    "type": "integer",
                    "minimum": 4,
                    "default": 24,
                    "description": "Arcs/circles/splines: segments per full circle."
                  },
                  "arcChord": {
                    "type": "number",
                    "description": "Instead of arcSegments: largest chord deviation, mm."
                  },
                  "ignoreAnnotationLayers": {
                    "type": "boolean",
                    "default": false,
                    "description": "Untick layers that are empty or mostly annotation (TEXT, DIMENSION, HATCH…), as the plugin's bulk action does."
                  },
                  "mapping": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "Layer mapping in the plugin's preset format (the file Save mapping writes). rules apply in order, first match wins, * and ? wildcards, case-insensitive; layers are exact names and override the rules. Per class (linear = lines/polylines/arcs/splines, face = 3DFACE/polyface/mesh, point): as BEAM|TRUSS|IGNORE (linear), PLATE|IGNORE (face), NODE|IGNORE (point); material, section (linear) or thickness (face) as an id, a name or {id,name} (omitted = the DXF default property, created on import); beta (deg); group ('{layer}' = the layer name); split (split at intersections); plate THICK|THIN; include false drops a layer. Example: {rules:[{layer:'*GIRDER*', class:'linear', as:'BEAM', material:'C40/50', section:'G1', group:'Girders'}, {layer:'DIM*', include:false}], layers:{SLAB:{face:{as:'PLATE', thickness:'Slab 250'}}}}"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/dxf_import": {
      "post": {
        "operationId": "dxf_import",
        "summary": "Advanced DXF Importer — import into CIVIL NX",
        "description": "Use to bring geometry from a DXF drawing into the model. For a deck from parameters use skew_grillage; for nodes from a coordinate list use create_nodes. To export a DXF use model_to_dxf. Imports a DXF into the open CIVIL NX model with the Advanced DXF Importer plugin's engine: the same parse, layer",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dxfText": {
                    "type": "string",
                    "description": "The DXF file's text (ASCII DXF), up to 4 MB. Use dxfBase64 for a binary DXF or an R12 file with non-ASCII layer names (the bytes then keep their code page)."
                  },
                  "dxfBase64": {
                    "type": "string",
                    "description": "The DXF file's bytes, base64, up to 4 MB decoded."
                  },
                  "url": {
                    "type": "string",
                    "description": "An https address the DXF is downloaded from, up to 25 MB (public hosts only on the website)."
                  },
                  "filePath": {
                    "type": "string",
                    "description": "Local server only: a path to the DXF on this machine, up to 50 MB."
                  },
                  "fileName": {
                    "type": "string",
                    "description": "Name of the drawing (default: from the URL or path, else drawing.dxf). It names the import's master group DXF_<name> #<token>."
                  },
                  "drawingUnits": {
                    "enum": [
                      "mm",
                      "cm",
                      "m",
                      "in",
                      "ft"
                    ],
                    "description": "The drawing's units when it does not record them ($INSUNITS; R12 files never do), or to override them."
                  },
                  "matchModelUnits": {
                    "type": "boolean",
                    "default": true,
                    "description": "As in the plugin: switch the CIVIL NX model's length unit to the drawing's (mm/cm/m/in/ft) before writing. DESTRUCTIVE when it changes the unit — the preview says so; undo switches it back. false = keep the model's unit and convert the coordinates."
                  },
                  "plane": {
                    "enum": [
                      "XY",
                      "XZ",
                      "YZ"
                    ],
                    "default": "XY",
                    "description": "Flat drawings only: XY → plan (global XY), XZ → elevation, YZ → side elevation."
                  },
                  "planeOffset": {
                    "type": "number",
                    "description": "Flat drawings only: metres added along the axis the drawing's normal maps to."
                  },
                  "origin": {
                    "type": "object",
                    "description": "Move the drawing: {mode:'none'} (default), {mode:'min'} (drawing minimum to 0,0,0), or {mode:'user', x, y, z} (metres, subtracted). Use it for OS-grid / site coordinates.",
                    "properties": {
                      "mode": {
                        "enum": [
                          "none",
                          "min",
                          "user"
                        ]
                      },
                      "x": {
                        "type": "number"
                      },
                      "y": {
                        "type": "number"
                      },
                      "z": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  "mergeTolerance": {
                    "type": "number",
                    "default": 1,
                    "description": "Node merge tolerance, mm (clean-up)."
                  },
                  "arcSegments": {
                    "type": "integer",
                    "minimum": 4,
                    "default": 24,
                    "description": "Arcs/circles/splines: segments per full circle."
                  },
                  "arcChord": {
                    "type": "number",
                    "description": "Instead of arcSegments: largest chord deviation, mm."
                  },
                  "ignoreAnnotationLayers": {
                    "type": "boolean",
                    "default": false,
                    "description": "Untick layers that are empty or mostly annotation (TEXT, DIMENSION, HATCH…), as the plugin's bulk action does."
                  },
                  "mapping": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "Layer mapping in the plugin's preset format (the file Save mapping writes). rules apply in order, first match wins, * and ? wildcards, case-insensitive; layers are exact names and override the rules. Per class (linear = lines/polylines/arcs/splines, face = 3DFACE/polyface/mesh, point): as BEAM|TRUSS|IGNORE (linear), PLATE|IGNORE (face), NODE|IGNORE (point); material, section (linear) or thickness (face) as an id, a name or {id,name} (omitted = the DXF default property, created on import); beta (deg); group ('{layer}' = the layer name); split (split at intersections); plate THICK|THIN; include false drops a layer. Example: {rules:[{layer:'*GIRDER*', class:'linear', as:'BEAM', material:'C40/50', section:'G1', group:'Girders'}, {layer:'DIM*', include:false}], layers:{SLAB:{face:{as:'PLATE', thickness:'Slab 250'}}}}"
                  },
                  "mergeExisting": {
                    "type": "boolean",
                    "default": false,
                    "description": "Reuse existing model nodes within the merge tolerance instead of creating new ones there (reused nodes join no group)."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write to CIVIL NX. Only after the user approved the preview."
                  },
                  "confirmPlanHash": {
                    "type": "string",
                    "description": "planHash from the approved preview; the write is refused if the plan differs."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec2_describe_section": {
      "post": {
        "operationId": "ec2_describe_section",
        "summary": "Eurocode Section Checker: read a section and place its bars",
        "description": "Step 1 of an EN 1992 (Eurocode) concrete section check. For CS 455 use cs455_describe_section; only to read or edit a section's shape use section_read. Start here for an EN 1992 section check. Reads one beam section of the open model through the shared MIDAS section library (any CIVIL NX section fam",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sectionId": {
                    "type": [
                      "integer",
                      "string"
                    ]
                  },
                  "grade": {
                    "type": "string",
                    "description": "EN 206 class, e.g. C35/45 (default: from the model material, else C30/37 assumed)."
                  },
                  "rebar": {
                    "type": "object",
                    "description": "The bar schedule, as the plugin's Reinforcement tab: cover (mm to the bar face, default 40), gap (mm between layers, default max(25, Ø)), rows [{face: bottom|top|side|depth, layer (1 = nearest the face), count ('6' bars or '@150' spacing), dia (mm), depth (mm below the top, face 'depth'), which (side bars: both|left|right), span/from/to}], coords {datum: bc|bl|tc, text: 'y z dia' per line, mm}.",
                    "properties": {
                      "cover": {
                        "type": "number"
                      },
                      "gap": {
                        "type": [
                          "number",
                          "string"
                        ]
                      },
                      "rows": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "face": {
                              "enum": [
                                "bottom",
                                "top",
                                "side",
                                "depth"
                              ]
                            },
                            "layer": {
                              "type": "integer"
                            },
                            "count": {
                              "type": [
                                "string",
                                "integer"
                              ]
                            },
                            "dia": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "depth": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "which": {
                              "enum": [
                                "both",
                                "left",
                                "right"
                              ]
                            },
                            "span": {
                              "type": "string"
                            },
                            "from": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "to": {
                              "type": [
                                "number",
                                "string"
                              ]
                            }
                          },
                          "required": [
                            "face",
                            "count",
                            "dia"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "coords": {
                        "type": "object",
                        "properties": {
                          "datum": {
                            "enum": [
                              "bc",
                              "bl",
                              "tc"
                            ]
                          },
                          "text": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "member": {
                    "type": "object",
                    "description": "Check as a column, pier or pile (EC2 5.8 slenderness, imperfections, nominal-curvature second order; pile: bored-pile minimum steel 9.8.5) instead of a beam. Default: column when the elements are mostly vertical, else beam. Effective length l0 = k * length about each axis: caseY/caseZ from EC2 Fig 5.7 (a pinned both ends 1.0, b cantilever 2.0, c fixed-pinned 0.7, d fixed both 0.5, e fixed both, sway 1.0, f fixed-pinned, sway 2.0) or kY/kZ.",
                    "properties": {
                      "type": {
                        "enum": [
                          "beam",
                          "column",
                          "pier",
                          "pile"
                        ]
                      },
                      "length": {
                        "type": "number",
                        "description": "metres (default: the longest run of joined elements with this section)"
                      },
                      "caseY": {
                        "enum": [
                          "a",
                          "b",
                          "c",
                          "d",
                          "e",
                          "f",
                          "custom"
                        ]
                      },
                      "caseZ": {
                        "enum": [
                          "a",
                          "b",
                          "c",
                          "d",
                          "e",
                          "f",
                          "custom"
                        ]
                      },
                      "kY": {
                        "type": "number"
                      },
                      "kZ": {
                        "type": "number"
                      },
                      "phiEf": {
                        "type": "number",
                        "description": "effective creep ratio (5.8.4), default from the engine"
                      },
                      "uncased": {
                        "type": "boolean",
                        "description": "pile: bored without casing (EC2 2.3.4.2(2) reduced diameter)"
                      }
                    },
                    "additionalProperties": false
                  },
                  "psc": {
                    "type": "object",
                    "description": "Prestressed beam (EC2 5.10, 6.1, 7.1-7.3; 6.2.5 interface shear when composite): every tendon at its own position. tendons: the plugin's text lines - 'y z Ap [sigma_pm0]' for one tendon, 'y1 z1 y2 z2 n Ap [sigma_pm0]' for a line of n - with Ap in mm² or a strand '15.7s' or '19x15.7', coordinates mm from the datum (bc = bottom centre, bl = bottom left, tc = top centre, z down); or a list [{y, z, area, sigma0?}]. Stage 1 (prestress, girder self-weight, load cases tagged stage1) acts on the girder alone; give composite for a precast girder + deck slab.",
                    "properties": {
                      "method": {
                        "enum": [
                          "pre",
                          "post"
                        ]
                      },
                      "fpk": {
                        "type": "number"
                      },
                      "fp01k": {
                        "type": "number"
                      },
                      "Ep": {
                        "type": "number"
                      },
                      "sigmaMax": {
                        "type": "number"
                      },
                      "sigmaPm0": {
                        "type": "number",
                        "description": "MPa after immediate losses (default 1300)"
                      },
                      "lossPercent": {
                        "type": "number",
                        "description": "time-dependent losses, % (default 15)"
                      },
                      "fckt": {
                        "type": "number",
                        "description": "f_ck at transfer (default 0.7 f_ck)"
                      },
                      "rSup": {
                        "type": "number"
                      },
                      "rInf": {
                        "type": "number"
                      },
                      "duct": {
                        "type": "number",
                        "description": "post-tensioning duct diameter, mm"
                      },
                      "ductType": {
                        "enum": [
                          "metal",
                          "plastic"
                        ]
                      },
                      "alphaL": {
                        "type": "number"
                      },
                      "k6": {
                        "type": "boolean"
                      },
                      "datum": {
                        "enum": [
                          "bc",
                          "bl",
                          "tc"
                        ]
                      },
                      "tendons": {
                        "type": [
                          "string",
                          "array"
                        ],
                        "items": {
                          "type": "object",
                          "properties": {
                            "y": {
                              "type": "number"
                            },
                            "z": {
                              "type": "number"
                            },
                            "area": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "sigma0": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "y",
                            "z",
                            "area"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "points": {
                        "type": [
                          "string",
                          "array"
                        ],
                        "description": "extra stress points 'y z [label]'",
                        "items": {
                          "type": "object",
                          "properties": {
                            "y": {
                              "type": "number"
                            },
                            "z": {
                              "type": "number"
                            },
                            "label": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "y",
                            "z"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "composite": {
                        "type": "object",
                        "properties": {
                          "grade": {
                            "type": "string",
                            "description": "slab concrete class, e.g. C30/37"
                          },
                          "slab": {
                            "enum": [
                              "extras",
                              "depth"
                            ],
                            "description": "the section's deck-slab region (default when it has one) or everything above a depth"
                          },
                          "depth": {
                            "type": "number",
                            "description": "mm from the top"
                          },
                          "roughness": {
                            "enum": [
                              "very_smooth",
                              "smooth",
                              "rough",
                              "indented"
                            ],
                            "description": "EC2 6.2.5(2), default rough"
                          },
                          "asi": {
                            "type": "number",
                            "description": "interface steel mm²/m"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "tendons"
                    ],
                    "additionalProperties": false
                  },
                  "image": {
                    "type": "boolean",
                    "description": "return the drawing (default true)"
                  }
                },
                "required": [
                  "sectionId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec2_section_check": {
      "post": {
        "operationId": "ec2_section_check",
        "summary": "Eurocode Section Checker: EN 1992 check of RC and prestressed sections",
        "description": "Use for EN 1992 checks of RC or prestressed beam, column, pier or pile sections. For CS 455 use cs455_assess; for slabs and plates use slab_assess; for a stress plot use stress_profile. EN 1992-1-1 / EN 1992-2 check of concrete beam, column, pier and pile sections with the Eurocode Section Checker p",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sections": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": [
                            "integer",
                            "string"
                          ],
                          "description": "CIVIL NX section id."
                        },
                        "grade": {
                          "type": "string",
                          "description": "EN 206 class, e.g. C35/45 (default: from the model material, else C30/37 assumed)."
                        },
                        "steel": {
                          "enum": [
                            "B500A",
                            "B500B",
                            "B500C"
                          ],
                          "description": "default B500B"
                        },
                        "rebar": {
                          "type": "object",
                          "description": "The bar schedule, as the plugin's Reinforcement tab: cover (mm to the bar face, default 40), gap (mm between layers, default max(25, Ø)), rows [{face: bottom|top|side|depth, layer (1 = nearest the face), count ('6' bars or '@150' spacing), dia (mm), depth (mm below the top, face 'depth'), which (side bars: both|left|right), span/from/to}], coords {datum: bc|bl|tc, text: 'y z dia' per line, mm}.",
                          "properties": {
                            "cover": {
                              "type": "number"
                            },
                            "gap": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "rows": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "face": {
                                    "enum": [
                                      "bottom",
                                      "top",
                                      "side",
                                      "depth"
                                    ]
                                  },
                                  "layer": {
                                    "type": "integer"
                                  },
                                  "count": {
                                    "type": [
                                      "string",
                                      "integer"
                                    ]
                                  },
                                  "dia": {
                                    "type": [
                                      "number",
                                      "string"
                                    ]
                                  },
                                  "depth": {
                                    "type": [
                                      "number",
                                      "string"
                                    ]
                                  },
                                  "which": {
                                    "enum": [
                                      "both",
                                      "left",
                                      "right"
                                    ]
                                  },
                                  "span": {
                                    "type": "string"
                                  },
                                  "from": {
                                    "type": [
                                      "number",
                                      "string"
                                    ]
                                  },
                                  "to": {
                                    "type": [
                                      "number",
                                      "string"
                                    ]
                                  }
                                },
                                "required": [
                                  "face",
                                  "count",
                                  "dia"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "coords": {
                              "type": "object",
                              "properties": {
                                "datum": {
                                  "enum": [
                                    "bc",
                                    "bl",
                                    "tc"
                                  ]
                                },
                                "text": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        },
                        "links": {
                          "type": "object",
                          "description": "Shear links (omit for no links: members without shear reinforcement, EC2 6.2.2).",
                          "properties": {
                            "dia": {
                              "type": "number",
                              "description": "mm (default 10)"
                            },
                            "spacing": {
                              "type": "number",
                              "description": "mm along the member"
                            },
                            "legs": {
                              "type": "integer",
                              "description": "legs for Vz (default 2)"
                            },
                            "legsY": {
                              "type": "integer",
                              "description": "legs for Vy (default 2)"
                            },
                            "angle": {
                              "type": "number",
                              "description": "45-90°, default 90"
                            }
                          },
                          "required": [
                            "spacing"
                          ],
                          "additionalProperties": false
                        },
                        "member": {
                          "type": "object",
                          "description": "Check as a column, pier or pile (EC2 5.8 slenderness, imperfections, nominal-curvature second order; pile: bored-pile minimum steel 9.8.5) instead of a beam. Default: column when the elements are mostly vertical, else beam. Effective length l0 = k * length about each axis: caseY/caseZ from EC2 Fig 5.7 (a pinned both ends 1.0, b cantilever 2.0, c fixed-pinned 0.7, d fixed both 0.5, e fixed both, sway 1.0, f fixed-pinned, sway 2.0) or kY/kZ.",
                          "properties": {
                            "type": {
                              "enum": [
                                "beam",
                                "column",
                                "pier",
                                "pile"
                              ]
                            },
                            "length": {
                              "type": "number",
                              "description": "metres (default: the longest run of joined elements with this section)"
                            },
                            "caseY": {
                              "enum": [
                                "a",
                                "b",
                                "c",
                                "d",
                                "e",
                                "f",
                                "custom"
                              ]
                            },
                            "caseZ": {
                              "enum": [
                                "a",
                                "b",
                                "c",
                                "d",
                                "e",
                                "f",
                                "custom"
                              ]
                            },
                            "kY": {
                              "type": "number"
                            },
                            "kZ": {
                              "type": "number"
                            },
                            "phiEf": {
                              "type": "number",
                              "description": "effective creep ratio (5.8.4), default from the engine"
                            },
                            "uncased": {
                              "type": "boolean",
                              "description": "pile: bored without casing (EC2 2.3.4.2(2) reduced diameter)"
                            }
                          },
                          "additionalProperties": false
                        },
                        "psc": {
                          "type": "object",
                          "description": "Prestressed beam (EC2 5.10, 6.1, 7.1-7.3; 6.2.5 interface shear when composite): every tendon at its own position. tendons: the plugin's text lines - 'y z Ap [sigma_pm0]' for one tendon, 'y1 z1 y2 z2 n Ap [sigma_pm0]' for a line of n - with Ap in mm² or a strand '15.7s' or '19x15.7', coordinates mm from the datum (bc = bottom centre, bl = bottom left, tc = top centre, z down); or a list [{y, z, area, sigma0?}]. Stage 1 (prestress, girder self-weight, load cases tagged stage1) acts on the girder alone; give composite for a precast girder + deck slab.",
                          "properties": {
                            "method": {
                              "enum": [
                                "pre",
                                "post"
                              ]
                            },
                            "fpk": {
                              "type": "number"
                            },
                            "fp01k": {
                              "type": "number"
                            },
                            "Ep": {
                              "type": "number"
                            },
                            "sigmaMax": {
                              "type": "number"
                            },
                            "sigmaPm0": {
                              "type": "number",
                              "description": "MPa after immediate losses (default 1300)"
                            },
                            "lossPercent": {
                              "type": "number",
                              "description": "time-dependent losses, % (default 15)"
                            },
                            "fckt": {
                              "type": "number",
                              "description": "f_ck at transfer (default 0.7 f_ck)"
                            },
                            "rSup": {
                              "type": "number"
                            },
                            "rInf": {
                              "type": "number"
                            },
                            "duct": {
                              "type": "number",
                              "description": "post-tensioning duct diameter, mm"
                            },
                            "ductType": {
                              "enum": [
                                "metal",
                                "plastic"
                              ]
                            },
                            "alphaL": {
                              "type": "number"
                            },
                            "k6": {
                              "type": "boolean"
                            },
                            "datum": {
                              "enum": [
                                "bc",
                                "bl",
                                "tc"
                              ]
                            },
                            "tendons": {
                              "type": [
                                "string",
                                "array"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  },
                                  "area": {
                                    "type": [
                                      "number",
                                      "string"
                                    ]
                                  },
                                  "sigma0": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "y",
                                  "z",
                                  "area"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "points": {
                              "type": [
                                "string",
                                "array"
                              ],
                              "description": "extra stress points 'y z [label]'",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  },
                                  "label": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "y",
                                  "z"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "composite": {
                              "type": "object",
                              "properties": {
                                "grade": {
                                  "type": "string",
                                  "description": "slab concrete class, e.g. C30/37"
                                },
                                "slab": {
                                  "enum": [
                                    "extras",
                                    "depth"
                                  ],
                                  "description": "the section's deck-slab region (default when it has one) or everything above a depth"
                                },
                                "depth": {
                                  "type": "number",
                                  "description": "mm from the top"
                                },
                                "roughness": {
                                  "enum": [
                                    "very_smooth",
                                    "smooth",
                                    "rough",
                                    "indented"
                                  ],
                                  "description": "EC2 6.2.5(2), default rough"
                                },
                                "asi": {
                                  "type": "number",
                                  "description": "interface steel mm²/m"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "tendons"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "description": "One entry per section to check, with its reinforcement (and psc for a prestressed beam)."
                  },
                  "elements": {
                    "type": [
                      "array",
                      "string"
                    ],
                    "items": {
                      "type": "integer"
                    },
                    "description": "Beam elements to check ('101to104 201' or a list). Default: every element of the listed sections."
                  },
                  "group": {
                    "type": "string",
                    "description": "Or a structure group name."
                  },
                  "cases": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "kind": {
                              "enum": [
                                "ULS",
                                "SLS_CHAR",
                                "SLS_FREQ",
                                "SLS_QP"
                              ]
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "description": "Combinations (or load cases) by name, optionally with the limit state. Default: every readable combination with the limit state read from its name / CIVIL NX type (frequent ones only when a section is prestressed)."
                  },
                  "stations": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "I",
                        "1/4",
                        "2/4",
                        "3/4",
                        "J"
                      ]
                    },
                    "description": "Stations along each element (default all five)."
                  },
                  "stages": {
                    "type": "object",
                    "additionalProperties": {
                      "enum": [
                        "comp",
                        "girder",
                        "stage1",
                        "ps"
                      ]
                    },
                    "description": "Prestressed sections: load case name -> girder (self-weight at transfer and on the girder), stage1 (on the precast girder, e.g. wet slab), ps (the model's own prestress case: removed, the tendons carry it), comp (composite, default). PS-type cases default to ps."
                  },
                  "settings": {
                    "type": "object",
                    "description": "The plugin's Loads > Settings (defaults as the window).",
                    "properties": {
                      "code": {
                        "enum": [
                          "EN1992_1_1_2004",
                          "EN1992_2_2005"
                        ],
                        "description": "default EN1992_1_1_2004; EN1992_2_2005 for bridges"
                      },
                      "annex": {
                        "enum": [
                          "EU",
                          "EU_UK",
                          "EU_DE",
                          "EU_IE"
                        ],
                        "description": "National Annex (default EU recommended)"
                      },
                      "exposure": {
                        "enum": [
                          "X0_XC1",
                          "XC2_XC4",
                          "XD_XS"
                        ]
                      },
                      "wkLimit": {
                        "type": "number",
                        "description": "RC crack width limit mm (0.3)"
                      },
                      "wkPsc": {
                        "type": "number",
                        "description": "bonded tendons crack width limit mm (0.2)"
                      },
                      "loadDuration": {
                        "enum": [
                          "long_term",
                          "short_term"
                        ]
                      },
                      "creepCoefficient": {
                        "type": "number"
                      },
                      "checkK1": {
                        "type": "boolean"
                      },
                      "checkK3": {
                        "type": "boolean"
                      },
                      "tensionShift": {
                        "type": "boolean"
                      },
                      "negligibleForce": {
                        "type": "number"
                      },
                      "negligibleMoment": {
                        "type": "number"
                      },
                      "decompressionDepth": {
                        "type": "number"
                      },
                      "gammaPFav": {
                        "type": "number"
                      },
                      "bending": {
                        "enum": [
                          "biaxial",
                          "uniaxial"
                        ],
                        "description": "biaxial (default): My + Mz. uniaxial: Mz set to 0 on every row (grillage models, where Mz is not a real section moment); Vy and T still checked, each row notes the Mz it left out."
                      }
                    },
                    "additionalProperties": false
                  },
                  "signs": {
                    "type": "object",
                    "properties": {
                      "axial": {
                        "enum": [
                          -1,
                          1
                        ],
                        "description": "-1 (default): positive MIDAS axial is tension"
                      },
                      "my": {
                        "enum": [
                          1,
                          -1
                        ],
                        "description": "1 (default): positive My is sagging"
                      },
                      "mz": {
                        "enum": [
                          1,
                          -1
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "screen": {
                    "type": "boolean",
                    "description": "Check only the governing candidates (force extremes per section and limit state) instead of every row."
                  },
                  "maxRows": {
                    "type": "integer",
                    "description": "Stop above this many distinct force sets (default 2000)."
                  },
                  "maxResults": {
                    "type": "integer",
                    "description": "worst rows to list (default 30)"
                  },
                  "maxGoverning": {
                    "type": "integer"
                  },
                  "includeJob": {
                    "type": "boolean",
                    "description": "also return the exact engine job (sections) and the engine rows of the listed worst rows, for audit or re-running"
                  }
                },
                "required": [
                  "sections"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec2_export_calc_sheet": {
      "post": {
        "operationId": "ec2_export_calc_sheet",
        "summary": "Eurocode Section Checker: calculation sheet (Excel)",
        "description": "Use for the EN 1992 Excel calculation sheet. For CS 455 use cs455_export_calc_sheet. The report. Runs the check exactly as ec2_section_check and writes the plugin's calculation sheet (.xlsx in the CS 455 reference format, EN 1992 content, live formulas): one sheet per section - geometry, materials, ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sections": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": [
                            "integer",
                            "string"
                          ],
                          "description": "CIVIL NX section id."
                        },
                        "grade": {
                          "type": "string",
                          "description": "EN 206 class, e.g. C35/45 (default: from the model material, else C30/37 assumed)."
                        },
                        "steel": {
                          "enum": [
                            "B500A",
                            "B500B",
                            "B500C"
                          ],
                          "description": "default B500B"
                        },
                        "rebar": {
                          "type": "object",
                          "description": "The bar schedule, as the plugin's Reinforcement tab: cover (mm to the bar face, default 40), gap (mm between layers, default max(25, Ø)), rows [{face: bottom|top|side|depth, layer (1 = nearest the face), count ('6' bars or '@150' spacing), dia (mm), depth (mm below the top, face 'depth'), which (side bars: both|left|right), span/from/to}], coords {datum: bc|bl|tc, text: 'y z dia' per line, mm}.",
                          "properties": {
                            "cover": {
                              "type": "number"
                            },
                            "gap": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "rows": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "face": {
                                    "enum": [
                                      "bottom",
                                      "top",
                                      "side",
                                      "depth"
                                    ]
                                  },
                                  "layer": {
                                    "type": "integer"
                                  },
                                  "count": {
                                    "type": [
                                      "string",
                                      "integer"
                                    ]
                                  },
                                  "dia": {
                                    "type": [
                                      "number",
                                      "string"
                                    ]
                                  },
                                  "depth": {
                                    "type": [
                                      "number",
                                      "string"
                                    ]
                                  },
                                  "which": {
                                    "enum": [
                                      "both",
                                      "left",
                                      "right"
                                    ]
                                  },
                                  "span": {
                                    "type": "string"
                                  },
                                  "from": {
                                    "type": [
                                      "number",
                                      "string"
                                    ]
                                  },
                                  "to": {
                                    "type": [
                                      "number",
                                      "string"
                                    ]
                                  }
                                },
                                "required": [
                                  "face",
                                  "count",
                                  "dia"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "coords": {
                              "type": "object",
                              "properties": {
                                "datum": {
                                  "enum": [
                                    "bc",
                                    "bl",
                                    "tc"
                                  ]
                                },
                                "text": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        },
                        "links": {
                          "type": "object",
                          "description": "Shear links (omit for no links: members without shear reinforcement, EC2 6.2.2).",
                          "properties": {
                            "dia": {
                              "type": "number",
                              "description": "mm (default 10)"
                            },
                            "spacing": {
                              "type": "number",
                              "description": "mm along the member"
                            },
                            "legs": {
                              "type": "integer",
                              "description": "legs for Vz (default 2)"
                            },
                            "legsY": {
                              "type": "integer",
                              "description": "legs for Vy (default 2)"
                            },
                            "angle": {
                              "type": "number",
                              "description": "45-90°, default 90"
                            }
                          },
                          "required": [
                            "spacing"
                          ],
                          "additionalProperties": false
                        },
                        "member": {
                          "type": "object",
                          "description": "Check as a column, pier or pile (EC2 5.8 slenderness, imperfections, nominal-curvature second order; pile: bored-pile minimum steel 9.8.5) instead of a beam. Default: column when the elements are mostly vertical, else beam. Effective length l0 = k * length about each axis: caseY/caseZ from EC2 Fig 5.7 (a pinned both ends 1.0, b cantilever 2.0, c fixed-pinned 0.7, d fixed both 0.5, e fixed both, sway 1.0, f fixed-pinned, sway 2.0) or kY/kZ.",
                          "properties": {
                            "type": {
                              "enum": [
                                "beam",
                                "column",
                                "pier",
                                "pile"
                              ]
                            },
                            "length": {
                              "type": "number",
                              "description": "metres (default: the longest run of joined elements with this section)"
                            },
                            "caseY": {
                              "enum": [
                                "a",
                                "b",
                                "c",
                                "d",
                                "e",
                                "f",
                                "custom"
                              ]
                            },
                            "caseZ": {
                              "enum": [
                                "a",
                                "b",
                                "c",
                                "d",
                                "e",
                                "f",
                                "custom"
                              ]
                            },
                            "kY": {
                              "type": "number"
                            },
                            "kZ": {
                              "type": "number"
                            },
                            "phiEf": {
                              "type": "number",
                              "description": "effective creep ratio (5.8.4), default from the engine"
                            },
                            "uncased": {
                              "type": "boolean",
                              "description": "pile: bored without casing (EC2 2.3.4.2(2) reduced diameter)"
                            }
                          },
                          "additionalProperties": false
                        },
                        "psc": {
                          "type": "object",
                          "description": "Prestressed beam (EC2 5.10, 6.1, 7.1-7.3; 6.2.5 interface shear when composite): every tendon at its own position. tendons: the plugin's text lines - 'y z Ap [sigma_pm0]' for one tendon, 'y1 z1 y2 z2 n Ap [sigma_pm0]' for a line of n - with Ap in mm² or a strand '15.7s' or '19x15.7', coordinates mm from the datum (bc = bottom centre, bl = bottom left, tc = top centre, z down); or a list [{y, z, area, sigma0?}]. Stage 1 (prestress, girder self-weight, load cases tagged stage1) acts on the girder alone; give composite for a precast girder + deck slab.",
                          "properties": {
                            "method": {
                              "enum": [
                                "pre",
                                "post"
                              ]
                            },
                            "fpk": {
                              "type": "number"
                            },
                            "fp01k": {
                              "type": "number"
                            },
                            "Ep": {
                              "type": "number"
                            },
                            "sigmaMax": {
                              "type": "number"
                            },
                            "sigmaPm0": {
                              "type": "number",
                              "description": "MPa after immediate losses (default 1300)"
                            },
                            "lossPercent": {
                              "type": "number",
                              "description": "time-dependent losses, % (default 15)"
                            },
                            "fckt": {
                              "type": "number",
                              "description": "f_ck at transfer (default 0.7 f_ck)"
                            },
                            "rSup": {
                              "type": "number"
                            },
                            "rInf": {
                              "type": "number"
                            },
                            "duct": {
                              "type": "number",
                              "description": "post-tensioning duct diameter, mm"
                            },
                            "ductType": {
                              "enum": [
                                "metal",
                                "plastic"
                              ]
                            },
                            "alphaL": {
                              "type": "number"
                            },
                            "k6": {
                              "type": "boolean"
                            },
                            "datum": {
                              "enum": [
                                "bc",
                                "bl",
                                "tc"
                              ]
                            },
                            "tendons": {
                              "type": [
                                "string",
                                "array"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  },
                                  "area": {
                                    "type": [
                                      "number",
                                      "string"
                                    ]
                                  },
                                  "sigma0": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "y",
                                  "z",
                                  "area"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "points": {
                              "type": [
                                "string",
                                "array"
                              ],
                              "description": "extra stress points 'y z [label]'",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  },
                                  "label": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "y",
                                  "z"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "composite": {
                              "type": "object",
                              "properties": {
                                "grade": {
                                  "type": "string",
                                  "description": "slab concrete class, e.g. C30/37"
                                },
                                "slab": {
                                  "enum": [
                                    "extras",
                                    "depth"
                                  ],
                                  "description": "the section's deck-slab region (default when it has one) or everything above a depth"
                                },
                                "depth": {
                                  "type": "number",
                                  "description": "mm from the top"
                                },
                                "roughness": {
                                  "enum": [
                                    "very_smooth",
                                    "smooth",
                                    "rough",
                                    "indented"
                                  ],
                                  "description": "EC2 6.2.5(2), default rough"
                                },
                                "asi": {
                                  "type": "number",
                                  "description": "interface steel mm²/m"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "tendons"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "description": "One entry per section to check, with its reinforcement (and psc for a prestressed beam)."
                  },
                  "elements": {
                    "type": [
                      "array",
                      "string"
                    ],
                    "items": {
                      "type": "integer"
                    },
                    "description": "Beam elements to check ('101to104 201' or a list). Default: every element of the listed sections."
                  },
                  "group": {
                    "type": "string",
                    "description": "Or a structure group name."
                  },
                  "cases": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "kind": {
                              "enum": [
                                "ULS",
                                "SLS_CHAR",
                                "SLS_FREQ",
                                "SLS_QP"
                              ]
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "description": "Combinations (or load cases) by name, optionally with the limit state. Default: every readable combination with the limit state read from its name / CIVIL NX type (frequent ones only when a section is prestressed)."
                  },
                  "stations": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "I",
                        "1/4",
                        "2/4",
                        "3/4",
                        "J"
                      ]
                    },
                    "description": "Stations along each element (default all five)."
                  },
                  "stages": {
                    "type": "object",
                    "additionalProperties": {
                      "enum": [
                        "comp",
                        "girder",
                        "stage1",
                        "ps"
                      ]
                    },
                    "description": "Prestressed sections: load case name -> girder (self-weight at transfer and on the girder), stage1 (on the precast girder, e.g. wet slab), ps (the model's own prestress case: removed, the tendons carry it), comp (composite, default). PS-type cases default to ps."
                  },
                  "settings": {
                    "type": "object",
                    "description": "The plugin's Loads > Settings (defaults as the window).",
                    "properties": {
                      "code": {
                        "enum": [
                          "EN1992_1_1_2004",
                          "EN1992_2_2005"
                        ],
                        "description": "default EN1992_1_1_2004; EN1992_2_2005 for bridges"
                      },
                      "annex": {
                        "enum": [
                          "EU",
                          "EU_UK",
                          "EU_DE",
                          "EU_IE"
                        ],
                        "description": "National Annex (default EU recommended)"
                      },
                      "exposure": {
                        "enum": [
                          "X0_XC1",
                          "XC2_XC4",
                          "XD_XS"
                        ]
                      },
                      "wkLimit": {
                        "type": "number",
                        "description": "RC crack width limit mm (0.3)"
                      },
                      "wkPsc": {
                        "type": "number",
                        "description": "bonded tendons crack width limit mm (0.2)"
                      },
                      "loadDuration": {
                        "enum": [
                          "long_term",
                          "short_term"
                        ]
                      },
                      "creepCoefficient": {
                        "type": "number"
                      },
                      "checkK1": {
                        "type": "boolean"
                      },
                      "checkK3": {
                        "type": "boolean"
                      },
                      "tensionShift": {
                        "type": "boolean"
                      },
                      "negligibleForce": {
                        "type": "number"
                      },
                      "negligibleMoment": {
                        "type": "number"
                      },
                      "decompressionDepth": {
                        "type": "number"
                      },
                      "gammaPFav": {
                        "type": "number"
                      },
                      "bending": {
                        "enum": [
                          "biaxial",
                          "uniaxial"
                        ],
                        "description": "biaxial (default): My + Mz. uniaxial: Mz set to 0 on every row (grillage models, where Mz is not a real section moment); Vy and T still checked, each row notes the Mz it left out."
                      }
                    },
                    "additionalProperties": false
                  },
                  "signs": {
                    "type": "object",
                    "properties": {
                      "axial": {
                        "enum": [
                          -1,
                          1
                        ],
                        "description": "-1 (default): positive MIDAS axial is tension"
                      },
                      "my": {
                        "enum": [
                          1,
                          -1
                        ],
                        "description": "1 (default): positive My is sagging"
                      },
                      "mz": {
                        "enum": [
                          1,
                          -1
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "screen": {
                    "type": "boolean",
                    "description": "Check only the governing candidates (force extremes per section and limit state) instead of every row."
                  },
                  "maxRows": {
                    "type": "integer",
                    "description": "Stop above this many distinct force sets (default 2000)."
                  },
                  "sheetSections": {
                    "type": "array",
                    "items": {
                      "type": [
                        "string",
                        "integer"
                      ]
                    },
                    "description": "Sections to give a sheet (default every checked section)."
                  },
                  "report": {
                    "type": "object",
                    "properties": {
                      "projectNo": {
                        "type": "string"
                      },
                      "project": {
                        "type": "string"
                      },
                      "client": {
                        "type": "string"
                      },
                      "preparedBy": {
                        "type": "string"
                      },
                      "checkedBy": {
                        "type": "string"
                      },
                      "date": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": [
                  "sections"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec_combinations_read": {
      "post": {
        "operationId": "ec_combinations_read",
        "summary": "Read the model for Eurocode combinations",
        "description": "Use before ec_combinations_apply. For CS 454 use cs454_combinations_read; to list or explore the combinations already in the model use combination_tree. Reads the open model the way the Eurocode Load Combinations plugin does: every static, moving (characteristic/frequent pairs), construction-stage, ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec_combinations_apply": {
      "post": {
        "operationId": "ec_combinations_apply",
        "summary": "Generate and write Eurocode load combinations",
        "description": "Use for the full EN 1990 bridge combination set. For CS 454 use cs454_combinations_apply; for a few hand-picked combinations use civil_combinations_quick. Generates EN 1990 bridge load combinations with the Eurocode Load Combinations plugin's engine (6.10 / 6.10a+b, SLS characteristic / frequent / q",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mapping": {
                    "type": "object",
                    "description": "Changes to the mapping ec_combinations_read shows; only the rows to change. Rows match by caseId, else caseName (moving rows by charCaseName).",
                    "properties": {
                      "staticRows": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "caseId": {
                              "type": "string"
                            },
                            "caseName": {
                              "type": "string"
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "action": {
                              "enum": [
                                "G",
                                "P",
                                "Q",
                                "Ad"
                              ]
                            },
                            "subtype": {
                              "type": "string",
                              "description": "Q: Traffic, BRK, Accel, CF, Wind, WL, TU, TG, Snow, Rain, Ice, EP, ES, Hydro, Other. Ad: IL, Impact."
                            }
                          }
                        }
                      },
                      "movingRows": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "charCaseName": {
                              "type": "string"
                            },
                            "freqCaseName": {
                              "type": "string",
                              "description": "Its frequent pair (\"\" = none)."
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "psiManual": {
                              "type": "object",
                              "properties": {
                                "psi0": {
                                  "type": "number"
                                },
                                "psi1": {
                                  "type": "number"
                                },
                                "psi2": {
                                  "type": "number"
                                }
                              },
                              "description": "ψ for a case without a Freq pair (user-defined vehicle)."
                            }
                          }
                        }
                      },
                      "csaRows": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      },
                      "settlementRows": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      },
                      "rsaRows": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      }
                    }
                  },
                  "scope": {
                    "type": "object",
                    "description": "Default: ULS 6.10a + 6.10b only. UK and Irish annexes require 6.10 for bridges.",
                    "properties": {
                      "uls": {
                        "type": "object",
                        "properties": {
                          "use610": {
                            "type": "boolean"
                          },
                          "use610a": {
                            "type": "boolean"
                          },
                          "use610b": {
                            "type": "boolean"
                          }
                        }
                      },
                      "sls": {
                        "type": "object",
                        "properties": {
                          "characteristic": {
                            "type": "boolean"
                          },
                          "frequent": {
                            "type": "boolean"
                          },
                          "quasiPermanent": {
                            "type": "boolean"
                          }
                        }
                      },
                      "accidental": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "mainVariableQKey": {
                            "type": "string"
                          }
                        }
                      },
                      "seismic": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "orthogonalPairs": {
                            "type": "boolean"
                          }
                        }
                      },
                      "thermal": {
                        "type": "object",
                        "properties": {
                          "pairingEnabled": {
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  },
                  "factors": {
                    "type": "object",
                    "description": "Annex, bridge type and typed overrides (only finite numbers are taken).",
                    "properties": {
                      "naId": {
                        "enum": [
                          "EN1990-A2-REC",
                          "UKNA-EN1990-A2",
                          "IENA-EN1990-A2"
                        ]
                      },
                      "bridgeType": {
                        "enum": [
                          "ROAD",
                          "FOOT",
                          "RAIL"
                        ]
                      },
                      "gamma": {
                        "type": "object",
                        "properties": {
                          "G_unf": {
                            "type": "number"
                          },
                          "G_fav": {
                            "type": "number"
                          },
                          "P": {
                            "type": "number"
                          },
                          "Q": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "number"
                            }
                          }
                        }
                      },
                      "psi": {
                        "type": "object",
                        "properties": {
                          "psi0": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "number"
                            }
                          },
                          "psi1": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "number"
                            }
                          },
                          "psi2": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "number"
                            }
                          }
                        }
                      },
                      "xi": {
                        "type": "number"
                      },
                      "gammaI": {
                        "type": "number"
                      },
                      "omegaN": {
                        "type": "number"
                      },
                      "omegaM": {
                        "type": "number"
                      }
                    }
                  },
                  "collapseExclusive": {
                    "type": "boolean",
                    "description": "Combine exclusive alternatives into one envelope sub-combination (the plugin's default per relation)."
                  },
                  "groups": {
                    "type": "object",
                    "description": "Advanced: the Groups & Relations state { groups, withinCategory, constraints }. Omit to build them automatically from the mapping, as the plugin does."
                  },
                  "commit": {
                    "type": "object",
                    "properties": {
                      "target": {
                        "enum": [
                          "GEN",
                          "CONC",
                          "STEEL",
                          "SRC",
                          "STLCOMP"
                        ],
                        "default": "GEN"
                      },
                      "existingHandling": {
                        "enum": [
                          "KEEP",
                          "DELETE_TARGET",
                          "DELETE_ALL"
                        ],
                        "description": "Required when the target already holds combinations. Deleting only with the user's agreement."
                      },
                      "prefix": {
                        "type": "string",
                        "description": "At most 2 characters, added as <prefix>_<name>."
                      },
                      "includeEnvelopes": {
                        "type": "boolean",
                        "default": false,
                        "description": "Also write one envelope per family (General only)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "show": {
                    "type": "object",
                    "description": "Which combinations to list in the preview (all are written).",
                    "properties": {
                      "family": {
                        "type": "string"
                      },
                      "nameContains": {
                        "type": "string"
                      },
                      "limit": {
                        "type": "integer",
                        "default": 30
                      }
                    },
                    "additionalProperties": false
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec_lane_layout": {
      "post": {
        "operationId": "ec_lane_layout",
        "summary": "EN 1991-2 notional lanes for a carriageway",
        "description": "Use to lay out EN 1991-2 notional lanes on a carriageway width, with no model. For CS 454 lanes use cs454_lane_layout; to write lanes and vehicles use ec_moving_loads. Lays out EN 1991-2 lanes on a carriageway cross-section with the Eurocode - Moving Load Wizard's own layout engine: Table 4.1 notion",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "section": {
                    "type": "object",
                    "description": "Cross-section, m: width (carriageway), kerbOffset, footways, verges, central reserve.",
                    "additionalProperties": true
                  },
                  "lanes": {
                    "type": "object",
                    "description": "Lane options: prefix (default EC), wheelSpace, optimiseNotional / allowWidth, lm2Manual / lm2Centre, sv / svCentre / svWidth (LM3 route), tracks { tracks, firstTrack, spacing, gauge }, userLanes. Where the notional lanes and the remaining area sit: placements, a list of { packing: LEFT (lanes against the low-offset kerb, the default) | RIGHT (high-offset kerb) | BETWEEN with remBetween k (remaining area between lanes k and k+1) | OFFSET with blockOffset m (lane block that far from the low-offset kerb, remaining area split into REM and REM 2) }, and sweep { on, from, to, step } (the lane block stepped across the remaining area, at most 40 offsets). One placement keeps the plain names (EC L1, EC REM); several, ticked or swept, are each their own lane set (EC A1 L1, EC A2 L1 …) with their own cases (names ending A1, A2 …), never combined in one case. packing alone (LEFT|RIGHT) is still read as one placement.",
                    "additionalProperties": true,
                    "properties": {
                      "placements": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "packing": {
                              "type": "string",
                              "enum": [
                                "LEFT",
                                "RIGHT",
                                "BETWEEN",
                                "OFFSET"
                              ]
                            },
                            "remBetween": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "blockOffset": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "required": [
                            "packing"
                          ]
                        }
                      },
                      "sweep": {
                        "type": "object",
                        "properties": {
                          "on": {
                            "type": "boolean"
                          },
                          "from": {
                            "type": "number"
                          },
                          "to": {
                            "type": "number"
                          },
                          "step": {
                            "type": "number",
                            "minimum": 0.01
                          }
                        }
                      }
                    }
                  },
                  "loading": {
                    "type": "object",
                    "description": "Loading (the plugin's Loading step): disciplines (ROAD, FATIGUE, RAIL), groups (gr1a, gr1b, gr3, gr4, gr5 — the road models follow), roadModels / excludedModels, fatigueModels, railModels, lm3Vehicles, psiValues (CHARACTERISTIC, FREQUENT), factors (alphaPreset EN|UK, alphaQ, alphaq…, footwayCombination), laneLoading, minLoadedLanes / maxLoadedLanes, straddle (MANUAL|ADJACENT), loadRemainingArea, userCases, ieRail…",
                    "additionalProperties": true,
                    "properties": {
                      "disciplines": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "groups": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "psiValues": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "lm3Vehicles": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec_moving_loads_read": {
      "post": {
        "operationId": "ec_moving_loads_read",
        "summary": "Read the model for Eurocode moving loads",
        "description": "Use before ec_moving_loads. For CS 454 traffic use cs454_moving_loads_read. Read-only: changes nothing in the model. Call it before ec_moving_loads to see what the Eurocode - Moving Load Wizard would do. Returns: existing (the lanes, vehicles, cases and groups already in the model, each marked if an",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "configFile": {
                    "type": [
                      "string",
                      "object"
                    ],
                    "description": "The plugin's own Export JSON settings file (or its \"config\"), as text or object: starts from those settings instead of the defaults. The deck is then not re-read unless readDeck: true."
                  },
                  "laneSource": {
                    "enum": [
                      "NEW",
                      "EXISTING"
                    ],
                    "default": "NEW",
                    "description": "NEW shows the lanes the settings would lay out; EXISTING shows the lanes already in the model."
                  },
                  "laneKind": {
                    "enum": [
                      "LINE",
                      "SURFACE"
                    ],
                    "description": "Default: what the model suggests (beams -> LINE, plates -> SURFACE)."
                  },
                  "readDeck": {
                    "type": "boolean",
                    "description": "Read the reference line / alignment, width, kerb offset, cross beams and skew from the deck (default on, off over a loaded settings file)."
                  },
                  "deckFilter": {
                    "type": "object",
                    "description": "Read the deck only from these members, as the plugin's Show only: group (structure group name), section (\"S:<id>\" beam section or \"T:<id>\" plate thickness), zMin / zMax (level band, m).",
                    "additionalProperties": true,
                    "properties": {
                      "group": {
                        "type": "string"
                      },
                      "section": {
                        "type": "string"
                      },
                      "zMin": {
                        "type": "number"
                      },
                      "zMax": {
                        "type": "number"
                      }
                    }
                  },
                  "trafficOtherWay": {
                    "type": "boolean",
                    "description": "Read the deck the other way round (the plugin's \"Traffic runs the other way\")."
                  },
                  "section": {
                    "type": "object",
                    "description": "Carriageway cross-section, m: width, kerbOffset, verges, footways, central reserve… width/kerbOffset are read from the deck if omitted, but the read measures between the outermost girder lines it sees (overhangs not counted unless built as edge lines): where the deck overhangs the outer girders pass width (full carriageway) and kerbOffset (reference girder to kerb; negative when the kerb lies outside the reference girder) yourself.",
                    "additionalProperties": true
                  },
                  "reference": {
                    "type": "object",
                    "description": "Line lanes: the reference line. mode RANGE (range: element ids e.g. '1-10'), GROUP (group), or NODES (nodes: [ids], shape).",
                    "additionalProperties": true
                  },
                  "surface": {
                    "type": "object",
                    "description": "Surface lanes: the alignment. mode GROUP (group), NODES (nodes) or RANGE (range).",
                    "additionalProperties": true
                  },
                  "writeOptions": {
                    "type": "object",
                    "description": "Lane write options the write tool would use (loadDist, groupName, moving, skewStart/skewEnd); here they only shape the lanes shown.",
                    "additionalProperties": true
                  },
                  "codeChange": {
                    "type": "boolean",
                    "default": false,
                    "description": "A permission for the write tool. Here it only changes which blockers are listed — this tool never writes. Accepted so the same inputs serve both tools."
                  },
                  "unitSwitch": {
                    "type": "boolean",
                    "default": false,
                    "description": "A permission for the write tool. Here it only changes which blockers are listed — this tool never writes. Accepted so the same inputs serve both tools."
                  },
                  "config": {
                    "type": "object",
                    "description": "Advanced: any other plugin configuration field, deep-merged over the settings.",
                    "additionalProperties": true
                  },
                  "lanes": {
                    "type": "object",
                    "description": "Lane options: prefix (default EC), wheelSpace, optimiseNotional / allowWidth, lm2Manual / lm2Centre, sv / svCentre / svWidth (LM3 route), tracks { tracks, firstTrack, spacing, gauge }, userLanes. Where the notional lanes and the remaining area sit: placements, a list of { packing: LEFT (lanes against the low-offset kerb, the default) | RIGHT (high-offset kerb) | BETWEEN with remBetween k (remaining area between lanes k and k+1) | OFFSET with blockOffset m (lane block that far from the low-offset kerb, remaining area split into REM and REM 2) }, and sweep { on, from, to, step } (the lane block stepped across the remaining area, at most 40 offsets). One placement keeps the plain names (EC L1, EC REM); several, ticked or swept, are each their own lane set (EC A1 L1, EC A2 L1 …) with their own cases (names ending A1, A2 …), never combined in one case. packing alone (LEFT|RIGHT) is still read as one placement.",
                    "additionalProperties": true,
                    "properties": {
                      "placements": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "packing": {
                              "type": "string",
                              "enum": [
                                "LEFT",
                                "RIGHT",
                                "BETWEEN",
                                "OFFSET"
                              ]
                            },
                            "remBetween": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "blockOffset": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "required": [
                            "packing"
                          ]
                        }
                      },
                      "sweep": {
                        "type": "object",
                        "properties": {
                          "on": {
                            "type": "boolean"
                          },
                          "from": {
                            "type": "number"
                          },
                          "to": {
                            "type": "number"
                          },
                          "step": {
                            "type": "number",
                            "minimum": 0.01
                          }
                        }
                      }
                    }
                  },
                  "loading": {
                    "type": "object",
                    "description": "Loading (the plugin's Loading step): disciplines (ROAD, FATIGUE, RAIL), groups (gr1a, gr1b, gr3, gr4, gr5 — the road models follow), roadModels / excludedModels, fatigueModels, railModels, lm3Vehicles, psiValues (CHARACTERISTIC, FREQUENT), factors (alphaPreset EN|UK, alphaQ, alphaq…, footwayCombination), laneLoading, minLoadedLanes / maxLoadedLanes, straddle (MANUAL|ADJACENT), loadRemainingArea, userCases, ieRail…",
                    "additionalProperties": true,
                    "properties": {
                      "disciplines": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "groups": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "psiValues": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "lm3Vehicles": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "irishRailTrains": {
                    "type": [
                      "boolean",
                      "array"
                    ],
                    "items": {
                      "type": "string"
                    },
                    "description": "Irish Rail CCE-STR-PSD-008 Appendix C trains on the tracks: true for all, or train ids / names (ec_moving_loads_read options). Dynamic factor settings in loading.ieRail."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec_moving_loads": {
      "post": {
        "operationId": "ec_moving_loads",
        "summary": "Eurocode - Moving Load Wizard",
        "description": "Use for EN 1991-2 traffic loading (lanes, vehicles, moving-load cases). For UK CS 454 assessment use cs454_moving_loads; to spread existing point loads into patches use point_to_patch_apply. EN 1991-2 traffic loading with the Eurocode - Moving Load Wizard plugin's own engine: lanes laid out on the c",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "configFile": {
                    "type": [
                      "string",
                      "object"
                    ],
                    "description": "The plugin's own Export JSON settings file (or its \"config\"), as text or object: starts from those settings instead of the defaults. The deck is then not re-read unless readDeck: true."
                  },
                  "laneSource": {
                    "enum": [
                      "NEW",
                      "EXISTING"
                    ],
                    "default": "NEW",
                    "description": "NEW lays out and writes lanes; EXISTING loads the lanes already in the model."
                  },
                  "laneKind": {
                    "enum": [
                      "LINE",
                      "SURFACE"
                    ],
                    "description": "Default: what the model suggests (beams -> LINE, plates -> SURFACE)."
                  },
                  "readDeck": {
                    "type": "boolean",
                    "description": "Read the reference line / alignment, width, kerb offset, cross beams and skew from the deck (default on, off over a loaded settings file)."
                  },
                  "deckFilter": {
                    "type": "object",
                    "description": "Read the deck only from these members, as the plugin's Show only: group (structure group name), section (\"S:<id>\" beam section or \"T:<id>\" plate thickness), zMin / zMax (level band, m).",
                    "additionalProperties": true,
                    "properties": {
                      "group": {
                        "type": "string"
                      },
                      "section": {
                        "type": "string"
                      },
                      "zMin": {
                        "type": "number"
                      },
                      "zMax": {
                        "type": "number"
                      }
                    }
                  },
                  "trafficOtherWay": {
                    "type": "boolean",
                    "description": "Read the deck the other way round (the plugin's \"Traffic runs the other way\")."
                  },
                  "section": {
                    "type": "object",
                    "description": "Carriageway cross-section, m: width, kerbOffset, verges, footways, central reserve… width/kerbOffset are read from the deck if omitted, but the read measures between the outermost girder lines it sees (overhangs not counted unless built as edge lines): where the deck overhangs the outer girders pass width (full carriageway) and kerbOffset (reference girder to kerb; negative when the kerb lies outside the reference girder) yourself.",
                    "additionalProperties": true
                  },
                  "reference": {
                    "type": "object",
                    "description": "Line lanes: the reference line. mode RANGE (range: element ids e.g. '1-10'), GROUP (group), or NODES (nodes: [ids], shape).",
                    "additionalProperties": true
                  },
                  "surface": {
                    "type": "object",
                    "description": "Surface lanes: the alignment. mode GROUP (group), NODES (nodes) or RANGE (range).",
                    "additionalProperties": true
                  },
                  "writeOptions": {
                    "type": "object",
                    "description": "Lane write options: loadDist LANE|CROSS, groupName (cross-beam group), moving BOTH|FORWARD|BACKWARD, skewStart, skewEnd (°; read from the deck when omitted, but pass them on a skew deck: the read has returned 0 for the end skew). With CROSS every wheel line (lane centre ± wheelSpace/2) must lie on a member of groupName, or CIVIL NX refuses the analysis (\"does not intersect a Cross Beam\").",
                    "additionalProperties": true
                  },
                  "codeChange": {
                    "type": "boolean",
                    "default": false,
                    "description": "Allow setting the moving load code to EUROCODE. Changing it from another code DELETES every lane in the model — only with the user's agreement."
                  },
                  "unitSwitch": {
                    "type": "boolean",
                    "default": false,
                    "description": "Allow switching CIVIL NX to kN, m for the write and back afterwards (needed for non-SI models)."
                  },
                  "config": {
                    "type": "object",
                    "description": "Advanced: any other plugin configuration field, deep-merged over the settings.",
                    "additionalProperties": true
                  },
                  "scope": {
                    "enum": [
                      "ALL",
                      "LANES",
                      "LOADS"
                    ],
                    "default": "ALL",
                    "description": "ALL = lanes + vehicles + cases; LANES = lanes only; LOADS = vehicles and cases on the model's existing lanes."
                  },
                  "lanes": {
                    "type": "object",
                    "description": "Lane options: prefix (default EC), wheelSpace, optimiseNotional / allowWidth, lm2Manual / lm2Centre, sv / svCentre / svWidth (LM3 route), tracks { tracks, firstTrack, spacing, gauge }, userLanes. Where the notional lanes and the remaining area sit: placements, a list of { packing: LEFT (lanes against the low-offset kerb, the default) | RIGHT (high-offset kerb) | BETWEEN with remBetween k (remaining area between lanes k and k+1) | OFFSET with blockOffset m (lane block that far from the low-offset kerb, remaining area split into REM and REM 2) }, and sweep { on, from, to, step } (the lane block stepped across the remaining area, at most 40 offsets). One placement keeps the plain names (EC L1, EC REM); several, ticked or swept, are each their own lane set (EC A1 L1, EC A2 L1 …) with their own cases (names ending A1, A2 …), never combined in one case. packing alone (LEFT|RIGHT) is still read as one placement.",
                    "additionalProperties": true,
                    "properties": {
                      "placements": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "packing": {
                              "type": "string",
                              "enum": [
                                "LEFT",
                                "RIGHT",
                                "BETWEEN",
                                "OFFSET"
                              ]
                            },
                            "remBetween": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "blockOffset": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "required": [
                            "packing"
                          ]
                        }
                      },
                      "sweep": {
                        "type": "object",
                        "properties": {
                          "on": {
                            "type": "boolean"
                          },
                          "from": {
                            "type": "number"
                          },
                          "to": {
                            "type": "number"
                          },
                          "step": {
                            "type": "number",
                            "minimum": 0.01
                          }
                        }
                      }
                    }
                  },
                  "loading": {
                    "type": "object",
                    "description": "Loading (the plugin's Loading step): disciplines (ROAD, FATIGUE, RAIL), groups (gr1a, gr1b, gr3, gr4, gr5 — the road models follow), roadModels / excludedModels, fatigueModels, railModels, lm3Vehicles, psiValues (CHARACTERISTIC, FREQUENT), factors (alphaPreset EN|UK, alphaQ, alphaq…, footwayCombination), laneLoading, minLoadedLanes / maxLoadedLanes, straddle (MANUAL|ADJACENT), loadRemainingArea, userCases, ieRail…",
                    "additionalProperties": true,
                    "properties": {
                      "disciplines": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "groups": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "psiValues": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "lm3Vehicles": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "irishRailTrains": {
                    "type": [
                      "boolean",
                      "array"
                    ],
                    "items": {
                      "type": "string"
                    },
                    "description": "Irish Rail CCE-STR-PSD-008 Appendix C trains on the tracks: true for all, or train ids / names (ec_moving_loads_read options). Dynamic factor settings in loading.ieRail."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec_wind_bridge": {
      "post": {
        "operationId": "ec_wind_bridge",
        "summary": "Bridge wind loads (EN 1991-1-4 §8 or CS 454)",
        "description": "Use for bridge deck wind values (EN 1991-1-4 or CS 454) without touching the model. To write them use ec_wind_apply; for the Excel hand calculation use ec_wind_export_calc_sheet. Calculates wind on a bridge deck with the Wind Load Calculator plugin's own engine (formerly Eurocode Wind Loads). code E",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "enum": [
                      "EN",
                      "CS454"
                    ],
                    "default": "EN",
                    "description": "Design code: EN = EN 1991-1-4 §8 (with nationalAnnex); CS454 = CS 454 Rev 0 Appendix D (UK assessment), which ignores the EN climate inputs and uses cs454 instead. CS 454 loads are written nominal as C454W_ cases."
                  },
                  "cs454": {
                    "type": "object",
                    "description": "CS 454 Appendix D inputs (code: CS454). The deck geometry stays in bridge.",
                    "properties": {
                      "method": {
                        "enum": [
                          "full",
                          "simplified"
                        ],
                        "default": "full",
                        "description": "full = Appendix D; simplified = cl 5.33.1 6 kN/m² (highway, slab / beam-and-slab, L ≤ 20 m, b ≥ 10 m)."
                      },
                      "vb": {
                        "type": "number",
                        "description": "Basic mean hourly wind speed Vb (Figure D.1), m/s."
                      },
                      "use": {
                        "enum": [
                          "highway",
                          "rail",
                          "foot"
                        ],
                        "default": "highway"
                      },
                      "altitude": {
                        "type": "number",
                        "description": "Site altitude Δ, m (Sa)."
                      },
                      "seaKm": {
                        "type": "number",
                        "description": "Distance from the sea, km (Table D.4 / D.5)."
                      },
                      "town": {
                        "type": "boolean",
                        "description": "Site in town (Tg / Tc)."
                      },
                      "townKm": {
                        "type": "number",
                        "description": "Distance into town, km."
                      },
                      "returnPeriod": {
                        "type": "number",
                        "default": 120,
                        "description": "Return period T, years (Sp)."
                      },
                      "directionDeg": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Wind direction from north for Sd; omit = unknown (Sd 1.0)."
                      },
                      "sh": {
                        "type": "number",
                        "default": 1,
                        "description": "Topography factor S'h."
                      },
                      "height": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Height H above ground; default soffit + half the depth."
                      },
                      "loadedLength": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Horizontal wind loaded length; default L."
                      },
                      "cd": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Override C_D (else Figure D.6)."
                      },
                      "minBeams": {
                        "type": "boolean",
                        "description": "Deck on I sections with more than 4 beams, or box girders: C_D at least 1.3. Tick it for PSC I and steel I girder decks."
                      },
                      "parapetSolid": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Solid depth per parapet, m (Table D.10)."
                      },
                      "parapetCount": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "parapetCd": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Parapet C_D (Table D.15)."
                      },
                      "parapetLong": {
                        "type": "string",
                        "description": "Table D.17 parapet type for the longitudinal share (infill default)."
                      },
                      "superelevationDeg": {
                        "type": "number"
                      },
                      "windInclinationDeg": {
                        "type": "number"
                      },
                      "trussMembers": {
                        "type": "string",
                        "description": "flat (default) or round truss members (Tables D.13 / D.14)."
                      },
                      "trussDt": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "bridge": {
                    "type": "object",
                    "description": "Deck inputs, metres. Omitted geometry is measured from the model (ec_wind_apply) — ec_wind_bridge needs b, d, L and groundToSoffit.",
                    "properties": {
                      "b": {
                        "type": "number",
                        "description": "Deck width b."
                      },
                      "d": {
                        "type": "number",
                        "description": "Deck depth d (§8.3.1 Figure 8.5)."
                      },
                      "L": {
                        "type": "number",
                        "description": "Span / loaded length."
                      },
                      "groundToSoffit": {
                        "type": "number",
                        "description": "Height of the soffit above ground (for z_e)."
                      },
                      "restraint": {
                        "type": "string",
                        "description": "Table 8.1 parapet/barrier case (plugin values, default none)."
                      },
                      "sides": {
                        "type": "string",
                        "description": "Parapets on one or both sides (one|both)."
                      },
                      "traffic": {
                        "type": "string",
                        "description": "Traffic on the deck (none, road, rail). EN: the §8.3.1(5) case (higher of the barrier and the 2 m vehicle / 4 m train band). CS 454: the live-load case (d_L 2.5 m highway, 3.7 m rail, 1.25 m foot)."
                      },
                      "trafficLength": {
                        "type": "object",
                        "description": "EN §8.3.1(5), road only: {mode: \"whole\"} (default) or {mode: \"ranges\", text: \"0-20, 45-60\"} — the loaded length(s) carrying traffic, in m along the span.",
                        "properties": {
                          "mode": {
                            "enum": [
                              "whole",
                              "ranges"
                            ]
                          },
                          "text": {
                            "type": "string"
                          }
                        }
                      },
                      "d1": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Parapet / barrier height above the deck (m)."
                      },
                      "method": {
                        "type": "string",
                        "description": "general (default) or the simplified route the plugin offers."
                      },
                      "structuralForm": {
                        "type": "string",
                        "description": "normal (beam-and-slab / plate girder, default), box, slab, uDeck (half-through), portal (portal / box culvert / integral), truss, arch, cableStayed, suspension… — forms the chosen code does not cover need acknowledgeOutOfScope."
                      },
                      "inclinationDeg": {
                        "type": "number"
                      },
                      "transverseSlopeDeg": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": true
                  },
                  "vb0": {
                    "type": "number",
                    "description": "Fundamental basic wind velocity v_b,0, m/s (CEN has no map)."
                  },
                  "terrainCategory": {
                    "type": "string",
                    "description": "0, I, II (default), III or IV."
                  },
                  "co": {
                    "type": "number",
                    "description": "Orography factor c_o (default 1)."
                  },
                  "returnPeriodYears": {
                    "type": "number",
                    "description": "Default 50."
                  },
                  "cdir": {
                    "type": "number"
                  },
                  "cseason": {
                    "type": "number"
                  },
                  "cscdOverride": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "nationalAnnex": {
                    "type": "string",
                    "description": "EN only. Built-in annex id; default CEN."
                  },
                  "directions": {
                    "type": "object",
                    "description": "Global load directions to write, e.g. {\"Z-\": false}. Default: all six (X±, Y±, Z±).",
                    "additionalProperties": {
                      "type": "boolean"
                    }
                  },
                  "spanAxis": {
                    "enum": [
                      "X",
                      "Y"
                    ],
                    "default": "X"
                  },
                  "zEccentric": {
                    "type": "boolean",
                    "default": true
                  }
                },
                "required": [
                  "bridge"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec_wind_export_calc_sheet": {
      "post": {
        "operationId": "ec_wind_export_calc_sheet",
        "summary": "Wind hand calculation (Excel, EN 1991-1-4 or CS 454)",
        "description": "Use for the wind hand calculation as an Excel workbook (EN 1991-1-4 or CS 454) for a checker. For the numbers alone use ec_wind_bridge; to write the loads use ec_wind_apply. Writes the Wind Load Calculator plugin's Excel hand calculation for a bridge deck — the same workbook as the window's Export E",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "enum": [
                      "EN",
                      "CS454"
                    ],
                    "default": "EN",
                    "description": "Design code: EN = EN 1991-1-4 §8 (with nationalAnnex); CS454 = CS 454 Rev 0 Appendix D (UK assessment), which ignores the EN climate inputs and uses cs454 instead. CS 454 loads are written nominal as C454W_ cases."
                  },
                  "cs454": {
                    "type": "object",
                    "description": "CS 454 Appendix D inputs (code: CS454). The deck geometry stays in bridge.",
                    "properties": {
                      "method": {
                        "enum": [
                          "full",
                          "simplified"
                        ],
                        "default": "full",
                        "description": "full = Appendix D; simplified = cl 5.33.1 6 kN/m² (highway, slab / beam-and-slab, L ≤ 20 m, b ≥ 10 m)."
                      },
                      "vb": {
                        "type": "number",
                        "description": "Basic mean hourly wind speed Vb (Figure D.1), m/s."
                      },
                      "use": {
                        "enum": [
                          "highway",
                          "rail",
                          "foot"
                        ],
                        "default": "highway"
                      },
                      "altitude": {
                        "type": "number",
                        "description": "Site altitude Δ, m (Sa)."
                      },
                      "seaKm": {
                        "type": "number",
                        "description": "Distance from the sea, km (Table D.4 / D.5)."
                      },
                      "town": {
                        "type": "boolean",
                        "description": "Site in town (Tg / Tc)."
                      },
                      "townKm": {
                        "type": "number",
                        "description": "Distance into town, km."
                      },
                      "returnPeriod": {
                        "type": "number",
                        "default": 120,
                        "description": "Return period T, years (Sp)."
                      },
                      "directionDeg": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Wind direction from north for Sd; omit = unknown (Sd 1.0)."
                      },
                      "sh": {
                        "type": "number",
                        "default": 1,
                        "description": "Topography factor S'h."
                      },
                      "height": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Height H above ground; default soffit + half the depth."
                      },
                      "loadedLength": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Horizontal wind loaded length; default L."
                      },
                      "cd": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Override C_D (else Figure D.6)."
                      },
                      "minBeams": {
                        "type": "boolean",
                        "description": "Deck on I sections with more than 4 beams, or box girders: C_D at least 1.3. Tick it for PSC I and steel I girder decks."
                      },
                      "parapetSolid": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Solid depth per parapet, m (Table D.10)."
                      },
                      "parapetCount": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "parapetCd": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Parapet C_D (Table D.15)."
                      },
                      "parapetLong": {
                        "type": "string",
                        "description": "Table D.17 parapet type for the longitudinal share (infill default)."
                      },
                      "superelevationDeg": {
                        "type": "number"
                      },
                      "windInclinationDeg": {
                        "type": "number"
                      },
                      "trussMembers": {
                        "type": "string",
                        "description": "flat (default) or round truss members (Tables D.13 / D.14)."
                      },
                      "trussDt": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "bridge": {
                    "type": "object",
                    "description": "Deck inputs, metres. Omitted geometry is measured from the model (ec_wind_apply) — ec_wind_bridge needs b, d, L and groundToSoffit.",
                    "properties": {
                      "b": {
                        "type": "number",
                        "description": "Deck width b."
                      },
                      "d": {
                        "type": "number",
                        "description": "Deck depth d (§8.3.1 Figure 8.5)."
                      },
                      "L": {
                        "type": "number",
                        "description": "Span / loaded length."
                      },
                      "groundToSoffit": {
                        "type": "number",
                        "description": "Height of the soffit above ground (for z_e)."
                      },
                      "restraint": {
                        "type": "string",
                        "description": "Table 8.1 parapet/barrier case (plugin values, default none)."
                      },
                      "sides": {
                        "type": "string",
                        "description": "Parapets on one or both sides (one|both)."
                      },
                      "traffic": {
                        "type": "string",
                        "description": "Traffic on the deck (none, road, rail). EN: the §8.3.1(5) case (higher of the barrier and the 2 m vehicle / 4 m train band). CS 454: the live-load case (d_L 2.5 m highway, 3.7 m rail, 1.25 m foot)."
                      },
                      "trafficLength": {
                        "type": "object",
                        "description": "EN §8.3.1(5), road only: {mode: \"whole\"} (default) or {mode: \"ranges\", text: \"0-20, 45-60\"} — the loaded length(s) carrying traffic, in m along the span.",
                        "properties": {
                          "mode": {
                            "enum": [
                              "whole",
                              "ranges"
                            ]
                          },
                          "text": {
                            "type": "string"
                          }
                        }
                      },
                      "d1": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Parapet / barrier height above the deck (m)."
                      },
                      "method": {
                        "type": "string",
                        "description": "general (default) or the simplified route the plugin offers."
                      },
                      "structuralForm": {
                        "type": "string",
                        "description": "normal (beam-and-slab / plate girder, default), box, slab, uDeck (half-through), portal (portal / box culvert / integral), truss, arch, cableStayed, suspension… — forms the chosen code does not cover need acknowledgeOutOfScope."
                      },
                      "inclinationDeg": {
                        "type": "number"
                      },
                      "transverseSlopeDeg": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": true
                  },
                  "vb0": {
                    "type": "number",
                    "description": "Fundamental basic wind velocity v_b,0, m/s (CEN has no map)."
                  },
                  "terrainCategory": {
                    "type": "string",
                    "description": "0, I, II (default), III or IV."
                  },
                  "co": {
                    "type": "number",
                    "description": "Orography factor c_o (default 1)."
                  },
                  "returnPeriodYears": {
                    "type": "number",
                    "description": "Default 50."
                  },
                  "cdir": {
                    "type": "number"
                  },
                  "cseason": {
                    "type": "number"
                  },
                  "cscdOverride": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "nationalAnnex": {
                    "type": "string",
                    "description": "EN only. Built-in annex id; default CEN."
                  },
                  "directions": {
                    "type": "object",
                    "description": "Global load directions to write, e.g. {\"Z-\": false}. Default: all six (X±, Y±, Z±).",
                    "additionalProperties": {
                      "type": "boolean"
                    }
                  },
                  "spanAxis": {
                    "enum": [
                      "X",
                      "Y"
                    ],
                    "default": "X"
                  },
                  "zEccentric": {
                    "type": "boolean",
                    "default": true
                  },
                  "project": {
                    "type": "string",
                    "description": "Title block: project name (also starts the file name)."
                  },
                  "projectNo": {
                    "type": "string"
                  },
                  "client": {
                    "type": "string"
                  },
                  "preparedBy": {
                    "type": "string"
                  },
                  "checkedBy": {
                    "type": "string"
                  },
                  "reference": {
                    "type": "string",
                    "description": "Title block: calculation reference."
                  }
                },
                "required": [
                  "bridge"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec_wind_read_deck": {
      "post": {
        "operationId": "ec_wind_read_deck",
        "summary": "Read the deck for wind",
        "description": "Use before ec_wind_apply, to find the deck and its dimensions. Read-only. Reads the open model the way the Wind Load Calculator plugin does: finds the deck (or measures the elements / group given), and reports b, d, L, the soffit height, the span axis, whether the deck is beams or plates, and a stru",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elementIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "group": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec_wind_apply": {
      "post": {
        "operationId": "ec_wind_apply",
        "summary": "Write bridge wind loads (Wind Load Calculator)",
        "description": "Use to write code-derived wind load cases on the deck. For a wind load you already know, civil_loads_supports is simpler. Calculates wind on the deck (EN 1991-1-4 §8, or CS 454 Appendix D with code: CS454) and writes it with the Wind Load Calculator plugin's adapter: one load case per global directi",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elementIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "group": {
                    "type": "string"
                  },
                  "code": {
                    "enum": [
                      "EN",
                      "CS454"
                    ],
                    "default": "EN",
                    "description": "Design code: EN = EN 1991-1-4 §8 (with nationalAnnex); CS454 = CS 454 Rev 0 Appendix D (UK assessment), which ignores the EN climate inputs and uses cs454 instead. CS 454 loads are written nominal as C454W_ cases."
                  },
                  "cs454": {
                    "type": "object",
                    "description": "CS 454 Appendix D inputs (code: CS454). The deck geometry stays in bridge.",
                    "properties": {
                      "method": {
                        "enum": [
                          "full",
                          "simplified"
                        ],
                        "default": "full",
                        "description": "full = Appendix D; simplified = cl 5.33.1 6 kN/m² (highway, slab / beam-and-slab, L ≤ 20 m, b ≥ 10 m)."
                      },
                      "vb": {
                        "type": "number",
                        "description": "Basic mean hourly wind speed Vb (Figure D.1), m/s."
                      },
                      "use": {
                        "enum": [
                          "highway",
                          "rail",
                          "foot"
                        ],
                        "default": "highway"
                      },
                      "altitude": {
                        "type": "number",
                        "description": "Site altitude Δ, m (Sa)."
                      },
                      "seaKm": {
                        "type": "number",
                        "description": "Distance from the sea, km (Table D.4 / D.5)."
                      },
                      "town": {
                        "type": "boolean",
                        "description": "Site in town (Tg / Tc)."
                      },
                      "townKm": {
                        "type": "number",
                        "description": "Distance into town, km."
                      },
                      "returnPeriod": {
                        "type": "number",
                        "default": 120,
                        "description": "Return period T, years (Sp)."
                      },
                      "directionDeg": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Wind direction from north for Sd; omit = unknown (Sd 1.0)."
                      },
                      "sh": {
                        "type": "number",
                        "default": 1,
                        "description": "Topography factor S'h."
                      },
                      "height": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Height H above ground; default soffit + half the depth."
                      },
                      "loadedLength": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Horizontal wind loaded length; default L."
                      },
                      "cd": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Override C_D (else Figure D.6)."
                      },
                      "minBeams": {
                        "type": "boolean",
                        "description": "Deck on I sections with more than 4 beams, or box girders: C_D at least 1.3. Tick it for PSC I and steel I girder decks."
                      },
                      "parapetSolid": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Solid depth per parapet, m (Table D.10)."
                      },
                      "parapetCount": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "parapetCd": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Parapet C_D (Table D.15)."
                      },
                      "parapetLong": {
                        "type": "string",
                        "description": "Table D.17 parapet type for the longitudinal share (infill default)."
                      },
                      "superelevationDeg": {
                        "type": "number"
                      },
                      "windInclinationDeg": {
                        "type": "number"
                      },
                      "trussMembers": {
                        "type": "string",
                        "description": "flat (default) or round truss members (Tables D.13 / D.14)."
                      },
                      "trussDt": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "bridge": {
                    "type": "object",
                    "description": "Deck inputs, metres. Omitted geometry is measured from the model (ec_wind_apply) — ec_wind_bridge needs b, d, L and groundToSoffit.",
                    "properties": {
                      "b": {
                        "type": "number",
                        "description": "Deck width b."
                      },
                      "d": {
                        "type": "number",
                        "description": "Deck depth d (§8.3.1 Figure 8.5)."
                      },
                      "L": {
                        "type": "number",
                        "description": "Span / loaded length."
                      },
                      "groundToSoffit": {
                        "type": "number",
                        "description": "Height of the soffit above ground (for z_e)."
                      },
                      "restraint": {
                        "type": "string",
                        "description": "Table 8.1 parapet/barrier case (plugin values, default none)."
                      },
                      "sides": {
                        "type": "string",
                        "description": "Parapets on one or both sides (one|both)."
                      },
                      "traffic": {
                        "type": "string",
                        "description": "Traffic on the deck (none, road, rail). EN: the §8.3.1(5) case (higher of the barrier and the 2 m vehicle / 4 m train band). CS 454: the live-load case (d_L 2.5 m highway, 3.7 m rail, 1.25 m foot)."
                      },
                      "trafficLength": {
                        "type": "object",
                        "description": "EN §8.3.1(5), road only: {mode: \"whole\"} (default) or {mode: \"ranges\", text: \"0-20, 45-60\"} — the loaded length(s) carrying traffic, in m along the span.",
                        "properties": {
                          "mode": {
                            "enum": [
                              "whole",
                              "ranges"
                            ]
                          },
                          "text": {
                            "type": "string"
                          }
                        }
                      },
                      "d1": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Parapet / barrier height above the deck (m)."
                      },
                      "method": {
                        "type": "string",
                        "description": "general (default) or the simplified route the plugin offers."
                      },
                      "structuralForm": {
                        "type": "string",
                        "description": "normal (beam-and-slab / plate girder, default), box, slab, uDeck (half-through), portal (portal / box culvert / integral), truss, arch, cableStayed, suspension… — forms the chosen code does not cover need acknowledgeOutOfScope."
                      },
                      "inclinationDeg": {
                        "type": "number"
                      },
                      "transverseSlopeDeg": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": true
                  },
                  "vb0": {
                    "type": "number",
                    "description": "Fundamental basic wind velocity v_b,0, m/s (CEN has no map)."
                  },
                  "terrainCategory": {
                    "type": "string",
                    "description": "0, I, II (default), III or IV."
                  },
                  "co": {
                    "type": "number",
                    "description": "Orography factor c_o (default 1)."
                  },
                  "returnPeriodYears": {
                    "type": "number",
                    "description": "Default 50."
                  },
                  "cdir": {
                    "type": "number"
                  },
                  "cseason": {
                    "type": "number"
                  },
                  "cscdOverride": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "nationalAnnex": {
                    "type": "string",
                    "description": "EN only. Built-in annex id; default CEN."
                  },
                  "directions": {
                    "type": "object",
                    "description": "Global load directions to write, e.g. {\"Z-\": false}. Default: all six (X±, Y±, Z±).",
                    "additionalProperties": {
                      "type": "boolean"
                    }
                  },
                  "zEccentric": {
                    "type": "boolean",
                    "default": true,
                    "description": "EN §8.3.3(5): place the vertical force at e = ±b/4. CS 454 always loads at the centroid."
                  },
                  "lineOfAction": {
                    "enum": [
                      "aref",
                      "centroid"
                    ],
                    "default": "aref",
                    "description": "Transverse wind at mid-height of d_tot (aref) or at the section centroids."
                  },
                  "acknowledgeOutOfScope": {
                    "type": "boolean",
                    "default": false,
                    "description": "Only with the user's agreement: apply the code to a form it does not cover."
                  },
                  "acknowledgeUnverifiedAnnex": {
                    "type": "boolean",
                    "default": false
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ec_wind_remove": {
      "post": {
        "operationId": "ec_wind_remove",
        "summary": "Remove the wind loads",
        "description": "Use to delete the wind load cases the Wind Load Calculator wrote (EC1W_, C454W_); it is also the undo of ec_wind_apply. For other loads use civil_remove_loads. Removes what the Wind Load Calculator plugin writes: every EC1W_ and C454W_ load case, its load group, and their beam/pressure/nodal loads —",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apply": {
                    "type": "boolean",
                    "default": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/skew_grillage": {
      "post": {
        "operationId": "skew_grillage",
        "summary": "Skew Grillage Geometry Generator",
        "description": "Use to create a new bridge deck (beam grillage or plate mesh) from spans, widths and skew. To change a deck already in the model use bridge_reshape; for geometry from a drawing use dxf_import. Generates a bridge deck (beam grillage or plate mesh) with the Skew Grillage Geometry Generator plugin's ow",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "geometry": {
                    "type": "object",
                    "description": "Deck inputs, named as in the plugin. Anything omitted takes the plugin form's default. Lengths in metres, angles in degrees.",
                    "properties": {
                      "elementType": {
                        "enum": [
                          "beam",
                          "plate"
                        ],
                        "description": "beam = grillage of girders and cross beams; plate = plate-mesh deck."
                      },
                      "spanLength": {
                        "type": "number",
                        "description": "Span along the girders (single span)."
                      },
                      "deckWidth": {
                        "type": "number",
                        "description": "Width between the OUTER GIRDER LINES, m (default 10), not the deck width: the girders are spread across it, the outer ones on its edges. For a deck that overhangs its outer girders use girderSpacings with the overhangs first and last (edge lines at the deck edges, to be given a dummy section)."
                      },
                      "girderCount": {
                        "type": "integer",
                        "minimum": 2
                      },
                      "girderSpacings": {
                        "type": "array",
                        "items": {
                          "type": "number"
                        },
                        "description": "Girder spacings, m, one per bay (lines − 1); sets the line count and deckWidth (their sum). 4 girders at 2.5 m = [2.5, 2.5, 2.5]; the same with 1.25 m deck overhangs = [1.25, 2.5, 2.5, 2.5, 1.25] (the outer two lines are the deck edges: give them a dummy section afterwards)."
                      },
                      "transverseSpacing": {
                        "type": "number",
                        "description": "Cross-beam (or plate) spacing along the span."
                      },
                      "skewAngle": {
                        "type": "number",
                        "description": "Skew of the start support from square, degrees (±60)."
                      },
                      "endSkewAngle": {
                        "type": "number",
                        "description": "Skew of the end support if different (a trapezium deck)."
                      },
                      "orientation": {
                        "enum": [
                          "skew",
                          "perpendicular"
                        ],
                        "description": "Cross beams parallel to the supports, or square to the girders."
                      },
                      "slabDepth": {
                        "type": "number",
                        "description": "Slab depth, m (default 0.25): the depth of every automatic transverse beam section and the plate thickness of a plate deck."
                      },
                      "plateThickness": {
                        "type": "number",
                        "description": "Older name for slabDepth (used only when slabDepth is not given)."
                      },
                      "archEnabled": {
                        "type": "boolean",
                        "description": "Arch grillage: each girder follows an arch profile between its own bearing lines (one arch per span when multi-span). Crossfall and vertical profile are switched off while it is on."
                      },
                      "archShape": {
                        "enum": [
                          "circular",
                          "parabolic",
                          "elliptical"
                        ],
                        "description": "Arch profile. Circular needs rise ≤ span/2."
                      },
                      "archRise": {
                        "type": "number",
                        "description": "Rise f from springing to crown, m (default 4)."
                      },
                      "archEqualArc": {
                        "type": "boolean",
                        "description": "true (default): cross beams at equal spacing measured ROUND the arch (count = arc length / transverseSpacing); false: equal spacing in plan."
                      },
                      "curveEnabled": {
                        "type": "boolean"
                      },
                      "curveRadius": {
                        "type": "number"
                      },
                      "curveDirection": {
                        "enum": [
                          "left",
                          "right"
                        ]
                      },
                      "curveReference": {
                        "enum": [
                          "centreline",
                          "girder"
                        ]
                      },
                      "curveReferenceGirder": {
                        "type": "integer"
                      },
                      "curveGirderSetOut": {
                        "enum": [
                          "concentric",
                          "fitted",
                          "translated"
                        ]
                      },
                      "multiSpan": {
                        "type": "boolean"
                      },
                      "spans": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "length": {
                              "type": "number"
                            },
                            "plan": {
                              "enum": [
                                "straight",
                                "left",
                                "right"
                              ]
                            },
                            "radius": {
                              "type": "number"
                            }
                          }
                        },
                        "description": "Multi-span: one row per span."
                      },
                      "supports": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "skew": {
                              "type": "number"
                            },
                            "gap": {
                              "type": "number"
                            },
                            "bearing": {
                              "type": "number"
                            }
                          }
                        },
                        "description": "Multi-span: one row per support line (spans + 1): skew, joint gap a, bearing offset b."
                      },
                      "levelsEnabled": {
                        "type": "boolean",
                        "description": "Turn on crossfall and vertical profile."
                      },
                      "crossfallType": {
                        "enum": [
                          "none",
                          "one-way",
                          "two-way",
                          "camber"
                        ]
                      },
                      "crossfall": {
                        "type": "number",
                        "description": "%"
                      },
                      "profileType": {
                        "enum": [
                          "level",
                          "gradient",
                          "curve"
                        ]
                      },
                      "gradientStart": {
                        "type": "number",
                        "description": "%"
                      },
                      "gradientEnd": {
                        "type": "number",
                        "description": "%"
                      },
                      "originX": {
                        "type": "number"
                      },
                      "originY": {
                        "type": "number"
                      },
                      "elevation": {
                        "type": "number"
                      },
                      "startNodeId": {
                        "type": "integer"
                      },
                      "startElementId": {
                        "type": "integer"
                      },
                      "materialId": {
                        "type": "integer"
                      },
                      "longSectionId": {
                        "type": "integer"
                      },
                      "transSectionId": {
                        "type": "integer"
                      },
                      "thicknessId": {
                        "type": "integer"
                      }
                    },
                    "additionalProperties": true
                  },
                  "placement": {
                    "type": "object",
                    "description": "Base point move (like AutoCAD COPY): a point on the grillage and the model coordinate it goes to. The grillage is rotated in plan about the base point, then moved. Use with addToExisting to put a deck against a structure already in the model.",
                    "properties": {
                      "basePoint": {
                        "enum": [
                          "origin",
                          "start-first",
                          "start-mid",
                          "start-last",
                          "end-first",
                          "end-mid",
                          "end-last",
                          "node"
                        ],
                        "description": "The grillage's base point: the deck origin, the first/middle/last girder at the start or end support line, or a grillage node (baseNodeId). Default start-mid."
                      },
                      "baseNodeId": {
                        "type": "integer",
                        "description": "basePoint node: the grillage node number, as numbered in this tool's preview before the move."
                      },
                      "target": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "number"
                          },
                          "y": {
                            "type": "number"
                          },
                          "z": {
                            "type": "number"
                          }
                        },
                        "additionalProperties": false,
                        "description": "Model coordinate (m) the base point goes to."
                      },
                      "targetNodeId": {
                        "type": "integer",
                        "description": "Take the target coordinate from this node of the open model instead of target."
                      },
                      "rotation": {
                        "type": "number",
                        "description": "Plan rotation about the base point, degrees anticlockwise (default 0)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "addToExisting": {
                    "type": "boolean",
                    "default": false,
                    "description": "Put the deck into a model that already holds geometry (the plugin's 'Add into the existing model', which it asks the user to confirm — ask the user too). Nothing is deleted: node and element ids continue past the model's highest, nodes within 1 mm of existing ones are joined, members already in the model are left out, automatic transverse sections move to free ids and taken group names get -2, -3. The preview reads the model and shows exactly that."
                  },
                  "connectNodes": {
                    "type": "boolean",
                    "default": true,
                    "description": "addToExisting: join grillage nodes that fall within 1 mm of existing nodes (false = always new nodes)."
                  },
                  "autoTransverseSections": {
                    "type": "boolean",
                    "default": true,
                    "description": "One transverse section per measured tributary width (beam decks)."
                  },
                  "structureGroups": {
                    "type": "boolean",
                    "default": true
                  },
                  "allowDefaultProperties": {
                    "type": "boolean",
                    "default": true,
                    "description": "Create a default C30-like material and rectangular sections/thickness when the ids are not in the model."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write to CIVIL NX. Only after the user approved the preview."
                  },
                  "confirmPlanHash": {
                    "type": "string",
                    "description": "planHash from the approved preview; the write is refused if the plan differs."
                  },
                  "replaceExisting": {
                    "type": "boolean",
                    "default": false,
                    "description": "DESTRUCTIVE: delete all nodes, elements, sections, thicknesses, materials and structure groups first. Only with the user's explicit agreement."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/combination_tree": {
      "post": {
        "operationId": "combination_tree",
        "summary": "Combinations: list them, or show one's tree",
        "description": "Use to list the model's combinations, or show one's tree of cases and factors. Read-only. To split a result into its load cases use combination_contributions; to write combinations use civil_combinations_quick or the code tools. Load Combination Contribution Analyzer, step 1. Without name: lists the",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "A combination to show in full. Omit to list them all."
                  },
                  "search": {
                    "type": "string",
                    "description": "Only combinations whose name contains this (case-insensitive)."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000,
                    "default": 300
                  },
                  "units": {
                    "type": "object",
                    "description": "Units to report in (CIVIL NX converts). Default: the model's own.",
                    "properties": {
                      "force": {
                        "type": "string",
                        "enum": [
                          "N",
                          "kN",
                          "kgf",
                          "tonf",
                          "lbf",
                          "kips"
                        ]
                      },
                      "length": {
                        "type": "string",
                        "enum": [
                          "mm",
                          "cm",
                          "m",
                          "in",
                          "ft"
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/combination_contributions": {
      "post": {
        "operationId": "combination_contributions",
        "summary": "Which load cases make up a combination's result",
        "description": "Use to find which load cases make up a combination's result at given items. For the forces that act together with an extreme use concurrent_forces. Load Combination Contribution Analyzer, step 2. Splits one or more load combinations' results at a set of items into the load cases that produced them: ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "combinations": {
                    "description": "One General-tab combination name, or up to 10 decomposed at the same items in the same run.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "minItems": 1,
                        "maxItems": 10
                      }
                    ]
                  },
                  "table": {
                    "type": "string",
                    "enum": [
                      "BEAM",
                      "TRUSS",
                      "PLATE",
                      "ELASTICLINK",
                      "GENLINK",
                      "REACTION",
                      "DISPLACEMENT"
                    ],
                    "description": "Which result table to decompose."
                  },
                  "items": {
                    "type": "string",
                    "description": "Items in set syntax, e.g. \"101to148\", \"N9001toN9006\", \"EL1toEL10\". Typed ids must exist and be of the table's kind; ranges keep only what fits."
                  },
                  "groups": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Structure group names to add to the set."
                  },
                  "components": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Components to decompose (table column names, e.g. Moment-y, Shear-z, FZ, DZ, Mxx). Default: all of the table's."
                  },
                  "sense": {
                    "type": "string",
                    "enum": [
                      "max",
                      "min",
                      "both"
                    ],
                    "default": "both",
                    "description": "For max/min-pair combinations: which end(s). Ignored for single-valued ones."
                  },
                  "units": {
                    "type": "object",
                    "description": "Units to report in (CIVIL NX converts). Default: the model's own.",
                    "properties": {
                      "force": {
                        "type": "string",
                        "enum": [
                          "N",
                          "kN",
                          "kgf",
                          "tonf",
                          "lbf",
                          "kips"
                        ]
                      },
                      "length": {
                        "type": "string",
                        "enum": [
                          "mm",
                          "cm",
                          "m",
                          "in",
                          "ft"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "maxRows": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000,
                    "default": 50,
                    "description": "At most this many rows inline (largest |value| first)."
                  },
                  "csv": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also store every row with every case's contribution as a CSV and return its link."
                  }
                },
                "required": [
                  "combinations",
                  "table"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/midas_library": {
      "post": {
        "operationId": "midas_library",
        "summary": "MIDAS libraries: materials, sections, elements",
        "description": "Use for valid names when writing tables: material standards and grades, section shapes and their dimension order, element and support rows. For how-to text and API fields use midas_docs_search. Structured reference for writing a CIVIL NX model through the API (civil_write_tables): the material stand",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "topic": {
                    "type": "string",
                    "enum": [
                      "overview",
                      "search",
                      "materials",
                      "sections",
                      "thickness",
                      "elements",
                      "supports",
                      "loads",
                      "moving_loads",
                      "boundaries",
                      "temperature",
                      "tendons",
                      "construction",
                      "dynamic",
                      "units",
                      "results",
                      "time_dependent",
                      "python"
                    ],
                    "default": "overview"
                  },
                  "search": {
                    "type": "string",
                    "description": "With topic materials: only standards / grades containing this (\"EN\", \"C40\"). Alone or with topic search: every option list and vehicle in the library whose name or values contain it (\"LM1\", \"SV 196\", \"tendon\", \"SRSS\")."
                  },
                  "shape": {
                    "type": "string",
                    "description": "sections: one user shape code, e.g. SB, H, B, P."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/civil_status": {
      "post": {
        "operationId": "civil_status",
        "summary": "CIVIL NX connection and model summary",
        "description": "Start here: checks the connection and summarises the open model. For one table's rows use civil_read_table. Checks the MAPI connection to CIVIL NX and summarises the open model: units, moving load code, row counts per table, structure/boundary/load group names, static load cases, stages, general com",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/civil_read_table": {
      "post": {
        "operationId": "civil_read_table",
        "summary": "Read a CIVIL NX table",
        "description": "Use for the raw rows of one model-input table. For analysis results use preview_result_table; for a model overview use civil_status. Reads one MIDAS database table (GET /db/<TABLE>) from the open model, e.g. NODE, ELEM, SECT, GRUP, STLD, STAG, LLAN, MVLDBS, LCOM-GEN. Returns rows keyed by id: the id",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "table": {
                    "type": "string",
                    "description": "Table key, e.g. NODE, ELEM, GRUP, STAG."
                  },
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "description": "Row ids to return. Omit for the first `limit` rows."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "default": 50
                  }
                },
                "required": [
                  "table"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/job_status": {
      "post": {
        "operationId": "job_status",
        "summary": "Status of a long-running tool call",
        "description": "Use only with a jobId that another tool returned. Status, progress and (when finished) the result of a tool call that returned a jobId. Poll every few seconds until status is done or failed.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "jobId": {
                    "type": "string"
                  }
                },
                "required": [
                  "jobId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/model_health_check": {
      "post": {
        "operationId": "model_health_check",
        "summary": "Model health check (QC + results benchmarks)",
        "description": "Use for \"is anything wrong with my model?\". This is the full check: the Model Report's fourteen QC checks plus units, tendons, stages, moving loads and results. For a design check of a section use ec2_section_check or cs455_assess. One read-only check of the open CIVIL NX model for anything that is ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "parts": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "data",
                        "results"
                      ]
                    },
                    "description": "Which checks to run: data (model tables) and/or results (needs an analysed model). Default both."
                  },
                  "toleranceMm": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "default": 1,
                    "description": "Nodes closer than this (mm) count as coincident; also the distance at which a node counts as lying on an element."
                  },
                  "outlierFactor": {
                    "type": "number",
                    "exclusiveMinimum": 1,
                    "default": 10,
                    "description": "Element length outlier factor (the Model Report check)."
                  },
                  "displacements": {
                    "type": "boolean",
                    "default": true,
                    "description": "Read nodal displacements for the displacement check (one table read per 2000 nodes × 10 load cases)."
                  },
                  "maxNodes": {
                    "type": "integer",
                    "minimum": 100,
                    "maximum": 50000,
                    "default": 20000,
                    "description": "Most nodes to read displacements at; a larger model is sampled evenly."
                  },
                  "thresholds": {
                    "type": "object",
                    "description": "Override the limits the checks use (defaults in brackets).",
                    "properties": {
                      "warpDeg": {
                        "type": "number",
                        "description": "Plate warping limit, degrees between the two halves of a quad [10]."
                      },
                      "aspect": {
                        "type": "number",
                        "description": "Plate aspect-ratio limit [10]."
                      },
                      "minAngleQuad": {
                        "type": "number",
                        "description": "Smallest quad corner, degrees [30]."
                      },
                      "maxAngleQuad": {
                        "type": "number",
                        "description": "Largest quad corner, degrees [150]."
                      },
                      "minAngleTri": {
                        "type": "number",
                        "description": "Smallest triangle corner, degrees [15]."
                      },
                      "collinearDeg": {
                        "type": "number",
                        "description": "Beams within this angle count as one line [5]."
                      },
                      "outlierLoad": {
                        "type": "number",
                        "description": "Load item this many times the case median (or 1/this) is an outlier [1000]."
                      },
                      "equilibriumPct": {
                        "type": "number",
                        "description": "Allowed reaction/load imbalance, % [1]."
                      },
                      "selfWeightPct": {
                        "type": "number",
                        "description": "Allowed self-weight difference, % [3]."
                      },
                      "displacementMechanism": {
                        "type": "number",
                        "description": "Fail when a translation exceeds model size / this [50]."
                      },
                      "displacementPermanent": {
                        "type": "number",
                        "description": "Warn when a dead-load case moves more than model size / this [250]."
                      },
                      "rotationMechanism": {
                        "type": "number",
                        "description": "Fail when a rotation exceeds this, rad [0.1]."
                      },
                      "frictionLossPct": {
                        "type": "number",
                        "description": "Warn when a tendon's estimated friction loss exceeds this, % [30]."
                      },
                      "minTendonRadius": {
                        "type": "number",
                        "description": "Tightest allowed tendon bend radius, m [2.5]."
                      },
                      "ductRatio": {
                        "type": "number",
                        "description": "Smallest duct area / strand area for internal bonded tendons [2]."
                      },
                      "minCoverMm": {
                        "type": "number",
                        "description": "Smallest clear cover from a tendon duct to the section's top or soffit, mm [50]."
                      },
                      "laneOutsideDeck": {
                        "type": "number",
                        "description": "Flag a traffic lane whose centre lies more than this beyond the outermost deck line, m [0.5]."
                      }
                    },
                    "additionalProperties": false
                  },
                  "maxIds": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000,
                    "default": 30,
                    "description": "Ids listed per check."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/model_report_images": {
      "post": {
        "operationId": "model_report_images",
        "summary": "Pictures the model report can carry",
        "description": "Use before model_report_export, to pick the pictures for the report. Lists the CIVIL NX pictures the Model Report can put in this model's report, with their keys: FE model views (iso, plan, front, side), the applied loads of each static load case, the figures saved in the model (/db/UFIG), and the b",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/model_report_export": {
      "post": {
        "operationId": "model_report_export",
        "summary": "Model report document (HTML, Excel, Word, PDF)",
        "description": "Use for the whole-model report document. For construction stages use cs_stage_report; for a design calculation sheet use ec2_export_calc_sheet or cs455_export_calc_sheet; for raw tables use export_result_tables. Builds the Model Report plugin's 'Model report' for the open CIVIL NX model — cover, con",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "formats": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "html",
                        "xlsx",
                        "docx",
                        "pdf"
                      ]
                    },
                    "default": [
                      "html"
                    ]
                  },
                  "toleranceMm": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "default": 1,
                    "description": "Nodes closer than this (mm, 3D) count as coincident."
                  },
                  "outlierFactor": {
                    "type": "number",
                    "exclusiveMinimum": 1,
                    "default": 10,
                    "description": "An element longer or shorter than the median length by this factor is an outlier."
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "en",
                      "fr",
                      "de",
                      "el",
                      "pl"
                    ],
                    "default": "en",
                    "description": "Language of the check wording / the report: English, French, German, Greek, Polish."
                  },
                  "details": {
                    "type": "object",
                    "properties": {
                      "project": {
                        "type": "string"
                      },
                      "client": {
                        "type": "string"
                      },
                      "jobNo": {
                        "type": "string"
                      },
                      "rev": {
                        "type": "string"
                      },
                      "author": {
                        "type": "string"
                      },
                      "checker": {
                        "type": "string"
                      },
                      "date": {
                        "type": "string"
                      },
                      "country": {
                        "type": "string"
                      },
                      "designStandard": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Document details printed on the cover (all optional)."
                  },
                  "images": {
                    "description": "Pictures CIVIL NX renders into the report. \"none\" for none; otherwise an object (omitted fields keep the defaults: modelViews [\"iso\"], savedFigures \"all\").",
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "none"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "modelViews": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "iso",
                                    "plan",
                                    "front",
                                    "side"
                                  ]
                                }
                              }
                            ],
                            "description": "FE model views; true = all four, false = none."
                          },
                          "loadViews": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "all"
                                ]
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            ],
                            "description": "Applied-load views: static load case names, or \"all\"."
                          },
                          "savedFigures": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "all"
                                ]
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            ],
                            "description": "Figures saved in the model (by name), or \"all\" (default)."
                          },
                          "beamDiagrams": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "loadCase": {
                                  "type": "string",
                                  "description": "Static case or combination name; for a construction stage, the result part (Summation, Dead Load, Tendon Primary …)."
                                },
                                "component": {
                                  "type": "string",
                                  "enum": [
                                    "Fx",
                                    "Fy",
                                    "Fz",
                                    "Fyz",
                                    "Mx",
                                    "My",
                                    "Mz",
                                    "Myz",
                                    "Mb",
                                    "Mt",
                                    "Mw"
                                  ],
                                  "default": "My"
                                },
                                "caseType": {
                                  "type": "string",
                                  "enum": [
                                    "ST",
                                    "CB",
                                    "CS"
                                  ]
                                },
                                "minmax": {
                                  "type": "string",
                                  "enum": [
                                    "Max",
                                    "Min"
                                  ],
                                  "description": "Envelope combinations."
                                },
                                "stage": {
                                  "type": "string",
                                  "description": "Construction stage name (with caseType CS)."
                                }
                              },
                              "required": [
                                "loadCase"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Beam force/moment diagrams; need an analysed model."
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Picture keys from model_report_images (e.g. model:plan, loads:Traffic, figure:Deflection)."
                          },
                          "legend": {
                            "type": "object",
                            "properties": {
                              "values": {
                                "type": "string",
                                "enum": [
                                  "exponential",
                                  "fixed"
                                ],
                                "description": "Number format of the beam diagrams' legend (CIVIL NX's own is exponential)."
                              },
                              "decimals": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 6,
                                "description": "Decimal places in the legend."
                              }
                            },
                            "additionalProperties": false,
                            "description": "Beam diagram legend format. CIVIL NX offers no legend min/max: the range always spans the result."
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  },
                  "numbering": {
                    "type": "boolean",
                    "default": true,
                    "description": "Number chapters and figures."
                  },
                  "tendonCoordinates": {
                    "type": "boolean",
                    "default": true,
                    "description": "Read the computed tendon coordinate table (needs an analysed model) when the report has tendons."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/model_bridge_summary": {
      "post": {
        "operationId": "model_bridge_summary",
        "summary": "Model to IFC — what the exporter sees",
        "description": "Use before model_to_ifc or model_to_dxf, to see what the exporter finds. For a general model summary use civil_status. Reads the open model's geometry tables and CIVIL NX's computed section properties and reports the bridge the Model to IFC plugin finds in it: girder lines, piers and pylons (station",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "File / model name (default: the model's project name)."
                  },
                  "tendons": {
                    "type": "boolean",
                    "default": true,
                    "description": "Tendons drawn at their duct diameter."
                  },
                  "separateSlabs": {
                    "type": "boolean",
                    "default": true,
                    "description": "A composite section's deck slab as its own slab."
                  },
                  "joinDeck": {
                    "type": "boolean",
                    "default": true,
                    "description": "Join side-by-side girders' slab strips into one continuous deck."
                  },
                  "skipWeightless": {
                    "type": "boolean",
                    "default": true,
                    "description": "Leave out weightless (dummy) members; cables, piles and members named NoSW are kept."
                  },
                  "startStation": {
                    "type": "number",
                    "default": 0,
                    "description": "Chainage at the start of the deck, m."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/model_to_ifc": {
      "post": {
        "operationId": "model_to_ifc",
        "summary": "Model to IFC — export the model to IFC4 / IFC4.3",
        "description": "Use to export the model to IFC (BIM). For 2D drawings use model_to_dxf. Exports the open CIVIL NX model to IFC with the Model to IFC plugin: real section outlines with voids, smooth tapers, tendons, composite deck slabs, materials, structure groups and stages; in IFC4.3 also the bridge structure (de",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "schema": {
                    "enum": [
                      "IFC4",
                      "IFC4X3"
                    ],
                    "default": "IFC4",
                    "description": "IFC4: Revit, Navisworks, Tekla, Solibri. IFC4X3: the bridge model (IfcBridge parts, bearings, alignment)."
                  },
                  "name": {
                    "type": "string",
                    "description": "File / model name (default: the model's project name)."
                  },
                  "tendons": {
                    "type": "boolean",
                    "default": true,
                    "description": "Tendons drawn at their duct diameter."
                  },
                  "separateSlabs": {
                    "type": "boolean",
                    "default": true,
                    "description": "A composite section's deck slab as its own slab."
                  },
                  "joinDeck": {
                    "type": "boolean",
                    "default": true,
                    "description": "Join side-by-side girders' slab strips into one continuous deck."
                  },
                  "skipWeightless": {
                    "type": "boolean",
                    "default": true,
                    "description": "Leave out weightless (dummy) members; cables, piles and members named NoSW are kept."
                  },
                  "startStation": {
                    "type": "number",
                    "default": 0,
                    "description": "Chainage at the start of the deck, m."
                  },
                  "groups": {
                    "type": "boolean",
                    "default": true
                  },
                  "stages": {
                    "type": "boolean",
                    "default": true,
                    "description": "Construction stages as groups."
                  },
                  "colours": {
                    "type": "boolean",
                    "default": true
                  },
                  "colourBy": {
                    "enum": [
                      "role",
                      "section"
                    ],
                    "default": "role",
                    "description": "role: superstructure, substructure, deck slab, steel, tendons. section: each section its own colour, the style named after it (composite deck slabs and plate thicknesses their own; tendons keep theirs)."
                  },
                  "linearPlacement": {
                    "type": "boolean",
                    "default": false,
                    "description": "IFC4.3 only: place members along the alignment (IfcLinearPlacement)."
                  },
                  "analysis": {
                    "type": "boolean",
                    "default": true,
                    "description": "Include the structural analysis model (nodes, supports, members, links)."
                  },
                  "loads": {
                    "type": "boolean",
                    "default": true,
                    "description": "Load cases, self-weight, nodal/beam/pressure loads and combinations (with analysis)."
                  },
                  "reactions": {
                    "type": "boolean",
                    "default": true,
                    "description": "Support reactions for every analysed series (with analysis; needs an analysed model)."
                  },
                  "resultSeries": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Load cases / combinations (exact names) whose results to add: node displacements and member and plate forces. None by default — they multiply by elements × points × series."
                  },
                  "displacements": {
                    "type": "boolean",
                    "default": true,
                    "description": "With resultSeries: node displacements."
                  },
                  "memberForces": {
                    "type": "boolean",
                    "default": true,
                    "description": "With resultSeries: beam forces."
                  },
                  "plateForces": {
                    "type": "boolean",
                    "default": true,
                    "description": "With resultSeries: plate forces."
                  },
                  "deformed": {
                    "type": "object",
                    "description": "{series, scale}: also write the deformed shape for one load case or combination as its own IFC (scale omitted = automatic, the largest movement drawn at about 5% of the bridge's size).",
                    "properties": {
                      "series": {
                        "type": "string"
                      },
                      "scale": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "series"
                    ],
                    "additionalProperties": false
                  },
                  "georef": {
                    "type": "object",
                    "description": "{crs (e.g. EPSG:27700), eastings, northings, height, rotation (deg anticlockwise from grid east to model X), scale, relocate}: IfcMapConversion; nothing is written without crs. relocate true places the geometry itself at the grid coordinates (the map conversion is then written as zero), for viewers that ignore IfcMapConversion. Omitted = none.",
                    "additionalProperties": false,
                    "properties": {
                      "crs": {
                        "type": "string"
                      },
                      "eastings": {
                        "type": "number"
                      },
                      "northings": {
                        "type": "number"
                      },
                      "height": {
                        "type": "number"
                      },
                      "rotation": {
                        "type": "number"
                      },
                      "scale": {
                        "type": "number"
                      },
                      "relocate": {
                        "type": "boolean",
                        "default": false
                      }
                    }
                  },
                  "classification": {
                    "type": "object",
                    "description": "{name, edition, codes: {<role>: {code, title}}} e.g. Uniclass codes per role (girder, deck slab, pier stem, pier cap, abutment wall, pile, bearing, tendon…).",
                    "additionalProperties": true
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/model_to_dxf": {
      "post": {
        "operationId": "model_to_dxf",
        "summary": "Model to IFC — DXF drawings and 3D DXF",
        "description": "Use to export the model as DXF drawings. To import a DXF use dxf_import. Draws the open CIVIL NX model as DXF with the Model to IFC plugin's drawing engine: a 2D drawing file (DXF 2000: plan, elevation developed along the deck, hidden-line isometric, section cuts with hatched faces and tendon ducts,",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "File / model name (default: the model's project name)."
                  },
                  "tendons": {
                    "type": "boolean",
                    "default": true,
                    "description": "Tendons drawn at their duct diameter."
                  },
                  "separateSlabs": {
                    "type": "boolean",
                    "default": true,
                    "description": "A composite section's deck slab as its own slab."
                  },
                  "joinDeck": {
                    "type": "boolean",
                    "default": true,
                    "description": "Join side-by-side girders' slab strips into one continuous deck."
                  },
                  "skipWeightless": {
                    "type": "boolean",
                    "default": true,
                    "description": "Leave out weightless (dummy) members; cables, piles and members named NoSW are kept."
                  },
                  "startStation": {
                    "type": "number",
                    "default": 0,
                    "description": "Chainage at the start of the deck, m."
                  },
                  "units": {
                    "enum": [
                      "mm",
                      "cm",
                      "m",
                      "in",
                      "ft"
                    ],
                    "default": "mm",
                    "description": "Drawing unit (dimensions); levels and chainages are labelled in m (ft for imperial)."
                  },
                  "drawings2d": {
                    "type": "boolean",
                    "default": true
                  },
                  "views": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "plan",
                        "elevation",
                        "iso",
                        "cuts",
                        "sections"
                      ]
                    },
                    "description": "Which 2D views (default all: plan, elevation, iso, cuts, sections)."
                  },
                  "cuts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "enum": [
                            "cross",
                            "long",
                            "level"
                          ]
                        },
                        "at": {
                          "type": "number"
                        },
                        "depth": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "at"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "cutsAtSupports": {
                    "type": "boolean",
                    "default": false
                  },
                  "hidden": {
                    "type": "boolean",
                    "default": true,
                    "description": "Hidden lines dashed in plan and elevation."
                  },
                  "labels": {
                    "type": "boolean",
                    "default": true,
                    "description": "Chainages, labels and dimensions."
                  },
                  "model3d": {
                    "type": "boolean",
                    "default": true,
                    "description": "Also write the 3D DXF."
                  },
                  "format3d": {
                    "enum": [
                      "R2000",
                      "R12"
                    ],
                    "default": "R2000",
                    "description": "R12 is about half the size (Autodesk Viewer may show it empty)."
                  },
                  "wireframe": {
                    "type": "boolean",
                    "default": false,
                    "description": "3D: element centrelines and plate outlines on a non-plotting layer."
                  },
                  "max3dMegabytes": {
                    "type": "number",
                    "default": 150,
                    "description": "Skip the 3D file (and say so) if it would be larger than this."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/create_nodes": {
      "post": {
        "operationId": "create_nodes",
        "summary": "Node Generator — create nodes",
        "description": "Use to create many nodes from coordinates, with the plugin's checks. For nodes plus elements use civil_write_tables; for a whole deck use skew_grillage. Creates nodes in the open CIVIL NX model from X, Y, Z coordinates with the Node Generator plugin's own engine: every check the plugin window makes ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "nodes": {
                    "type": "array",
                    "description": "Points: {x, y, z} or {id, x, y, z}; [x, y, z] and [id, x, y, z] arrays also work.",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": [
                                "integer",
                                "string"
                              ]
                            },
                            "x": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "y": {
                              "type": [
                                "number",
                                "string"
                              ]
                            },
                            "z": {
                              "type": [
                                "number",
                                "string"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": [
                              "number",
                              "string"
                            ]
                          }
                        }
                      ]
                    }
                  },
                  "table": {
                    "type": "string",
                    "description": "Instead of nodes: tab-, comma- or semicolon-separated text, one node per line (ID, X, Y, Z or X, Y, Z), optional header row."
                  },
                  "inputUnit": {
                    "enum": [
                      "M",
                      "MM"
                    ],
                    "default": "M",
                    "description": "Unit of the coordinates, the origin offset and the tolerance."
                  },
                  "decimal": {
                    "enum": [
                      "AUTO",
                      "POINT",
                      "COMMA"
                    ],
                    "description": "Decimal mark in table text; AUTO detects it."
                  },
                  "origin": {
                    "type": "object",
                    "properties": {
                      "x": {
                        "type": [
                          "number",
                          "string"
                        ]
                      },
                      "y": {
                        "type": [
                          "number",
                          "string"
                        ]
                      },
                      "z": {
                        "type": [
                          "number",
                          "string"
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Added to every coordinate (input unit)."
                  },
                  "numbering": {
                    "enum": [
                      "auto",
                      "start",
                      "column"
                    ]
                  },
                  "start": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "numbering 'start': first id."
                  },
                  "increment": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "numbering 'start': step between ids."
                  },
                  "tolerance": {
                    "type": "number",
                    "minimum": 0,
                    "default": 0.001,
                    "description": "Coincidence tolerance, input unit."
                  },
                  "overwrite": {
                    "type": "boolean",
                    "default": false,
                    "description": "Move existing nodes whose id is in the input to the new coordinates. Only with the user's agreement."
                  },
                  "coincident": {
                    "enum": [
                      "report",
                      "skip",
                      "create"
                    ],
                    "default": "report",
                    "description": "report = preview only; skip = leave coincident rows out; create = create them anyway."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write to CIVIL NX. Only after the user approved the preview."
                  },
                  "confirmPlanHash": {
                    "type": "string",
                    "description": "planHash from the approved preview; the write is refused if the plan differs."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/pd6694_route_a": {
      "post": {
        "operationId": "pd6694_route_a",
        "summary": "PD 6694-1 Route A earth pressures",
        "description": "Use for PD 6694-1 integral abutment earth pressures by the limit-equilibrium route, with no model. For the soil-structure interaction route use pd6694_ssi_plan. PD 6694-1 integral abutment earth pressures by the limit-equilibrium route (K*, cl.9.4.3/9.4.4) with the PD 6694-1 Integral Abutment plugin",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "abutmentType": {
                    "type": "string",
                    "description": "\"frame\" (full-height frame, default), \"bank pad\", \"end screen\" or \"embedded\" (embedded walls are outside the K* method)."
                  },
                  "skewDeg": {
                    "type": "number",
                    "description": "Skew, degrees (default 0). 0 to 30 for the K* method; the SSI route needs a square wall."
                  },
                  "expansionLength": {
                    "type": "number",
                    "description": "Deck length expanding towards the abutments, m — usually the WHOLE deck (default 60). It is shared between nAbutmentsSharing abutments, so PD 6694-1 cl.9.4.2's L_x (to the point of zero movement) = expansionLength / nAbutmentsSharing. Do not enter L_x here with 2 abutments sharing: that halves the movement."
                  },
                  "tMax": {
                    "type": "number",
                    "description": "Max effective bridge temperature, °C (default 37)."
                  },
                  "tMin": {
                    "type": "number",
                    "description": "Min effective bridge temperature, °C (default -2)."
                  },
                  "alphaMicro": {
                    "type": "number",
                    "description": "Thermal coefficient ×1e-6 /°C (default 12)."
                  },
                  "nAbutmentsSharing": {
                    "type": "number",
                    "description": "Abutments sharing the movement (default 2): d_k per abutment = α × (expansionLength / nAbutmentsSharing) × ΔT. Use 1 when expansionLength is already L_x for this abutment."
                  },
                  "psi": {
                    "type": "number",
                    "description": "ψ, cl.9.4.2 combination factor on the thermal movement (default 1, the unfactored case)."
                  },
                  "gammaQ": {
                    "type": "number",
                    "description": "γQ, cl.9.4.2 partial factor on the thermal movement (default 1, the unfactored case; expected 1 to 1.5)."
                  },
                  "phiPeakDeg": {
                    "type": "number",
                    "description": "Backfill φ'peak (default 35)."
                  },
                  "phiCritDeg": {
                    "type": "number",
                    "description": "Backfill φ'crit (default 32)."
                  },
                  "gammaBulk": {
                    "type": "number",
                    "description": "Backfill bulk unit weight, kN/m³ (default 18; typical 18 to 20)."
                  },
                  "gammaSat": {
                    "type": "number",
                    "description": "Backfill saturated unit weight, kN/m³ (default 20; not below gammaBulk)."
                  },
                  "hasWaterTable": {
                    "type": "boolean",
                    "description": "A water table behind the wall (default false); its depth is waterTableDepth."
                  },
                  "waterTableDepth": {
                    "type": "number",
                    "description": "Water table depth below the retained surface, m (default 2; used only when hasWaterTable)."
                  },
                  "surchargeKpa": {
                    "type": "number",
                    "description": "Surcharge added to σ'v behind the wall at every depth, kPa (default 0)."
                  },
                  "phiSuperiorDeg": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Superior φ' for K0,min, degrees (default null = phiPeakDeg). Must not be below phiInferiorDeg."
                  },
                  "phiInferiorDeg": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Inferior φ' for K0,max, degrees (default null = phiCritDeg)."
                  },
                  "override": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "Engineer's route override {route, engineer, reason} — only with the user's justification."
                  },
                  "abutment": {
                    "type": "object",
                    "properties": {
                      "group": {
                        "type": "string",
                        "description": "Structure group holding the abutment wall plates."
                      },
                      "retainedHeight": {
                        "type": "number",
                        "description": "H, m (default 6)."
                      },
                      "loadedWidth": {
                        "type": "number",
                        "description": "Wall width loaded, m (default 10)."
                      },
                      "foundationType": {
                        "enum": [
                          "spread_footing",
                          "bank_pad",
                          "single_row_piles",
                          "multi_row_piles",
                          "embedded_wall"
                        ],
                        "description": "Decides the route: footings/bank pads → Route A; piles/embedded walls → Annex A (SSI)."
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/pd6694_route_a_write": {
      "post": {
        "operationId": "pd6694_route_a_write",
        "summary": "Write PD 6694 Route A pressures",
        "description": "Use after pd6694_route_a, to write its pressures on the abutment walls. Writes the four PD 6694 limit-equilibrium states as plate pressures on one or two abutment wall groups, exactly as the plugin's Write button: same-model guard, the PD6694 EP load cases and groups, pressure items (other loads on ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "abutmentType": {
                    "type": "string",
                    "description": "\"frame\" (full-height frame, default), \"bank pad\", \"end screen\" or \"embedded\" (embedded walls are outside the K* method)."
                  },
                  "skewDeg": {
                    "type": "number",
                    "description": "Skew, degrees (default 0). 0 to 30 for the K* method; the SSI route needs a square wall."
                  },
                  "expansionLength": {
                    "type": "number",
                    "description": "Deck length expanding towards the abutments, m — usually the WHOLE deck (default 60). It is shared between nAbutmentsSharing abutments, so PD 6694-1 cl.9.4.2's L_x (to the point of zero movement) = expansionLength / nAbutmentsSharing. Do not enter L_x here with 2 abutments sharing: that halves the movement."
                  },
                  "tMax": {
                    "type": "number",
                    "description": "Max effective bridge temperature, °C (default 37)."
                  },
                  "tMin": {
                    "type": "number",
                    "description": "Min effective bridge temperature, °C (default -2)."
                  },
                  "alphaMicro": {
                    "type": "number",
                    "description": "Thermal coefficient ×1e-6 /°C (default 12)."
                  },
                  "nAbutmentsSharing": {
                    "type": "number",
                    "description": "Abutments sharing the movement (default 2): d_k per abutment = α × (expansionLength / nAbutmentsSharing) × ΔT. Use 1 when expansionLength is already L_x for this abutment."
                  },
                  "psi": {
                    "type": "number",
                    "description": "ψ, cl.9.4.2 combination factor on the thermal movement (default 1, the unfactored case)."
                  },
                  "gammaQ": {
                    "type": "number",
                    "description": "γQ, cl.9.4.2 partial factor on the thermal movement (default 1, the unfactored case; expected 1 to 1.5)."
                  },
                  "phiPeakDeg": {
                    "type": "number",
                    "description": "Backfill φ'peak (default 35)."
                  },
                  "phiCritDeg": {
                    "type": "number",
                    "description": "Backfill φ'crit (default 32)."
                  },
                  "gammaBulk": {
                    "type": "number",
                    "description": "Backfill bulk unit weight, kN/m³ (default 18; typical 18 to 20)."
                  },
                  "gammaSat": {
                    "type": "number",
                    "description": "Backfill saturated unit weight, kN/m³ (default 20; not below gammaBulk)."
                  },
                  "hasWaterTable": {
                    "type": "boolean",
                    "description": "A water table behind the wall (default false); its depth is waterTableDepth."
                  },
                  "waterTableDepth": {
                    "type": "number",
                    "description": "Water table depth below the retained surface, m (default 2; used only when hasWaterTable)."
                  },
                  "surchargeKpa": {
                    "type": "number",
                    "description": "Surcharge added to σ'v behind the wall at every depth, kPa (default 0)."
                  },
                  "phiSuperiorDeg": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Superior φ' for K0,min, degrees (default null = phiPeakDeg). Must not be below phiInferiorDeg."
                  },
                  "phiInferiorDeg": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Inferior φ' for K0,max, degrees (default null = phiCritDeg)."
                  },
                  "override": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "Engineer's route override {route, engineer, reason} — only with the user's justification."
                  },
                  "abutments": {
                    "type": "array",
                    "maxItems": 2,
                    "items": {
                      "type": "object",
                      "properties": {
                        "group": {
                          "type": "string",
                          "description": "Structure group holding the abutment wall plates."
                        },
                        "retainedHeight": {
                          "type": "number",
                          "description": "H, m (default 6)."
                        },
                        "loadedWidth": {
                          "type": "number",
                          "description": "Wall width loaded, m (default 10)."
                        },
                        "foundationType": {
                          "enum": [
                            "spread_footing",
                            "bank_pad",
                            "single_row_piles",
                            "multi_row_piles",
                            "embedded_wall"
                          ],
                          "description": "Decides the route: footings/bank pads → Route A; piles/embedded walls → Annex A (SSI)."
                        }
                      },
                      "additionalProperties": false
                    },
                    "description": "One or two abutment walls, each {group, retainedHeight, loadedWidth, foundationType}; group is required."
                  },
                  "stageId": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Construction stage id to activate the four cases in."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "required": [
                  "abutments"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/pd6694_route_a_remove": {
      "post": {
        "operationId": "pd6694_route_a_remove",
        "summary": "Remove PD 6694 Route A cases",
        "description": "Use to remove the Route A cases; it is also the undo of pd6694_route_a_write. For SSI results use pd6694_ssi_remove. Removes the four PD6694 EP limit-equilibrium load cases with their pressures, load groups and stage activations (the plugin's Remove). Other load cases are kept. Previews unless apply",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apply": {
                    "type": "boolean",
                    "default": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/pd6694_ssi_plan": {
      "post": {
        "operationId": "pd6694_ssi_plan",
        "summary": "Plan a PD 6694 Annex A (SSI) run",
        "description": "Step 1 of a PD 6694 Annex A (SSI) run. For the limit-equilibrium route use pd6694_route_a. Read-only: changes nothing in the model. Call it before pd6694_ssi_run, with the same inputs, to check that the PD 6694-1 Annex A soil-structure interaction run can go ahead — it uses the plugin's own planner.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "abutmentType": {
                    "type": "string",
                    "description": "\"frame\" (full-height frame, default), \"bank pad\", \"end screen\" or \"embedded\" (embedded walls are outside the K* method)."
                  },
                  "skewDeg": {
                    "type": "number",
                    "description": "Skew, degrees (default 0). 0 to 30 for the K* method; the SSI route needs a square wall."
                  },
                  "expansionLength": {
                    "type": "number",
                    "description": "Deck length expanding towards the abutments, m — usually the WHOLE deck (default 60). It is shared between nAbutmentsSharing abutments, so PD 6694-1 cl.9.4.2's L_x (to the point of zero movement) = expansionLength / nAbutmentsSharing. Do not enter L_x here with 2 abutments sharing: that halves the movement."
                  },
                  "tMax": {
                    "type": "number",
                    "description": "Max effective bridge temperature, °C (default 37)."
                  },
                  "tMin": {
                    "type": "number",
                    "description": "Min effective bridge temperature, °C (default -2)."
                  },
                  "alphaMicro": {
                    "type": "number",
                    "description": "Thermal coefficient ×1e-6 /°C (default 12)."
                  },
                  "nAbutmentsSharing": {
                    "type": "number",
                    "description": "Abutments sharing the movement (default 2): d_k per abutment = α × (expansionLength / nAbutmentsSharing) × ΔT. Use 1 when expansionLength is already L_x for this abutment."
                  },
                  "psi": {
                    "type": "number",
                    "description": "ψ, cl.9.4.2 combination factor on the thermal movement (default 1, the unfactored case)."
                  },
                  "gammaQ": {
                    "type": "number",
                    "description": "γQ, cl.9.4.2 partial factor on the thermal movement (default 1, the unfactored case; expected 1 to 1.5)."
                  },
                  "phiPeakDeg": {
                    "type": "number",
                    "description": "Backfill φ'peak (default 35)."
                  },
                  "phiCritDeg": {
                    "type": "number",
                    "description": "Backfill φ'crit (default 32)."
                  },
                  "gammaBulk": {
                    "type": "number",
                    "description": "Backfill bulk unit weight, kN/m³ (default 18; typical 18 to 20)."
                  },
                  "gammaSat": {
                    "type": "number",
                    "description": "Backfill saturated unit weight, kN/m³ (default 20; not below gammaBulk)."
                  },
                  "hasWaterTable": {
                    "type": "boolean",
                    "description": "A water table behind the wall (default false); its depth is waterTableDepth."
                  },
                  "waterTableDepth": {
                    "type": "number",
                    "description": "Water table depth below the retained surface, m (default 2; used only when hasWaterTable)."
                  },
                  "surchargeKpa": {
                    "type": "number",
                    "description": "Surcharge added to σ'v behind the wall at every depth, kPa (default 0)."
                  },
                  "phiSuperiorDeg": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Superior φ' for K0,min, degrees (default null = phiPeakDeg). Must not be below phiInferiorDeg."
                  },
                  "phiInferiorDeg": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Inferior φ' for K0,max, degrees (default null = phiCritDeg)."
                  },
                  "override": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "Engineer's route override {route, engineer, reason} — only with the user's justification."
                  },
                  "abutments": {
                    "type": "array",
                    "maxItems": 2,
                    "items": {
                      "type": "object",
                      "properties": {
                        "group": {
                          "type": "string",
                          "description": "Structure group holding the abutment wall plates."
                        },
                        "retainedHeight": {
                          "type": "number",
                          "description": "H, m (default 6)."
                        },
                        "loadedWidth": {
                          "type": "number",
                          "description": "Wall width loaded, m (default 10)."
                        },
                        "foundationType": {
                          "enum": [
                            "spread_footing",
                            "bank_pad",
                            "single_row_piles",
                            "multi_row_piles",
                            "embedded_wall"
                          ],
                          "description": "Decides the route: footings/bank pads → Route A; piles/embedded walls → Annex A (SSI)."
                        }
                      },
                      "additionalProperties": false
                    },
                    "description": "One or two abutment walls, each {group, retainedHeight, loadedWidth, foundationType}; group is required."
                  },
                  "ssi": {
                    "type": "object",
                    "description": "Annex A settings, as the plugin's SSI tab: deckGroup (required), stageId, suspendGroups, piles [{pileGroup, pileTributaryWidth, excavationLevel}], movementConvention, foundationC, groundPhi, groundGamma, mode (multilinear|linear), onLinearBehaviour, tolerance, maxIterations, relaxation, wallRigidAtBase, pilePlaneStrainConfirmed.",
                    "additionalProperties": true
                  }
                },
                "required": [
                  "abutments"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/pd6694_ssi_run": {
      "post": {
        "operationId": "pd6694_ssi_run",
        "summary": "Run PD 6694 Annex A (SSI)",
        "description": "Use only for the PD 6694 Annex A iteration. For a normal analysis use civil_run_analysis. Runs the PD 6694-1 Annex A iteration with the plugin's own runner: Winkler springs on the walls (multi-linear), repeated analyses until the wall displacements settle, then the two design pressure cases written ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "abutmentType": {
                    "type": "string",
                    "description": "\"frame\" (full-height frame, default), \"bank pad\", \"end screen\" or \"embedded\" (embedded walls are outside the K* method)."
                  },
                  "skewDeg": {
                    "type": "number",
                    "description": "Skew, degrees (default 0). 0 to 30 for the K* method; the SSI route needs a square wall."
                  },
                  "expansionLength": {
                    "type": "number",
                    "description": "Deck length expanding towards the abutments, m — usually the WHOLE deck (default 60). It is shared between nAbutmentsSharing abutments, so PD 6694-1 cl.9.4.2's L_x (to the point of zero movement) = expansionLength / nAbutmentsSharing. Do not enter L_x here with 2 abutments sharing: that halves the movement."
                  },
                  "tMax": {
                    "type": "number",
                    "description": "Max effective bridge temperature, °C (default 37)."
                  },
                  "tMin": {
                    "type": "number",
                    "description": "Min effective bridge temperature, °C (default -2)."
                  },
                  "alphaMicro": {
                    "type": "number",
                    "description": "Thermal coefficient ×1e-6 /°C (default 12)."
                  },
                  "nAbutmentsSharing": {
                    "type": "number",
                    "description": "Abutments sharing the movement (default 2): d_k per abutment = α × (expansionLength / nAbutmentsSharing) × ΔT. Use 1 when expansionLength is already L_x for this abutment."
                  },
                  "psi": {
                    "type": "number",
                    "description": "ψ, cl.9.4.2 combination factor on the thermal movement (default 1, the unfactored case)."
                  },
                  "gammaQ": {
                    "type": "number",
                    "description": "γQ, cl.9.4.2 partial factor on the thermal movement (default 1, the unfactored case; expected 1 to 1.5)."
                  },
                  "phiPeakDeg": {
                    "type": "number",
                    "description": "Backfill φ'peak (default 35)."
                  },
                  "phiCritDeg": {
                    "type": "number",
                    "description": "Backfill φ'crit (default 32)."
                  },
                  "gammaBulk": {
                    "type": "number",
                    "description": "Backfill bulk unit weight, kN/m³ (default 18; typical 18 to 20)."
                  },
                  "gammaSat": {
                    "type": "number",
                    "description": "Backfill saturated unit weight, kN/m³ (default 20; not below gammaBulk)."
                  },
                  "hasWaterTable": {
                    "type": "boolean",
                    "description": "A water table behind the wall (default false); its depth is waterTableDepth."
                  },
                  "waterTableDepth": {
                    "type": "number",
                    "description": "Water table depth below the retained surface, m (default 2; used only when hasWaterTable)."
                  },
                  "surchargeKpa": {
                    "type": "number",
                    "description": "Surcharge added to σ'v behind the wall at every depth, kPa (default 0)."
                  },
                  "phiSuperiorDeg": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Superior φ' for K0,min, degrees (default null = phiPeakDeg). Must not be below phiInferiorDeg."
                  },
                  "phiInferiorDeg": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Inferior φ' for K0,max, degrees (default null = phiCritDeg)."
                  },
                  "override": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "Engineer's route override {route, engineer, reason} — only with the user's justification."
                  },
                  "abutments": {
                    "type": "array",
                    "maxItems": 2,
                    "items": {
                      "type": "object",
                      "properties": {
                        "group": {
                          "type": "string",
                          "description": "Structure group holding the abutment wall plates."
                        },
                        "retainedHeight": {
                          "type": "number",
                          "description": "H, m (default 6)."
                        },
                        "loadedWidth": {
                          "type": "number",
                          "description": "Wall width loaded, m (default 10)."
                        },
                        "foundationType": {
                          "enum": [
                            "spread_footing",
                            "bank_pad",
                            "single_row_piles",
                            "multi_row_piles",
                            "embedded_wall"
                          ],
                          "description": "Decides the route: footings/bank pads → Route A; piles/embedded walls → Annex A (SSI)."
                        }
                      },
                      "additionalProperties": false
                    },
                    "description": "One or two abutment walls, each {group, retainedHeight, loadedWidth, foundationType}; group is required."
                  },
                  "ssi": {
                    "type": "object",
                    "description": "Annex A settings, as the plugin's SSI tab: deckGroup (required), stageId, suspendGroups, piles [{pileGroup, pileTributaryWidth, excavationLevel}], movementConvention, foundationC, groundPhi, groundGamma, mode (multilinear|linear), onLinearBehaviour, tolerance, maxIterations, relaxation, wallRigidAtBase, pilePlaneStrainConfirmed.",
                    "additionalProperties": true
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "required": [
                  "abutments"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/pd6694_ssi_remove": {
      "post": {
        "operationId": "pd6694_ssi_remove",
        "summary": "Remove PD 6694 SSI results",
        "description": "Use to remove what pd6694_ssi_run left; it is also its undo. For Route A cases use pd6694_route_a_remove. Removes everything an SSI run left (design pressure cases, spring groups, analysis cases) and restores the model's own springs from the run's backup (the plugin's Remove SSI). Previews unless ap",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apply": {
                    "type": "boolean",
                    "default": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/point_to_patch_dispersal": {
      "post": {
        "operationId": "point_to_patch_dispersal",
        "summary": "Wheel load dispersal to a patch",
        "description": "Use for one wheel or point load's dispersal patch, with no model. To convert the model's loads use point_to_patch_apply. The Point to Patch Convertor's dispersal for one point load: the code's contact area (or the load-derived one), the spread through surfacing and slab to the mid-plane or neutral a",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "load": {
                    "type": "number",
                    "description": "Point load, kN (needed for load-derived presets and the pressure)."
                  },
                  "presetId": {
                    "enum": [
                      "EC_LM1_TS",
                      "EC_LM2",
                      "EC_LM1_TS_ORTHO",
                      "EC_FLM3",
                      "EC_T48_A",
                      "EC_T48_B",
                      "EC_T48_C",
                      "EC_LM3_AXLE_200",
                      "EC_LM3_AXLE_240",
                      "EC_FOOT_ACC",
                      "UKNA_LM1_TS",
                      "UKNA_LM2",
                      "UKNA_SV",
                      "UKNA_SOV",
                      "UKNA_ABUTMENT",
                      "CS454_RC_SLAB",
                      "CS454_0P3",
                      "CS454_HB",
                      "CS454_TROUGH_STRIP",
                      "EC_RAIL_UNDER_RAIL",
                      "NR025_BALLAST",
                      "NR025_ARCH_FILL",
                      "BS5400_RU_RL",
                      "CUSTOM"
                    ],
                    "description": "Contact area and spread rule (EN 1991-2, UK NA, CS 454, BS 5400, Network Rail…; point_to_patch_read lists them with their clauses)."
                  },
                  "b0": {
                    "type": "number",
                    "description": "Contact width across the traffic, m (null = the preset's)."
                  },
                  "l0": {
                    "type": "number",
                    "description": "Contact length along the traffic, m."
                  },
                  "ts": {
                    "type": "number",
                    "description": "Surfacing / ballast / fill depth, m."
                  },
                  "tc": {
                    "type": "number",
                    "description": "Slab depth, m (apply: default the plate thickness). With fill.enabled: the thickness of the selected surface (default: plate thickness, or a grillage beam's section depth)."
                  },
                  "alphaS": {
                    "type": "number",
                    "description": "Half-angle from vertical through the surfacing, ° (0 is honoured)."
                  },
                  "alphaC": {
                    "type": "number",
                    "description": "Half-angle through the concrete, °."
                  },
                  "alphaSLong": {
                    "type": "number"
                  },
                  "alphaCLong": {
                    "type": "number"
                  },
                  "targetPlane": {
                    "enum": [
                      "MID_PLANE",
                      "NEUTRAL_AXIS"
                    ]
                  },
                  "neutralAxisDepth": {
                    "type": "number",
                    "description": "m below the top, for NEUTRAL_AXIS."
                  }
                },
                "required": [
                  "presetId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/point_to_patch_read": {
      "post": {
        "operationId": "point_to_patch_read",
        "summary": "Read the model for patch loads",
        "description": "Use before point_to_patch_apply. Read-only. Reads the open model as the Point to Patch Convertor does: whether the deck is plates or a grillage, its levels and groups, the point loads (nodal and beam concentrated) per load case that could be dispersed, any PATCH_ cases already written, and every pre",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "active": {
                    "type": "object",
                    "description": "Limit to elements: { groups: [names], useZ, zMin, zMax }.",
                    "additionalProperties": true
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/point_to_patch_apply": {
      "post": {
        "operationId": "point_to_patch_apply",
        "summary": "Disperse point loads into patch loads",
        "description": "Use to turn the model's point loads into dispersed patch loads. For new traffic use ec_moving_loads or cs454_moving_loads; for new point loads use civil_loads_supports. Converts the model's point loads (or a coordinate table) into dispersed patch loads with the Point to Patch Convertor's engine and ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dispersal": {
                    "type": "object",
                    "properties": {
                      "presetId": {
                        "enum": [
                          "EC_LM1_TS",
                          "EC_LM2",
                          "EC_LM1_TS_ORTHO",
                          "EC_FLM3",
                          "EC_T48_A",
                          "EC_T48_B",
                          "EC_T48_C",
                          "EC_LM3_AXLE_200",
                          "EC_LM3_AXLE_240",
                          "EC_FOOT_ACC",
                          "UKNA_LM1_TS",
                          "UKNA_LM2",
                          "UKNA_SV",
                          "UKNA_SOV",
                          "UKNA_ABUTMENT",
                          "CS454_RC_SLAB",
                          "CS454_0P3",
                          "CS454_HB",
                          "CS454_TROUGH_STRIP",
                          "EC_RAIL_UNDER_RAIL",
                          "NR025_BALLAST",
                          "NR025_ARCH_FILL",
                          "BS5400_RU_RL",
                          "CUSTOM"
                        ],
                        "description": "Contact area and spread rule (EN 1991-2, UK NA, CS 454, BS 5400, Network Rail…; point_to_patch_read lists them with their clauses)."
                      },
                      "b0": {
                        "type": "number",
                        "description": "Contact width across the traffic, m (null = the preset's)."
                      },
                      "l0": {
                        "type": "number",
                        "description": "Contact length along the traffic, m."
                      },
                      "ts": {
                        "type": "number",
                        "description": "Surfacing / ballast / fill depth, m."
                      },
                      "tc": {
                        "type": "number",
                        "description": "Slab depth, m (apply: default the plate thickness). With fill.enabled: the thickness of the selected surface (default: plate thickness, or a grillage beam's section depth)."
                      },
                      "alphaS": {
                        "type": "number",
                        "description": "Half-angle from vertical through the surfacing, ° (0 is honoured)."
                      },
                      "alphaC": {
                        "type": "number",
                        "description": "Half-angle through the concrete, °."
                      },
                      "alphaSLong": {
                        "type": "number"
                      },
                      "alphaCLong": {
                        "type": "number"
                      },
                      "targetPlane": {
                        "enum": [
                          "MID_PLANE",
                          "NEUTRAL_AXIS"
                        ]
                      },
                      "neutralAxisDepth": {
                        "type": "number",
                        "description": "m below the top, for NEUTRAL_AXIS."
                      }
                    },
                    "required": [
                      "presetId"
                    ],
                    "additionalProperties": false
                  },
                  "fill": {
                    "type": "object",
                    "description": "Disperse onto a selected surface through fill (an arch barrel, a culvert roof, a lower deck — plates or a beam grillage) instead of onto the plane the loads are on. The depth between each load and the surface is read from the model at every point of the spread; whatever falls beyond the surface's edge is LEFT OUT, not redistributed. Leave out (or enabled false) for the plane method.",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "default": false
                      },
                      "surfaceGroups": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Structure groups that make up the surface the loads land on (point_to_patch_read lists the groups)."
                      },
                      "depthMode": {
                        "enum": [
                          "AUTO",
                          "MANUAL"
                        ],
                        "default": "AUTO",
                        "description": "AUTO: fill depth = load level − surfacing ts − top of the surface. MANUAL: the depth directly under each load is `depth`; the spread still follows the surface's shape."
                      },
                      "depth": {
                        "type": "number",
                        "description": "MANUAL: fill depth under each load, m."
                      },
                      "road": {
                        "enum": [
                          "LOAD_Z",
                          "LEVEL"
                        ],
                        "default": "LOAD_Z",
                        "description": "AUTO: loads act at their own Z, or at roadLevel."
                      },
                      "roadLevel": {
                        "type": "number",
                        "description": "AUTO with road LEVEL: level the loads act at, m."
                      },
                      "alphaF": {
                        "type": "number",
                        "description": "Spread half-angle through the fill across traffic, ° (default: the preset's surfacing angle)."
                      },
                      "alphaFLong": {
                        "type": "number",
                        "description": "Along traffic, ° (default alphaF)."
                      },
                      "distribution": {
                        "enum": [
                          "UNIFORM",
                          "BOUSSINESQ"
                        ],
                        "default": "UNIFORM"
                      }
                    },
                    "additionalProperties": false
                  },
                  "source": {
                    "type": "object",
                    "description": "mode MODEL (default: nodal and beam concentrated loads; lcNames to pick cases, owners, minMagnitude) or MANUAL (manualText: one load per line 'X, Y, P[, Z]' in kN and m; manualCase names the case).",
                    "additionalProperties": true
                  },
                  "active": {
                    "type": "object",
                    "description": "Elements the patches may load: { groups: [names], useZ, zMin, zMax }.",
                    "additionalProperties": true
                  },
                  "kind": {
                    "enum": [
                      "AUTO",
                      "PLATE",
                      "GRILLAGE"
                    ],
                    "default": "AUTO"
                  },
                  "rail": {
                    "type": "object",
                    "properties": {
                      "spacing": {
                        "type": "number",
                        "description": "Sleeper spacing, m."
                      },
                      "f": {
                        "type": "number",
                        "description": "User load factor."
                      }
                    },
                    "additionalProperties": false
                  },
                  "rotationDeg": {
                    "type": "number",
                    "description": "Traffic direction from global +X, °."
                  },
                  "conserveForce": {
                    "type": "boolean",
                    "default": true
                  },
                  "direction": {
                    "enum": [
                      "GZ",
                      "LZ"
                    ],
                    "default": "GZ"
                  },
                  "output": {
                    "type": "object",
                    "properties": {
                      "tag": {
                        "type": "string",
                        "description": "Added to the case names: PATCH_<case>_<tag>."
                      },
                      "mode": {
                        "enum": [
                          "REPLACE",
                          "ADD"
                        ],
                        "default": "REPLACE",
                        "description": "REPLACE rewrites the PATCH_ cases (and removes earlier ones it does not reproduce); ADD writes new ones beside them."
                      }
                    },
                    "additionalProperties": false
                  },
                  "acceptBlockers": {
                    "type": "boolean",
                    "default": false,
                    "description": "Accept OVERRIDABLE blockers (the plugin's \"Write anyway\") — only with the user's agreement."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "required": [
                  "dispersal"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/civil_loads_supports": {
      "post": {
        "operationId": "civil_loads_supports",
        "summary": "Supports and loads in one call",
        "description": "Use for any support, spring, release, self-weight, nodal load, UDL, pressure or temperature you can state directly. For code-derived loads use ec_wind_apply, bridge_thermal_apply, ec_moving_loads or cs454_moving_loads. The fast way to add supports, point springs, beam end releases, self-weight, noda",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "supports": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "object",
                          "description": "Which nodes. Start set: group (structure group name), nodes, elements — given together they intersect; none = the whole model. Then filters (coordinates in the input length unit): line { from, to } (on that segment), box { min, max }, where { x: 0 } or { z: [0, 2] }, type (BEAM, TRUSS, PLATE…), pick xmin|xmax|ymin|ymax|zmin|zmax (the extreme nodes, e.g. the ends of a girder group). An element passes a geometric filter when all its nodes do. tol default 0.001.",
                          "properties": {
                            "group": {
                              "type": "string"
                            },
                            "nodes": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "elements": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "line": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "from",
                                "to"
                              ],
                              "additionalProperties": false
                            },
                            "box": {
                              "type": "object",
                              "properties": {
                                "min": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "max": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "min",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            "where": {
                              "type": "object",
                              "properties": {
                                "x": {},
                                "y": {},
                                "z": {}
                              },
                              "additionalProperties": false
                            },
                            "type": {
                              "type": "string"
                            },
                            "pick": {
                              "enum": [
                                "xmin",
                                "xmax",
                                "ymin",
                                "ymax",
                                "zmin",
                                "zmax"
                              ]
                            },
                            "tol": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "type": {
                          "enum": [
                            "fixed",
                            "pinned",
                            "roller-x",
                            "roller-y",
                            "roller-xy",
                            "vertical"
                          ],
                          "description": "fixed 1111110 · pinned 1110000 · roller-x 0110000 (slides along X) · roller-y 1010000 · roller-xy / vertical 0010000."
                        },
                        "dof": {
                          "type": "string",
                          "description": "Instead of type: DX DY DZ RX RY RZ [RW] as 0/1, e.g. \"1110100\"."
                        },
                        "boundaryGroup": {
                          "type": "string",
                          "description": "Optional boundary group; created if missing."
                        }
                      },
                      "required": [
                        "at"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "nodalLoads": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "object",
                          "description": "Which nodes. Start set: group (structure group name), nodes, elements — given together they intersect; none = the whole model. Then filters (coordinates in the input length unit): line { from, to } (on that segment), box { min, max }, where { x: 0 } or { z: [0, 2] }, type (BEAM, TRUSS, PLATE…), pick xmin|xmax|ymin|ymax|zmin|zmax (the extreme nodes, e.g. the ends of a girder group). An element passes a geometric filter when all its nodes do. tol default 0.001.",
                          "properties": {
                            "group": {
                              "type": "string"
                            },
                            "nodes": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "elements": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "line": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "from",
                                "to"
                              ],
                              "additionalProperties": false
                            },
                            "box": {
                              "type": "object",
                              "properties": {
                                "min": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "max": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "min",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            "where": {
                              "type": "object",
                              "properties": {
                                "x": {},
                                "y": {},
                                "z": {}
                              },
                              "additionalProperties": false
                            },
                            "type": {
                              "type": "string"
                            },
                            "pick": {
                              "enum": [
                                "xmin",
                                "xmax",
                                "ymin",
                                "ymax",
                                "zmin",
                                "zmax"
                              ]
                            },
                            "tol": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "case": {
                          "type": "string",
                          "description": "Static load case name (≤ 40 characters); created if missing (type from cases[], default USER)."
                        },
                        "F": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 1,
                          "maxItems": 6,
                          "description": "[FX, FY, FZ, MX, MY, MZ] per node, force and force×length."
                        },
                        "loadGroup": {
                          "type": "string",
                          "description": "Optional load group name; created if missing."
                        }
                      },
                      "required": [
                        "at",
                        "case",
                        "F"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "udl": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "on": {
                          "type": "object",
                          "description": "Which elements. Start set: group (structure group name), nodes, elements — given together they intersect; none = the whole model. Then filters (coordinates in the input length unit): line { from, to } (on that segment), box { min, max }, where { x: 0 } or { z: [0, 2] }, type (BEAM, TRUSS, PLATE…). An element passes a geometric filter when all its nodes do. tol default 0.001.",
                          "properties": {
                            "group": {
                              "type": "string"
                            },
                            "nodes": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "elements": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "line": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "from",
                                "to"
                              ],
                              "additionalProperties": false
                            },
                            "box": {
                              "type": "object",
                              "properties": {
                                "min": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "max": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "min",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            "where": {
                              "type": "object",
                              "properties": {
                                "x": {},
                                "y": {},
                                "z": {}
                              },
                              "additionalProperties": false
                            },
                            "type": {
                              "type": "string"
                            },
                            "tol": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "case": {
                          "type": "string",
                          "description": "Static load case name (≤ 40 characters); created if missing (type from cases[], default USER)."
                        },
                        "w": {
                          "type": "number",
                          "description": "Force per length, signed along dir."
                        },
                        "dir": {
                          "enum": [
                            "GX",
                            "GY",
                            "GZ",
                            "LX",
                            "LY",
                            "LZ"
                          ],
                          "default": "GZ"
                        },
                        "projected": {
                          "type": "boolean",
                          "default": false,
                          "description": "Per projected length (global directions only)."
                        },
                        "range": {
                          "type": "object",
                          "properties": {
                            "axis": {
                              "enum": [
                                "x",
                                "y",
                                "z"
                              ]
                            },
                            "from": {
                              "type": "number"
                            },
                            "to": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "from",
                            "to"
                          ],
                          "additionalProperties": false,
                          "description": "Load only the part of each element between these global coordinates (partial UDL)."
                        },
                        "loadGroup": {
                          "type": "string",
                          "description": "Optional load group name; created if missing."
                        }
                      },
                      "required": [
                        "on",
                        "case",
                        "w"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "pressure": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "on": {
                          "type": "object",
                          "description": "Which elements. Start set: group (structure group name), nodes, elements — given together they intersect; none = the whole model. Then filters (coordinates in the input length unit): line { from, to } (on that segment), box { min, max }, where { x: 0 } or { z: [0, 2] }, type (BEAM, TRUSS, PLATE…). An element passes a geometric filter when all its nodes do. tol default 0.001.",
                          "properties": {
                            "group": {
                              "type": "string"
                            },
                            "nodes": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "elements": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "line": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "from",
                                "to"
                              ],
                              "additionalProperties": false
                            },
                            "box": {
                              "type": "object",
                              "properties": {
                                "min": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "max": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "min",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            "where": {
                              "type": "object",
                              "properties": {
                                "x": {},
                                "y": {},
                                "z": {}
                              },
                              "additionalProperties": false
                            },
                            "type": {
                              "type": "string"
                            },
                            "tol": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "case": {
                          "type": "string",
                          "description": "Static load case name (≤ 40 characters); created if missing (type from cases[], default USER)."
                        },
                        "p": {
                          "type": "number",
                          "description": "Force per area, signed along dir (GZ -2.4 = 2.4 kN/m² downward; LZ = along the plate normal)."
                        },
                        "dir": {
                          "enum": [
                            "GX",
                            "GY",
                            "GZ",
                            "LX",
                            "LY",
                            "LZ"
                          ],
                          "default": "GZ"
                        },
                        "projected": {
                          "type": "boolean",
                          "default": false
                        },
                        "loadGroup": {
                          "type": "string",
                          "description": "Optional load group name; created if missing."
                        }
                      },
                      "required": [
                        "on",
                        "case",
                        "p"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "springs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "object",
                          "description": "Which nodes. Start set: group (structure group name), nodes, elements — given together they intersect; none = the whole model. Then filters (coordinates in the input length unit): line { from, to } (on that segment), box { min, max }, where { x: 0 } or { z: [0, 2] }, type (BEAM, TRUSS, PLATE…), pick xmin|xmax|ymin|ymax|zmin|zmax (the extreme nodes, e.g. the ends of a girder group). An element passes a geometric filter when all its nodes do. tol default 0.001.",
                          "properties": {
                            "group": {
                              "type": "string"
                            },
                            "nodes": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "elements": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "line": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "from",
                                "to"
                              ],
                              "additionalProperties": false
                            },
                            "box": {
                              "type": "object",
                              "properties": {
                                "min": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "max": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "min",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            "where": {
                              "type": "object",
                              "properties": {
                                "x": {},
                                "y": {},
                                "z": {}
                              },
                              "additionalProperties": false
                            },
                            "type": {
                              "type": "string"
                            },
                            "pick": {
                              "enum": [
                                "xmin",
                                "xmax",
                                "ymin",
                                "ymax",
                                "zmin",
                                "zmax"
                              ]
                            },
                            "tol": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "k": {
                          "type": "array",
                          "items": {
                            "type": "number",
                            "minimum": 0
                          },
                          "minItems": 1,
                          "maxItems": 6,
                          "description": "[kx, ky, kz, krx, kry, krz]: force/length, then force×length/rad (default kN/m, kN·m/rad)."
                        },
                        "boundaryGroup": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "at",
                        "k"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Linear point springs (bearings, piles): one per node, replacing a spring already there."
                  },
                  "releases": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "on": {
                          "type": "object",
                          "description": "Which elements. Start set: group (structure group name), nodes, elements — given together they intersect; none = the whole model. Then filters (coordinates in the input length unit): line { from, to } (on that segment), box { min, max }, where { x: 0 } or { z: [0, 2] }, type (BEAM, TRUSS, PLATE…). An element passes a geometric filter when all its nodes do. tol default 0.001.",
                          "properties": {
                            "group": {
                              "type": "string"
                            },
                            "nodes": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "elements": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "line": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "from",
                                "to"
                              ],
                              "additionalProperties": false
                            },
                            "box": {
                              "type": "object",
                              "properties": {
                                "min": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "max": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "min",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            "where": {
                              "type": "object",
                              "properties": {
                                "x": {},
                                "y": {},
                                "z": {}
                              },
                              "additionalProperties": false
                            },
                            "type": {
                              "type": "string"
                            },
                            "tol": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "ends": {
                          "enum": [
                            "i",
                            "j",
                            "both"
                          ],
                          "default": "both"
                        },
                        "free": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ],
                          "description": "Released components: \"My Mz\" for a pin; any of Fx Fy Fz Mx My Mz Mb (local axes)."
                        },
                        "boundaryGroup": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "on",
                        "free"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Beam end releases (pins in cross-beams, hinges): replaces a release already on the element."
                  },
                  "selfWeight": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "case": {
                          "type": "string",
                          "description": "Static load case name (≤ 40 characters); created if missing (type from cases[], default USER)."
                        },
                        "factors": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 3,
                          "maxItems": 3,
                          "default": [
                            0,
                            0,
                            -1
                          ],
                          "description": "Gravity factors [x, y, z]; [0, 0, -1] = self-weight downward."
                        },
                        "loadGroup": {
                          "type": "string",
                          "description": "Optional load group name; created if missing."
                        }
                      },
                      "required": [
                        "case"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Self-weight of the whole model in a load case (from the materials' density)."
                  },
                  "temperature": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "on": {
                          "type": "object",
                          "description": "Which elements. Start set: group (structure group name), nodes, elements — given together they intersect; none = the whole model. Then filters (coordinates in the input length unit): line { from, to } (on that segment), box { min, max }, where { x: 0 } or { z: [0, 2] }, type (BEAM, TRUSS, PLATE…). An element passes a geometric filter when all its nodes do. tol default 0.001.",
                          "properties": {
                            "group": {
                              "type": "string"
                            },
                            "nodes": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "elements": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "line": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "from",
                                "to"
                              ],
                              "additionalProperties": false
                            },
                            "box": {
                              "type": "object",
                              "properties": {
                                "min": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "max": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "min",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            "where": {
                              "type": "object",
                              "properties": {
                                "x": {},
                                "y": {},
                                "z": {}
                              },
                              "additionalProperties": false
                            },
                            "type": {
                              "type": "string"
                            },
                            "tol": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "case": {
                          "type": "string",
                          "description": "Static load case name (≤ 40 characters); created if missing (type from cases[], default USER)."
                        },
                        "uniform": {
                          "type": "number",
                          "description": "Uniform temperature change, °C (+ = warmer)."
                        },
                        "gradientZ": {
                          "type": "number",
                          "description": "Difference across the section depth, °C (+ = top warmer); beams only."
                        },
                        "gradientY": {
                          "type": "number",
                          "description": "Difference across the section width, °C (+ = +y side warmer); beams only."
                        },
                        "loadGroup": {
                          "type": "string",
                          "description": "Optional load group name; created if missing."
                        }
                      },
                      "required": [
                        "on",
                        "case"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Element temperatures in °C, converted if the model works in °F. For EN 1991-1-5 / CS 454 bridge temperatures computed for you, use bridge_thermal_apply."
                  },
                  "cases": {
                    "type": "array",
                    "description": "Optional types for load cases this call creates: [{ name, type: D | DC | DW | L | W | T | USER … }].",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "units": {
                    "type": "object",
                    "properties": {
                      "force": {
                        "enum": [
                          "KN",
                          "N",
                          "KGF",
                          "TONF",
                          "LBF",
                          "KIPS"
                        ],
                        "default": "KN"
                      },
                      "length": {
                        "enum": [
                          "M",
                          "CM",
                          "MM",
                          "FT",
                          "IN"
                        ],
                        "default": "M"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Units of the values AND of the selection coordinates. Default kN and m."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write to CIVIL NX. Only after the user approved the preview."
                  },
                  "confirmPlanHash": {
                    "type": "string",
                    "description": "planHash from the approved preview; refused if the model or the inputs changed."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/civil_combinations_quick": {
      "post": {
        "operationId": "civil_combinations_quick",
        "summary": "Load combinations from factors",
        "description": "Use for a few hand-picked combinations. Writes general load combinations from plain factors, e.g. { name: \"ULS1\", factors: { \"SW\": 1.35, \"SDL\": 1.35, \"LM1\": 1.5 } } — for hand-picked combinations; for the full code set use ec_combinations_apply / cs454_combinations_apply. Each name is looked up: sta",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "combinations": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 20
                        },
                        "type": {
                          "enum": [
                            "add",
                            "envelope",
                            "abs",
                            "srss"
                          ],
                          "default": "add"
                        },
                        "factors": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": {
                                "type": "number"
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "case": {
                                    "type": "string"
                                  },
                                  "factor": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "case",
                                  "factor"
                                ],
                                "additionalProperties": false
                              }
                            }
                          ],
                          "description": "{ \"<case or combination>\": factor } in order; envelope / srss members usually take 1."
                        },
                        "desc": {
                          "type": "string",
                          "maxLength": 60
                        }
                      },
                      "required": [
                        "name",
                        "factors"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "replaceExisting": {
                    "type": "boolean",
                    "default": false,
                    "description": "Overwrite combinations that already have these names. Only with the user's agreement."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "required": [
                  "combinations"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/civil_remove_loads": {
      "post": {
        "operationId": "civil_remove_loads",
        "summary": "Remove loads, supports or load cases",
        "description": "Use to take out loads, supports or load cases you name. To reverse a plugin run use that plugin's undo; for wind or thermal cases use ec_wind_remove or bridge_thermal_remove. Takes loads out of the model without touching other load cases: CIVIL NX keeps every case's beam loads, nodal loads, pressure",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "loads": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "case": {
                          "type": "string"
                        },
                        "on": {
                          "type": "object",
                          "description": "Which elements. Start set: group (structure group name), nodes, elements — given together they intersect; none = the whole model. Then filters (coordinates in the input length unit): line { from, to } (on that segment), box { min, max }, where { x: 0 } or { z: [0, 2] }, type (BEAM, TRUSS, PLATE…). An element passes a geometric filter when all its nodes do. tol default 0.001.",
                          "properties": {
                            "group": {
                              "type": "string"
                            },
                            "nodes": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "elements": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "line": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "from",
                                "to"
                              ],
                              "additionalProperties": false
                            },
                            "box": {
                              "type": "object",
                              "properties": {
                                "min": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "max": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "min",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            "where": {
                              "type": "object",
                              "properties": {
                                "x": {},
                                "y": {},
                                "z": {}
                              },
                              "additionalProperties": false
                            },
                            "type": {
                              "type": "string"
                            },
                            "tol": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "at": {
                          "type": "object",
                          "description": "Which nodes. Start set: group (structure group name), nodes, elements — given together they intersect; none = the whole model. Then filters (coordinates in the input length unit): line { from, to } (on that segment), box { min, max }, where { x: 0 } or { z: [0, 2] }, type (BEAM, TRUSS, PLATE…), pick xmin|xmax|ymin|ymax|zmin|zmax (the extreme nodes, e.g. the ends of a girder group). An element passes a geometric filter when all its nodes do. tol default 0.001.",
                          "properties": {
                            "group": {
                              "type": "string"
                            },
                            "nodes": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "elements": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": [
                                      "integer",
                                      "string"
                                    ]
                                  }
                                }
                              ],
                              "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                            },
                            "line": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "from",
                                "to"
                              ],
                              "additionalProperties": false
                            },
                            "box": {
                              "type": "object",
                              "properties": {
                                "min": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "max": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                }
                              },
                              "required": [
                                "min",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            "where": {
                              "type": "object",
                              "properties": {
                                "x": {},
                                "y": {},
                                "z": {}
                              },
                              "additionalProperties": false
                            },
                            "type": {
                              "type": "string"
                            },
                            "pick": {
                              "enum": [
                                "xmin",
                                "xmax",
                                "ymin",
                                "ymax",
                                "zmin",
                                "zmax"
                              ]
                            },
                            "tol": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "kinds": {
                          "type": "array",
                          "items": {
                            "enum": [
                              "nodal",
                              "udl",
                              "pressure",
                              "temperature",
                              "gradient",
                              "selfWeight"
                            ]
                          }
                        }
                      },
                      "required": [
                        "case"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "deleteCases": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Load cases to delete, with all their loads."
                  },
                  "supports": {
                    "type": "object",
                    "properties": {
                      "at": {
                        "type": "object",
                        "description": "Which nodes. Start set: group (structure group name), nodes, elements — given together they intersect; none = the whole model. Then filters (coordinates in the input length unit): line { from, to } (on that segment), box { min, max }, where { x: 0 } or { z: [0, 2] }, type (BEAM, TRUSS, PLATE…), pick xmin|xmax|ymin|ymax|zmin|zmax (the extreme nodes, e.g. the ends of a girder group). An element passes a geometric filter when all its nodes do. tol default 0.001.",
                        "properties": {
                          "group": {
                            "type": "string"
                          },
                          "nodes": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": [
                                    "integer",
                                    "string"
                                  ]
                                }
                              }
                            ],
                            "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                          },
                          "elements": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": [
                                    "integer",
                                    "string"
                                  ]
                                }
                              }
                            ],
                            "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                          },
                          "line": {
                            "type": "object",
                            "properties": {
                              "from": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              },
                              "to": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              }
                            },
                            "required": [
                              "from",
                              "to"
                            ],
                            "additionalProperties": false
                          },
                          "box": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              },
                              "max": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "additionalProperties": false
                          },
                          "where": {
                            "type": "object",
                            "properties": {
                              "x": {},
                              "y": {},
                              "z": {}
                            },
                            "additionalProperties": false
                          },
                          "type": {
                            "type": "string"
                          },
                          "pick": {
                            "enum": [
                              "xmin",
                              "xmax",
                              "ymin",
                              "ymax",
                              "zmin",
                              "zmax"
                            ]
                          },
                          "tol": {
                            "type": "number",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "at"
                    ],
                    "additionalProperties": false
                  },
                  "springs": {
                    "type": "object",
                    "properties": {
                      "at": {
                        "type": "object",
                        "description": "Which nodes. Start set: group (structure group name), nodes, elements — given together they intersect; none = the whole model. Then filters (coordinates in the input length unit): line { from, to } (on that segment), box { min, max }, where { x: 0 } or { z: [0, 2] }, type (BEAM, TRUSS, PLATE…), pick xmin|xmax|ymin|ymax|zmin|zmax (the extreme nodes, e.g. the ends of a girder group). An element passes a geometric filter when all its nodes do. tol default 0.001.",
                        "properties": {
                          "group": {
                            "type": "string"
                          },
                          "nodes": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": [
                                    "integer",
                                    "string"
                                  ]
                                }
                              }
                            ],
                            "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                          },
                          "elements": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": [
                                    "integer",
                                    "string"
                                  ]
                                }
                              }
                            ],
                            "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                          },
                          "line": {
                            "type": "object",
                            "properties": {
                              "from": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              },
                              "to": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              }
                            },
                            "required": [
                              "from",
                              "to"
                            ],
                            "additionalProperties": false
                          },
                          "box": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              },
                              "max": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "additionalProperties": false
                          },
                          "where": {
                            "type": "object",
                            "properties": {
                              "x": {},
                              "y": {},
                              "z": {}
                            },
                            "additionalProperties": false
                          },
                          "type": {
                            "type": "string"
                          },
                          "pick": {
                            "enum": [
                              "xmin",
                              "xmax",
                              "ymin",
                              "ymax",
                              "zmin",
                              "zmax"
                            ]
                          },
                          "tol": {
                            "type": "number",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "at"
                    ],
                    "additionalProperties": false
                  },
                  "releases": {
                    "type": "object",
                    "properties": {
                      "on": {
                        "type": "object",
                        "description": "Which elements. Start set: group (structure group name), nodes, elements — given together they intersect; none = the whole model. Then filters (coordinates in the input length unit): line { from, to } (on that segment), box { min, max }, where { x: 0 } or { z: [0, 2] }, type (BEAM, TRUSS, PLATE…). An element passes a geometric filter when all its nodes do. tol default 0.001.",
                        "properties": {
                          "group": {
                            "type": "string"
                          },
                          "nodes": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": [
                                    "integer",
                                    "string"
                                  ]
                                }
                              }
                            ],
                            "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                          },
                          "elements": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": [
                                    "integer",
                                    "string"
                                  ]
                                }
                              }
                            ],
                            "description": "Ids or ranges: \"1to50by2, 60\" or [1, 2, \"5to9\"]."
                          },
                          "line": {
                            "type": "object",
                            "properties": {
                              "from": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              },
                              "to": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              }
                            },
                            "required": [
                              "from",
                              "to"
                            ],
                            "additionalProperties": false
                          },
                          "box": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              },
                              "max": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "additionalProperties": false
                          },
                          "where": {
                            "type": "object",
                            "properties": {
                              "x": {},
                              "y": {},
                              "z": {}
                            },
                            "additionalProperties": false
                          },
                          "type": {
                            "type": "string"
                          },
                          "tol": {
                            "type": "number",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "on"
                    ],
                    "additionalProperties": false
                  },
                  "units": {
                    "type": "object",
                    "properties": {
                      "length": {
                        "enum": [
                          "M",
                          "CM",
                          "MM",
                          "FT",
                          "IN"
                        ],
                        "default": "M"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Length unit of selection coordinates."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/slab_capacities_from_bars": {
      "post": {
        "operationId": "slab_capacities_from_bars",
        "summary": "RC slab capacities from bars",
        "description": "Use to turn a slab's bar arrangement into capacities for slab_assess, with no model. For beam sections use ec2_describe_section or cs455_describe_section. Calculation only: needs no model and changes nothing. Turns a slab's bar arrangement into the capacities the RC Slab & Shell Assessment routes ne",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "The bar arrangement (preferred): drives the Denton/Wood-Armer capacities, the Annex LL steel forces and covers, and CS 455.",
                "properties": {
                  "thickness_mm": {
                    "type": "number",
                    "description": "Slab thickness, mm."
                  },
                  "fck": {
                    "type": "number",
                    "description": "Concrete characteristic cylinder strength, MPa."
                  },
                  "fyk": {
                    "type": "number",
                    "description": "Reinforcement yield strength, MPa (default 500)."
                  },
                  "gamma_c": {
                    "type": "number",
                    "description": "Concrete partial factor γc (default 1.5)."
                  },
                  "gamma_s": {
                    "type": "number",
                    "description": "Reinforcement partial factor γs (default 1.15)."
                  },
                  "alpha_cc": {
                    "type": "number",
                    "description": "Long-term coefficient αcc on fck for the flexural capacities (default 0.85, UK NA)."
                  },
                  "top": {
                    "type": "object",
                    "description": "One face: {cover_mm, layers: [{dia, spacing, angle, outer}, ...]} — one layer per bar direction, the outer one marked outer: true.",
                    "properties": {
                      "cover_mm": {
                        "type": "number",
                        "description": "nominal cover to the bar face, mm"
                      },
                      "layers": {
                        "type": "array",
                        "minItems": 1,
                        "items": {
                          "type": "object",
                          "properties": {
                            "dia": {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "description": "bar diameter, mm"
                            },
                            "spacing": {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "description": "mm"
                            },
                            "angle": {
                              "type": "number",
                              "description": "bar direction, degrees from the reinforcement x direction (0 or alphaDeg)"
                            },
                            "outer": {
                              "type": "boolean",
                              "description": "the outer layer of its face"
                            }
                          },
                          "required": [
                            "dia",
                            "spacing"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "layers"
                    ],
                    "additionalProperties": false
                  },
                  "bottom": {
                    "type": "object",
                    "description": "One face: {cover_mm, layers: [{dia, spacing, angle, outer}, ...]} — one layer per bar direction, the outer one marked outer: true.",
                    "properties": {
                      "cover_mm": {
                        "type": "number",
                        "description": "nominal cover to the bar face, mm"
                      },
                      "layers": {
                        "type": "array",
                        "minItems": 1,
                        "items": {
                          "type": "object",
                          "properties": {
                            "dia": {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "description": "bar diameter, mm"
                            },
                            "spacing": {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "description": "mm"
                            },
                            "angle": {
                              "type": "number",
                              "description": "bar direction, degrees from the reinforcement x direction (0 or alphaDeg)"
                            },
                            "outer": {
                              "type": "boolean",
                              "description": "the outer layer of its face"
                            }
                          },
                          "required": [
                            "dia",
                            "spacing"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "layers"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "thickness_mm",
                  "fck"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/slab_survey": {
      "post": {
        "operationId": "slab_survey",
        "summary": "Survey plates and load cases for slab assessment",
        "description": "Use before slab_assess, to list plates, groups and load cases. Read-only. Reads the open model's plates (ELEM/NODE), structure groups, static cases and combinations (all LCOM tables) the way the RC Slab & Shell Assessment plugin does: orientation groups by plate normal (with a suggested in-plane ref",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "group": {
                    "type": "string",
                    "description": "Structure group to assess (default: every plate)."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/slab_assess": {
      "post": {
        "operationId": "slab_assess",
        "summary": "Assess RC slabs/shells from plate forces",
        "description": "Use for RC slabs and shells from plate forces. For beam, column or pier sections use ec2_section_check or cs455_assess. Reads plate forces (PLATEFORCEUL, element local axes) for one orientation group and the given load cases, rotates them to the reinforcement direction and assesses every position wi",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "methods": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "denton",
                        "woodarmer",
                        "sandwich",
                        "annexll",
                        "cs455"
                      ]
                    },
                    "description": "Routes: denton (needs capacities), woodarmer, sandwich (Clark–Nielsen), annexll (EN 1992-2 Annex LL), cs455 (needs bars). Default denton + woodarmer."
                  },
                  "alphaDeg": {
                    "type": "number",
                    "description": "Angle of the second bar direction from the first, degrees (default 90 = orthogonal)."
                  },
                  "bars": {
                    "type": "object",
                    "description": "The bar arrangement (preferred): drives the Denton/Wood-Armer capacities, the Annex LL steel forces and covers, and CS 455.",
                    "properties": {
                      "thickness_mm": {
                        "type": "number",
                        "description": "Slab thickness, mm."
                      },
                      "fck": {
                        "type": "number",
                        "description": "Concrete characteristic cylinder strength, MPa."
                      },
                      "fyk": {
                        "type": "number",
                        "description": "Reinforcement yield strength, MPa (default 500)."
                      },
                      "gamma_c": {
                        "type": "number",
                        "description": "Concrete partial factor γc (default 1.5)."
                      },
                      "gamma_s": {
                        "type": "number",
                        "description": "Reinforcement partial factor γs (default 1.15)."
                      },
                      "alpha_cc": {
                        "type": "number",
                        "description": "Long-term coefficient αcc on fck for the flexural capacities (default 0.85, UK NA)."
                      },
                      "top": {
                        "type": "object",
                        "description": "One face: {cover_mm, layers: [{dia, spacing, angle, outer}, ...]} — one layer per bar direction, the outer one marked outer: true.",
                        "properties": {
                          "cover_mm": {
                            "type": "number",
                            "description": "nominal cover to the bar face, mm"
                          },
                          "layers": {
                            "type": "array",
                            "minItems": 1,
                            "items": {
                              "type": "object",
                              "properties": {
                                "dia": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "description": "bar diameter, mm"
                                },
                                "spacing": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "description": "mm"
                                },
                                "angle": {
                                  "type": "number",
                                  "description": "bar direction, degrees from the reinforcement x direction (0 or alphaDeg)"
                                },
                                "outer": {
                                  "type": "boolean",
                                  "description": "the outer layer of its face"
                                }
                              },
                              "required": [
                                "dia",
                                "spacing"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "layers"
                        ],
                        "additionalProperties": false
                      },
                      "bottom": {
                        "type": "object",
                        "description": "One face: {cover_mm, layers: [{dia, spacing, angle, outer}, ...]} — one layer per bar direction, the outer one marked outer: true.",
                        "properties": {
                          "cover_mm": {
                            "type": "number",
                            "description": "nominal cover to the bar face, mm"
                          },
                          "layers": {
                            "type": "array",
                            "minItems": 1,
                            "items": {
                              "type": "object",
                              "properties": {
                                "dia": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "description": "bar diameter, mm"
                                },
                                "spacing": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "description": "mm"
                                },
                                "angle": {
                                  "type": "number",
                                  "description": "bar direction, degrees from the reinforcement x direction (0 or alphaDeg)"
                                },
                                "outer": {
                                  "type": "boolean",
                                  "description": "the outer layer of its face"
                                }
                              },
                              "required": [
                                "dia",
                                "spacing"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "layers"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "thickness_mm",
                      "fck"
                    ],
                    "additionalProperties": false
                  },
                  "capacities": {
                    "type": "object",
                    "properties": {
                      "top": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "description": "[[angle_deg, moment capacity kNm/m], ...]"
                      },
                      "bottom": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "description": "[[angle_deg, moment capacity kNm/m], ...]"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Moment capacities typed directly, instead of bars."
                  },
                  "sandwich": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "fck": {
                        "type": "number"
                      },
                      "gamma_c": {
                        "type": "number"
                      },
                      "cot_theta": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "shear": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "ndp": {
                            "type": "string"
                          },
                          "anchored": {
                            "type": "boolean"
                          },
                          "d": {
                            "type": "number"
                          },
                          "rho_x": {
                            "type": "number"
                          },
                          "rho_y": {
                            "type": "number"
                          },
                          "rho_l": {
                            "type": "number"
                          },
                          "fywd": {
                            "type": "number"
                          },
                          "asw_per_s": {
                            "type": "number"
                          }
                        }
                      },
                      "layer_thicknesses": {
                        "type": "array",
                        "items": {
                          "type": "number"
                        },
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "thickness": {
                        "type": "number"
                      },
                      "cover_top": {
                        "type": "number"
                      },
                      "cover_bottom": {
                        "type": "number"
                      },
                      "steel": {
                        "type": "array",
                        "items": {
                          "type": "number"
                        },
                        "minItems": 4,
                        "maxItems": 4
                      }
                    },
                    "description": "Sandwich / Annex LL: fck, gamma_c, cot_theta, shear {ndp, anchored, d, rho_x, rho_y, rho_l, fywd, asw_per_s}, layer_thicknesses [ts, ti] m; WITHOUT bars also thickness, cover_top, cover_bottom (m, to the bar centroid) and steel [tx, ta, bx, ba] kN/m."
                  },
                  "cs455": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "fcu": {
                        "type": "number"
                      },
                      "gamma_mc": {
                        "type": "number"
                      },
                      "gamma_ms": {
                        "type": "number"
                      }
                    },
                    "description": "CS 455 material inputs (with bars)."
                  },
                  "group": {
                    "type": "string",
                    "description": "Structure group to assess (default: every plate)."
                  },
                  "orientation": {
                    "type": "integer",
                    "description": "Orientation group index from slab_survey (default 0, the largest)."
                  },
                  "reference": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 3,
                    "maxItems": 3,
                    "description": "Reinforcement x direction as a global vector in the plane of the plates."
                  },
                  "thetaDeg": {
                    "type": "number",
                    "description": "Or: the direction as an angle in the plane from slab_survey's suggestedReference (default 0)."
                  },
                  "cases": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Load cases / combinations by name (slab_survey lists them)."
                  },
                  "averaging": {
                    "type": "boolean",
                    "description": "Average nodal results over the plates meeting at each node (in the reinforcement frame). Off by default: averaging hides peaks."
                  },
                  "centreOnly": {
                    "type": "boolean",
                    "description": "Assess element centres only."
                  },
                  "maxElements": {
                    "type": "integer",
                    "description": "How many of the worst elements to list (default 25)."
                  }
                },
                "required": [
                  "cases"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/slab_explain_location": {
      "post": {
        "operationId": "slab_explain_location",
        "summary": "Explain one slab location's utilisation",
        "description": "Use after slab_assess, to explain one element's utilisation. The working behind one element's utilisation: reads that element's plate forces, picks its governing position and case (or the one given) and re-runs it through the plugin's explain_location — every route, face, utilisation and intermediat",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "methods": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "denton",
                        "woodarmer",
                        "sandwich",
                        "annexll",
                        "cs455"
                      ]
                    },
                    "description": "Routes: denton (needs capacities), woodarmer, sandwich (Clark–Nielsen), annexll (EN 1992-2 Annex LL), cs455 (needs bars). Default denton + woodarmer."
                  },
                  "alphaDeg": {
                    "type": "number",
                    "description": "Angle of the second bar direction from the first, degrees (default 90 = orthogonal)."
                  },
                  "bars": {
                    "type": "object",
                    "description": "The bar arrangement (preferred): drives the Denton/Wood-Armer capacities, the Annex LL steel forces and covers, and CS 455.",
                    "properties": {
                      "thickness_mm": {
                        "type": "number",
                        "description": "Slab thickness, mm."
                      },
                      "fck": {
                        "type": "number",
                        "description": "Concrete characteristic cylinder strength, MPa."
                      },
                      "fyk": {
                        "type": "number",
                        "description": "Reinforcement yield strength, MPa (default 500)."
                      },
                      "gamma_c": {
                        "type": "number",
                        "description": "Concrete partial factor γc (default 1.5)."
                      },
                      "gamma_s": {
                        "type": "number",
                        "description": "Reinforcement partial factor γs (default 1.15)."
                      },
                      "alpha_cc": {
                        "type": "number",
                        "description": "Long-term coefficient αcc on fck for the flexural capacities (default 0.85, UK NA)."
                      },
                      "top": {
                        "type": "object",
                        "description": "One face: {cover_mm, layers: [{dia, spacing, angle, outer}, ...]} — one layer per bar direction, the outer one marked outer: true.",
                        "properties": {
                          "cover_mm": {
                            "type": "number",
                            "description": "nominal cover to the bar face, mm"
                          },
                          "layers": {
                            "type": "array",
                            "minItems": 1,
                            "items": {
                              "type": "object",
                              "properties": {
                                "dia": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "description": "bar diameter, mm"
                                },
                                "spacing": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "description": "mm"
                                },
                                "angle": {
                                  "type": "number",
                                  "description": "bar direction, degrees from the reinforcement x direction (0 or alphaDeg)"
                                },
                                "outer": {
                                  "type": "boolean",
                                  "description": "the outer layer of its face"
                                }
                              },
                              "required": [
                                "dia",
                                "spacing"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "layers"
                        ],
                        "additionalProperties": false
                      },
                      "bottom": {
                        "type": "object",
                        "description": "One face: {cover_mm, layers: [{dia, spacing, angle, outer}, ...]} — one layer per bar direction, the outer one marked outer: true.",
                        "properties": {
                          "cover_mm": {
                            "type": "number",
                            "description": "nominal cover to the bar face, mm"
                          },
                          "layers": {
                            "type": "array",
                            "minItems": 1,
                            "items": {
                              "type": "object",
                              "properties": {
                                "dia": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "description": "bar diameter, mm"
                                },
                                "spacing": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "description": "mm"
                                },
                                "angle": {
                                  "type": "number",
                                  "description": "bar direction, degrees from the reinforcement x direction (0 or alphaDeg)"
                                },
                                "outer": {
                                  "type": "boolean",
                                  "description": "the outer layer of its face"
                                }
                              },
                              "required": [
                                "dia",
                                "spacing"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "layers"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "thickness_mm",
                      "fck"
                    ],
                    "additionalProperties": false
                  },
                  "capacities": {
                    "type": "object",
                    "properties": {
                      "top": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "description": "[[angle_deg, moment capacity kNm/m], ...]"
                      },
                      "bottom": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "description": "[[angle_deg, moment capacity kNm/m], ...]"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Moment capacities typed directly, instead of bars."
                  },
                  "sandwich": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "fck": {
                        "type": "number"
                      },
                      "gamma_c": {
                        "type": "number"
                      },
                      "cot_theta": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "shear": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "ndp": {
                            "type": "string"
                          },
                          "anchored": {
                            "type": "boolean"
                          },
                          "d": {
                            "type": "number"
                          },
                          "rho_x": {
                            "type": "number"
                          },
                          "rho_y": {
                            "type": "number"
                          },
                          "rho_l": {
                            "type": "number"
                          },
                          "fywd": {
                            "type": "number"
                          },
                          "asw_per_s": {
                            "type": "number"
                          }
                        }
                      },
                      "layer_thicknesses": {
                        "type": "array",
                        "items": {
                          "type": "number"
                        },
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "thickness": {
                        "type": "number"
                      },
                      "cover_top": {
                        "type": "number"
                      },
                      "cover_bottom": {
                        "type": "number"
                      },
                      "steel": {
                        "type": "array",
                        "items": {
                          "type": "number"
                        },
                        "minItems": 4,
                        "maxItems": 4
                      }
                    },
                    "description": "Sandwich / Annex LL: fck, gamma_c, cot_theta, shear {ndp, anchored, d, rho_x, rho_y, rho_l, fywd, asw_per_s}, layer_thicknesses [ts, ti] m; WITHOUT bars also thickness, cover_top, cover_bottom (m, to the bar centroid) and steel [tx, ta, bx, ba] kN/m."
                  },
                  "cs455": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "fcu": {
                        "type": "number"
                      },
                      "gamma_mc": {
                        "type": "number"
                      },
                      "gamma_ms": {
                        "type": "number"
                      }
                    },
                    "description": "CS 455 material inputs (with bars)."
                  },
                  "group": {
                    "type": "string",
                    "description": "Structure group to assess (default: every plate)."
                  },
                  "orientation": {
                    "type": "integer",
                    "description": "Orientation group index from slab_survey (default 0, the largest)."
                  },
                  "reference": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 3,
                    "maxItems": 3,
                    "description": "Reinforcement x direction as a global vector in the plane of the plates."
                  },
                  "thetaDeg": {
                    "type": "number",
                    "description": "Or: the direction as an angle in the plane from slab_survey's suggestedReference (default 0)."
                  },
                  "cases": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Load cases / combinations by name (slab_survey lists them)."
                  },
                  "averaging": {
                    "type": "boolean",
                    "description": "Average nodal results over the plates meeting at each node (in the reinforcement frame). Off by default: averaging hides peaks."
                  },
                  "centreOnly": {
                    "type": "boolean",
                    "description": "Assess element centres only."
                  },
                  "maxElements": {
                    "type": "integer",
                    "description": "Accepted (slab_assess arguments can be reused) and ignored."
                  },
                  "element": {
                    "type": "integer"
                  },
                  "case": {
                    "type": "string",
                    "description": "Only this case (default: the element's governing one among cases)."
                  },
                  "position": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "description": "Node number or 'Cent' (default: governing)."
                  }
                },
                "required": [
                  "cases",
                  "element"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/result_table_catalog": {
      "post": {
        "operationId": "result_table_catalog",
        "summary": "Result and model tables the exporter knows",
        "description": "Use to find a result table's id before preview_result_table or export_result_tables. For model-input tables use civil_read_table. Lists the CIVIL NX tables the Bulk Tabular Result Exporter plugin can export, with each one's id, MIDAS TABLE_TYPE or /db endpoint, components and the arguments it takes:",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "type": "string",
                    "enum": [
                      "pre",
                      "post"
                    ],
                    "description": "pre = model data and pre-process tables; post = analysis results."
                  },
                  "search": {
                    "type": "string",
                    "description": "Words in the id, name, category, TABLE_TYPE or DB key, e.g. 'beam', 'reaction', 'tendon'."
                  },
                  "id": {
                    "type": "string",
                    "description": "One table id, with its full description."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/preview_result_table": {
      "post": {
        "operationId": "preview_result_table",
        "summary": "Preview one result or model table",
        "description": "Use to look at analysis results (or a model table) row by row. For construction-stage results use cs_stage_results; for input rows use civil_read_table; for Excel use export_result_tables. Reads one table from the open CIVIL NX model the way the exporter's 'Preview this table' does and returns its f",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "table": {
                    "type": "string",
                    "description": "Table id from result_table_catalog (e.g. reaction-global, beam-force, displacement-global, plate-force-unit-local, db-node). A MIDAS TABLE_TYPE (BEAMFORCE) or DB key (NODE) is accepted too."
                  },
                  "components": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Columns, as listed for the table (e.g. Axial, Moment-y). Omit for the plugin's defaults; for 'all columns' tables omit for every column."
                  },
                  "loadCases": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "e.g. [\"DL(ST)\", \"ULS(CB)\", \"ENV(CB:max)\", \"LM1(MV:max)\"]. Omit for every case."
                  },
                  "entities": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "all",
                          "ids",
                          "range",
                          "group"
                        ],
                        "default": "all"
                      },
                      "value": {
                        "type": "string",
                        "description": "ids: \"1-40, 52\"; range: \"1 to 250\"; group: the structure group name."
                      }
                    },
                    "additionalProperties": false
                  },
                  "parts": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "PartI",
                        "Part1/4",
                        "Part2/4",
                        "Part3/4",
                        "PartJ"
                      ]
                    },
                    "description": "Beam tables: stations along each element (default PartI, PartJ)."
                  },
                  "sectionPositions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Beam stress detail: e.g. [\"Maximum\"] or stress point numbers."
                  },
                  "displacementOption": {
                    "type": "string",
                    "enum": [
                      "Accumulative",
                      "Current",
                      "Real"
                    ],
                    "description": "Displacement tables in construction stages."
                  },
                  "constructionStage": {
                    "type": "boolean",
                    "description": "Results of the construction stage analysis (adds Stage and Step columns)."
                  },
                  "stageSteps": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "With constructionStage: e.g. [\"CS1:001(first)\", \"CS3:002(last)\"]. Omit for every saved step."
                  },
                  "averageNodal": {
                    "type": "boolean"
                  },
                  "nodeCenter": {
                    "type": "boolean",
                    "description": "Plate tables: include the element centre."
                  },
                  "nodeCorners": {
                    "type": "boolean",
                    "description": "Plate tables: include the corner nodes (default true)."
                  },
                  "units": {
                    "type": "object",
                    "properties": {
                      "force": {
                        "type": "string",
                        "enum": [
                          "N",
                          "kN",
                          "kgf",
                          "tonf",
                          "lbf",
                          "kip"
                        ]
                      },
                      "distance": {
                        "type": "string",
                        "enum": [
                          "mm",
                          "cm",
                          "m",
                          "in",
                          "ft"
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Units MIDAS converts the results to (default kN, m)."
                  },
                  "numberFormat": {
                    "type": "string",
                    "enum": [
                      "Default",
                      "Fixed",
                      "Scientific",
                      "General"
                    ],
                    "description": "Default Scientific."
                  },
                  "decimals": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 15,
                    "description": "Default 6."
                  },
                  "tableType": {
                    "type": "string",
                    "description": "For result-any: the MIDAS TABLE_TYPE."
                  },
                  "extraArgument": {
                    "type": "object",
                    "description": "For 'all columns' tables: more POST /post/TABLE Argument keys (e.g. LOAD_CASE_NAMES, NODE_ELEMS, OPT_CS)."
                  },
                  "argument": {
                    "type": "object",
                    "description": "For custom-table: the full POST /post/TABLE Argument object."
                  },
                  "userTableName": {
                    "type": "string",
                    "description": "For user-defined-table-*: the saved Dynamic Report Table name."
                  },
                  "dbKey": {
                    "type": "string",
                    "description": "For db-custom: any /db/ key (e.g. MVHL, TDNA)."
                  },
                  "records": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "all",
                          "ids",
                          "range"
                        ]
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Model tables: which record ids (filtered after the read)."
                  },
                  "columns": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Model tables: exact column names to keep (preview first to see them)."
                  },
                  "title": {
                    "type": "string"
                  },
                  "sheetName": {
                    "type": "string",
                    "description": "Excel sheet name (≤ 31 characters)."
                  },
                  "rows": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 200,
                    "default": 20
                  }
                },
                "required": [
                  "table"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/export_result_tables": {
      "post": {
        "operationId": "export_result_tables",
        "summary": "Export result and model tables to Excel",
        "description": "Use to export full result tables to Excel. To look at the first rows use preview_result_table. Exports one or more CIVIL NX tables (each like the preview_result_table arguments, full scope, no sampling) into one Excel workbook built by the exporter plugin: one sheet per table (and per sub-table; spl",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tables": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 40,
                    "items": {
                      "type": "object",
                      "properties": {
                        "table": {
                          "type": "string",
                          "description": "Table id from result_table_catalog (e.g. reaction-global, beam-force, displacement-global, plate-force-unit-local, db-node). A MIDAS TABLE_TYPE (BEAMFORCE) or DB key (NODE) is accepted too."
                        },
                        "components": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Columns, as listed for the table (e.g. Axial, Moment-y). Omit for the plugin's defaults; for 'all columns' tables omit for every column."
                        },
                        "loadCases": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "e.g. [\"DL(ST)\", \"ULS(CB)\", \"ENV(CB:max)\", \"LM1(MV:max)\"]. Omit for every case."
                        },
                        "entities": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "all",
                                "ids",
                                "range",
                                "group"
                              ],
                              "default": "all"
                            },
                            "value": {
                              "type": "string",
                              "description": "ids: \"1-40, 52\"; range: \"1 to 250\"; group: the structure group name."
                            }
                          },
                          "additionalProperties": false
                        },
                        "parts": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "PartI",
                              "Part1/4",
                              "Part2/4",
                              "Part3/4",
                              "PartJ"
                            ]
                          },
                          "description": "Beam tables: stations along each element (default PartI, PartJ)."
                        },
                        "sectionPositions": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Beam stress detail: e.g. [\"Maximum\"] or stress point numbers."
                        },
                        "displacementOption": {
                          "type": "string",
                          "enum": [
                            "Accumulative",
                            "Current",
                            "Real"
                          ],
                          "description": "Displacement tables in construction stages."
                        },
                        "constructionStage": {
                          "type": "boolean",
                          "description": "Results of the construction stage analysis (adds Stage and Step columns)."
                        },
                        "stageSteps": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "With constructionStage: e.g. [\"CS1:001(first)\", \"CS3:002(last)\"]. Omit for every saved step."
                        },
                        "averageNodal": {
                          "type": "boolean"
                        },
                        "nodeCenter": {
                          "type": "boolean",
                          "description": "Plate tables: include the element centre."
                        },
                        "nodeCorners": {
                          "type": "boolean",
                          "description": "Plate tables: include the corner nodes (default true)."
                        },
                        "units": {
                          "type": "object",
                          "properties": {
                            "force": {
                              "type": "string",
                              "enum": [
                                "N",
                                "kN",
                                "kgf",
                                "tonf",
                                "lbf",
                                "kip"
                              ]
                            },
                            "distance": {
                              "type": "string",
                              "enum": [
                                "mm",
                                "cm",
                                "m",
                                "in",
                                "ft"
                              ]
                            }
                          },
                          "additionalProperties": false,
                          "description": "Units MIDAS converts the results to (default kN, m)."
                        },
                        "numberFormat": {
                          "type": "string",
                          "enum": [
                            "Default",
                            "Fixed",
                            "Scientific",
                            "General"
                          ],
                          "description": "Default Scientific."
                        },
                        "decimals": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 15,
                          "description": "Default 6."
                        },
                        "tableType": {
                          "type": "string",
                          "description": "For result-any: the MIDAS TABLE_TYPE."
                        },
                        "extraArgument": {
                          "type": "object",
                          "description": "For 'all columns' tables: more POST /post/TABLE Argument keys (e.g. LOAD_CASE_NAMES, NODE_ELEMS, OPT_CS)."
                        },
                        "argument": {
                          "type": "object",
                          "description": "For custom-table: the full POST /post/TABLE Argument object."
                        },
                        "userTableName": {
                          "type": "string",
                          "description": "For user-defined-table-*: the saved Dynamic Report Table name."
                        },
                        "dbKey": {
                          "type": "string",
                          "description": "For db-custom: any /db/ key (e.g. MVHL, TDNA)."
                        },
                        "records": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "all",
                                "ids",
                                "range"
                              ]
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false,
                          "description": "Model tables: which record ids (filtered after the read)."
                        },
                        "columns": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Model tables: exact column names to keep (preview first to see them)."
                        },
                        "title": {
                          "type": "string"
                        },
                        "sheetName": {
                          "type": "string",
                          "description": "Excel sheet name (≤ 31 characters)."
                        }
                      },
                      "required": [
                        "table"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "xlsx",
                      "csv"
                    ],
                    "default": "xlsx"
                  },
                  "workbookName": {
                    "type": "string",
                    "description": "File name without extension (default MIDAS_CIVIL_NX_Tables)."
                  },
                  "includeContents": {
                    "type": "boolean",
                    "default": true,
                    "description": "Add the 'Contents & Export Log' sheet first."
                  }
                },
                "required": [
                  "tables"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/section_preview": {
      "post": {
        "operationId": "section_preview",
        "summary": "Section Designer — check and draw a section",
        "description": "Step 1 for a new section from a sketch or outline. For a section already in the model use section_read; for a code check use ec2_describe_section or cs455_describe_section. Checks a cross-section's outlines with Section Designer's own rules (closed, not self-crossing, holes inside their outline, no ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "section": {
                    "type": "object",
                    "description": "The section, read off the sketch. Axes: y across (positive right), z up, as seen in CIVIL's section dialog; put the origin anywhere convenient (e.g. bottom-left corner or soffit centre) — CIVIL's frame is applied on write.",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 28
                      },
                      "units": {
                        "enum": [
                          "mm",
                          "cm",
                          "m"
                        ],
                        "default": "mm",
                        "description": "Units of every coordinate, radius and template dimension."
                      },
                      "type": {
                        "enum": [
                          "general",
                          "psc"
                        ],
                        "default": "general",
                        "description": "One part: general = VALUE/GEN; psc = PSC/VALU (for prestressed concrete with PSC design). Two or more parts always write COMPOSITE-GEN."
                      },
                      "parts": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 6,
                        "description": "One part per material, in CONSTRUCTION ORDER (part 1 = first in place, e.g. the steel or precast girder; then the deck slab). Each composite stage i = parts 1…i.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "material": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "description": "A grade: concrete \"C40/50\" (EN 1992 Ecm formula, ν 0.2) or steel \"S355\" (210 GPa, ν 0.3); or a Section Designer library id — \"EN:C30/37\" (EN 1992-1-1 Table 3.1 Ecm), \"EN:S355\", \"EN:B500\", UK assessment (CS 454 family) \"UK:C40\" (cube fcu, BS 5400-4 Table 3 Ec, as CS 455), \"UK:S355\" (BS 5400-3, 205 GPa), \"UK:B500\"."
                                },
                                {
                                  "type": "object",
                                  "description": "A library grade, optionally long term (concrete at half its short-term E).",
                                  "properties": {
                                    "grade": {
                                      "type": "string",
                                      "description": "Library id, e.g. \"UK:C40\", \"EN:C35/45\", \"EN:S355\"."
                                    },
                                    "longTerm": {
                                      "type": "boolean",
                                      "default": false
                                    }
                                  },
                                  "required": [
                                    "grade"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "E": {
                                      "type": "number"
                                    },
                                    "unit": {
                                      "enum": [
                                        "MPa",
                                        "GPa",
                                        "kN/m2"
                                      ],
                                      "default": "MPa"
                                    },
                                    "nu": {
                                      "type": "number",
                                      "default": 0.2
                                    }
                                  },
                                  "required": [
                                    "E"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "reference": {
                              "type": "boolean",
                              "description": "Composite only: the material every other part is transformed to (one part; default part 1)."
                            },
                            "densityRatio": {
                              "type": "number",
                              "minimum": 0,
                              "description": "CIVIL DENS_RATIO: this part's weight relative to part 1's material. Left out on a composite whose parts have grades, it is their unit-weight ratio (25 kN/m³ concrete, 77 kN/m³ steel); otherwise 1."
                            },
                            "regions": {
                              "type": "array",
                              "description": "Closed areas of this material. Regions of one part that touch are merged (Union).",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "outer": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "array",
                                              "items": {
                                                "type": "number"
                                              },
                                              "minItems": 2,
                                              "maxItems": 2
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "y": {
                                                  "type": "number"
                                                },
                                                "z": {
                                                  "type": "number"
                                                },
                                                "bulge": {
                                                  "type": "number",
                                                  "description": "The edge from this vertex to the next is an arc: tan(sweep/4), positive = anticlockwise (DXF convention). 1 = semicircle."
                                                },
                                                "fillet": {
                                                  "type": "number",
                                                  "minimum": 0,
                                                  "description": "Round this corner with this radius."
                                                }
                                              },
                                              "required": [
                                                "y",
                                                "z"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ]
                                        },
                                        "minItems": 3,
                                        "description": "Vertices in order round the outline (either direction); closed automatically."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "circle": {
                                            "type": "object",
                                            "properties": {
                                              "centre": {
                                                "type": "array",
                                                "items": {
                                                  "type": "number"
                                                },
                                                "minItems": 2,
                                                "maxItems": 2
                                              },
                                              "radius": {
                                                "type": "number"
                                              },
                                              "diameter": {
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "centre"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "required": [
                                          "circle"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  },
                                  "holes": {
                                    "type": "array",
                                    "items": {
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "type": "number"
                                                },
                                                "minItems": 2,
                                                "maxItems": 2
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "y": {
                                                    "type": "number"
                                                  },
                                                  "z": {
                                                    "type": "number"
                                                  },
                                                  "bulge": {
                                                    "type": "number",
                                                    "description": "The edge from this vertex to the next is an arc: tan(sweep/4), positive = anticlockwise (DXF convention). 1 = semicircle."
                                                  },
                                                  "fillet": {
                                                    "type": "number",
                                                    "minimum": 0,
                                                    "description": "Round this corner with this radius."
                                                  }
                                                },
                                                "required": [
                                                  "y",
                                                  "z"
                                                ],
                                                "additionalProperties": false
                                              }
                                            ]
                                          },
                                          "minItems": 3,
                                          "description": "Vertices in order round the outline (either direction); closed automatically."
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "circle": {
                                              "type": "object",
                                              "properties": {
                                                "centre": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "number"
                                                  },
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                },
                                                "radius": {
                                                  "type": "number"
                                                },
                                                "diameter": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "centre"
                                              ],
                                              "additionalProperties": false
                                            }
                                          },
                                          "required": [
                                            "circle"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ]
                                    },
                                    "description": "Voids inside this outer outline (box cells, ducts)."
                                  }
                                },
                                "required": [
                                  "outer"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "template": {
                              "type": "object",
                              "description": "A Section Designer template instead of regions; lengths in the section's units. Soffit on z = 0 and centreline on y = 0, moved by at. i_girder: H depth, tw web, Bt/tft top flange width/thickness, Bb/tfb bottom flange, htw/hth top haunch width (beyond the web face)/height, hbw/hbh bottom haunch. box_girder: cells 1–3, B deck width, Bw outer width across the webs at the top (under the cantilever roots), Bs soffit width, H depth, ts top slab, tb bottom slab, tw web thickness (horizontal), tc/tr cantilever thickness at tip/root, htw/hth and hbw/hbh cell haunches (top and bottom corners). Haunches default to 0. uk_precast: a standard UK/Irish prestressed beam by id (beam: Y, YE, SY, SYE, TY, TYE, MY, MYE, M, UMB, T, TB, SD, U, SU, W families, e.g. \"TY6\", \"Y4\", \"M3\", \"U8\") as drawn in a manufacturer's manual (maker: banagher | fpm | shay3 | shay | pca, where shay3 is Shay Murtagh's Edition 3 manual and shay its Edition 2; default the first that lists it).",
                              "properties": {
                                "kind": {
                                  "enum": [
                                    "i_girder",
                                    "box_girder",
                                    "uk_precast"
                                  ]
                                },
                                "beam": {
                                  "type": "string",
                                  "description": "uk_precast: beam id, e.g. \"TY6\"."
                                },
                                "maker": {
                                  "enum": [
                                    "banagher",
                                    "fpm",
                                    "shay3",
                                    "shay",
                                    "pca"
                                  ],
                                  "description": "uk_precast: Banagher Precast, FP McCann, Shay Murtagh Edition 3 (shay3) or Edition 2 (shay), or the 1984 PCA standard."
                                },
                                "at": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 2,
                                  "maxItems": 2,
                                  "description": "Where the template's soffit centre goes, [y, z]."
                                },
                                "cells": {
                                  "enum": [
                                    1,
                                    2,
                                    3
                                  ]
                                },
                                "H": {
                                  "type": "number"
                                },
                                "tw": {
                                  "type": "number"
                                },
                                "Bt": {
                                  "type": "number"
                                },
                                "tft": {
                                  "type": "number"
                                },
                                "Bb": {
                                  "type": "number"
                                },
                                "tfb": {
                                  "type": "number"
                                },
                                "B": {
                                  "type": "number"
                                },
                                "Bw": {
                                  "type": "number"
                                },
                                "Bs": {
                                  "type": "number"
                                },
                                "ts": {
                                  "type": "number"
                                },
                                "tb": {
                                  "type": "number"
                                },
                                "tc": {
                                  "type": "number"
                                },
                                "tr": {
                                  "type": "number"
                                },
                                "htw": {
                                  "type": "number"
                                },
                                "hth": {
                                  "type": "number"
                                },
                                "hbw": {
                                  "type": "number"
                                },
                                "hbh": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "infill": {
                        "type": "object",
                        "description": "Beam-and-infill deck (Section Designer's Infill, INF): part 1 is ONE precast beam outline (e.g. template uk_precast TY6); the in-situ concrete round it within its share of the deck, up to the beam top plus topping, becomes part 2, cast after the beam. Side by side (spacing left out) the infill starts on the flanges; wider spacing also fills the gaps between beams down to the soffit. A U beam's own void is never filled. Any further parts (e.g. a deck slab) follow it.",
                        "properties": {
                          "spacing": {
                            "type": "number",
                            "minimum": 0,
                            "description": "Beam centres, in the section's units; at least the beam's width. Left out = side by side."
                          },
                          "topping": {
                            "type": "number",
                            "minimum": 0,
                            "default": 0,
                            "description": "Concrete above the beam top, in the section's units."
                          },
                          "material": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A grade: concrete \"C40/50\" (EN 1992 Ecm formula, ν 0.2) or steel \"S355\" (210 GPa, ν 0.3); or a Section Designer library id — \"EN:C30/37\" (EN 1992-1-1 Table 3.1 Ecm), \"EN:S355\", \"EN:B500\", UK assessment (CS 454 family) \"UK:C40\" (cube fcu, BS 5400-4 Table 3 Ec, as CS 455), \"UK:S355\" (BS 5400-3, 205 GPa), \"UK:B500\"."
                              },
                              {
                                "type": "object",
                                "description": "A library grade, optionally long term (concrete at half its short-term E).",
                                "properties": {
                                  "grade": {
                                    "type": "string",
                                    "description": "Library id, e.g. \"UK:C40\", \"EN:C35/45\", \"EN:S355\"."
                                  },
                                  "longTerm": {
                                    "type": "boolean",
                                    "default": false
                                  }
                                },
                                "required": [
                                  "grade"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "E": {
                                    "type": "number"
                                  },
                                  "unit": {
                                    "enum": [
                                      "MPa",
                                      "GPa",
                                      "kN/m2"
                                    ],
                                    "default": "MPa"
                                  },
                                  "nu": {
                                    "type": "number",
                                    "default": 0.2
                                  }
                                },
                                "required": [
                                  "E"
                                ],
                                "additionalProperties": false
                              }
                            ],
                            "description": "Default: EN:C30/37 for a Eurocode library beam grade, UK:C40 for a UK one, else the beam's material."
                          },
                          "name": {
                            "type": "string",
                            "default": "In-situ infill"
                          }
                        },
                        "additionalProperties": false
                      },
                      "offset": {
                        "enum": [
                          "LT",
                          "CT",
                          "RT",
                          "LC",
                          "CC",
                          "RC",
                          "LB",
                          "CB",
                          "RB"
                        ],
                        "default": "CC",
                        "description": "CIVIL offset point (CC = centroid)."
                      },
                      "offsetFrom": {
                        "enum": [
                          "centroid",
                          "extents"
                        ],
                        "default": "centroid"
                      },
                      "shearDeformation": {
                        "type": "boolean",
                        "default": true
                      },
                      "warpingEffect": {
                        "type": "boolean",
                        "default": false,
                        "description": "CIVIL's 'Consider warping effect': also computes and writes the warping constant IW, the shear centre (YS_YC, ZS_ZC = centroid − shear centre), IP and the warping function / torsion shear coefficients at the stress points (W, CXY, CXZ). Single-material sections only; use it for thin-walled open steel sections."
                      },
                      "merge": {
                        "type": "boolean",
                        "default": true,
                        "description": "Merge touching/overlapping regions of the same part."
                      }
                    },
                    "required": [
                      "parts"
                    ],
                    "additionalProperties": false
                  },
                  "svg": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also store the drawing as an SVG file and return its link."
                  }
                },
                "required": [
                  "section"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/section_properties": {
      "post": {
        "operationId": "section_properties",
        "summary": "Section Designer — section properties",
        "description": "Use for a new section's computed properties before writing it. For an existing section's stored properties use section_read. Computes the full CIVIL NX property set of a section with Section Designer's solver: exact area, centroid, second moments, extreme fibres and perimeters from the outlines, and",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "section": {
                    "type": "object",
                    "description": "The section, read off the sketch. Axes: y across (positive right), z up, as seen in CIVIL's section dialog; put the origin anywhere convenient (e.g. bottom-left corner or soffit centre) — CIVIL's frame is applied on write.",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 28
                      },
                      "units": {
                        "enum": [
                          "mm",
                          "cm",
                          "m"
                        ],
                        "default": "mm",
                        "description": "Units of every coordinate, radius and template dimension."
                      },
                      "type": {
                        "enum": [
                          "general",
                          "psc"
                        ],
                        "default": "general",
                        "description": "One part: general = VALUE/GEN; psc = PSC/VALU (for prestressed concrete with PSC design). Two or more parts always write COMPOSITE-GEN."
                      },
                      "parts": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 6,
                        "description": "One part per material, in CONSTRUCTION ORDER (part 1 = first in place, e.g. the steel or precast girder; then the deck slab). Each composite stage i = parts 1…i.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "material": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "description": "A grade: concrete \"C40/50\" (EN 1992 Ecm formula, ν 0.2) or steel \"S355\" (210 GPa, ν 0.3); or a Section Designer library id — \"EN:C30/37\" (EN 1992-1-1 Table 3.1 Ecm), \"EN:S355\", \"EN:B500\", UK assessment (CS 454 family) \"UK:C40\" (cube fcu, BS 5400-4 Table 3 Ec, as CS 455), \"UK:S355\" (BS 5400-3, 205 GPa), \"UK:B500\"."
                                },
                                {
                                  "type": "object",
                                  "description": "A library grade, optionally long term (concrete at half its short-term E).",
                                  "properties": {
                                    "grade": {
                                      "type": "string",
                                      "description": "Library id, e.g. \"UK:C40\", \"EN:C35/45\", \"EN:S355\"."
                                    },
                                    "longTerm": {
                                      "type": "boolean",
                                      "default": false
                                    }
                                  },
                                  "required": [
                                    "grade"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "E": {
                                      "type": "number"
                                    },
                                    "unit": {
                                      "enum": [
                                        "MPa",
                                        "GPa",
                                        "kN/m2"
                                      ],
                                      "default": "MPa"
                                    },
                                    "nu": {
                                      "type": "number",
                                      "default": 0.2
                                    }
                                  },
                                  "required": [
                                    "E"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "reference": {
                              "type": "boolean",
                              "description": "Composite only: the material every other part is transformed to (one part; default part 1)."
                            },
                            "densityRatio": {
                              "type": "number",
                              "minimum": 0,
                              "description": "CIVIL DENS_RATIO: this part's weight relative to part 1's material. Left out on a composite whose parts have grades, it is their unit-weight ratio (25 kN/m³ concrete, 77 kN/m³ steel); otherwise 1."
                            },
                            "regions": {
                              "type": "array",
                              "description": "Closed areas of this material. Regions of one part that touch are merged (Union).",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "outer": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "array",
                                              "items": {
                                                "type": "number"
                                              },
                                              "minItems": 2,
                                              "maxItems": 2
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "y": {
                                                  "type": "number"
                                                },
                                                "z": {
                                                  "type": "number"
                                                },
                                                "bulge": {
                                                  "type": "number",
                                                  "description": "The edge from this vertex to the next is an arc: tan(sweep/4), positive = anticlockwise (DXF convention). 1 = semicircle."
                                                },
                                                "fillet": {
                                                  "type": "number",
                                                  "minimum": 0,
                                                  "description": "Round this corner with this radius."
                                                }
                                              },
                                              "required": [
                                                "y",
                                                "z"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ]
                                        },
                                        "minItems": 3,
                                        "description": "Vertices in order round the outline (either direction); closed automatically."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "circle": {
                                            "type": "object",
                                            "properties": {
                                              "centre": {
                                                "type": "array",
                                                "items": {
                                                  "type": "number"
                                                },
                                                "minItems": 2,
                                                "maxItems": 2
                                              },
                                              "radius": {
                                                "type": "number"
                                              },
                                              "diameter": {
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "centre"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "required": [
                                          "circle"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  },
                                  "holes": {
                                    "type": "array",
                                    "items": {
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "type": "number"
                                                },
                                                "minItems": 2,
                                                "maxItems": 2
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "y": {
                                                    "type": "number"
                                                  },
                                                  "z": {
                                                    "type": "number"
                                                  },
                                                  "bulge": {
                                                    "type": "number",
                                                    "description": "The edge from this vertex to the next is an arc: tan(sweep/4), positive = anticlockwise (DXF convention). 1 = semicircle."
                                                  },
                                                  "fillet": {
                                                    "type": "number",
                                                    "minimum": 0,
                                                    "description": "Round this corner with this radius."
                                                  }
                                                },
                                                "required": [
                                                  "y",
                                                  "z"
                                                ],
                                                "additionalProperties": false
                                              }
                                            ]
                                          },
                                          "minItems": 3,
                                          "description": "Vertices in order round the outline (either direction); closed automatically."
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "circle": {
                                              "type": "object",
                                              "properties": {
                                                "centre": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "number"
                                                  },
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                },
                                                "radius": {
                                                  "type": "number"
                                                },
                                                "diameter": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "centre"
                                              ],
                                              "additionalProperties": false
                                            }
                                          },
                                          "required": [
                                            "circle"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ]
                                    },
                                    "description": "Voids inside this outer outline (box cells, ducts)."
                                  }
                                },
                                "required": [
                                  "outer"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "template": {
                              "type": "object",
                              "description": "A Section Designer template instead of regions; lengths in the section's units. Soffit on z = 0 and centreline on y = 0, moved by at. i_girder: H depth, tw web, Bt/tft top flange width/thickness, Bb/tfb bottom flange, htw/hth top haunch width (beyond the web face)/height, hbw/hbh bottom haunch. box_girder: cells 1–3, B deck width, Bw outer width across the webs at the top (under the cantilever roots), Bs soffit width, H depth, ts top slab, tb bottom slab, tw web thickness (horizontal), tc/tr cantilever thickness at tip/root, htw/hth and hbw/hbh cell haunches (top and bottom corners). Haunches default to 0. uk_precast: a standard UK/Irish prestressed beam by id (beam: Y, YE, SY, SYE, TY, TYE, MY, MYE, M, UMB, T, TB, SD, U, SU, W families, e.g. \"TY6\", \"Y4\", \"M3\", \"U8\") as drawn in a manufacturer's manual (maker: banagher | fpm | shay3 | shay | pca, where shay3 is Shay Murtagh's Edition 3 manual and shay its Edition 2; default the first that lists it).",
                              "properties": {
                                "kind": {
                                  "enum": [
                                    "i_girder",
                                    "box_girder",
                                    "uk_precast"
                                  ]
                                },
                                "beam": {
                                  "type": "string",
                                  "description": "uk_precast: beam id, e.g. \"TY6\"."
                                },
                                "maker": {
                                  "enum": [
                                    "banagher",
                                    "fpm",
                                    "shay3",
                                    "shay",
                                    "pca"
                                  ],
                                  "description": "uk_precast: Banagher Precast, FP McCann, Shay Murtagh Edition 3 (shay3) or Edition 2 (shay), or the 1984 PCA standard."
                                },
                                "at": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 2,
                                  "maxItems": 2,
                                  "description": "Where the template's soffit centre goes, [y, z]."
                                },
                                "cells": {
                                  "enum": [
                                    1,
                                    2,
                                    3
                                  ]
                                },
                                "H": {
                                  "type": "number"
                                },
                                "tw": {
                                  "type": "number"
                                },
                                "Bt": {
                                  "type": "number"
                                },
                                "tft": {
                                  "type": "number"
                                },
                                "Bb": {
                                  "type": "number"
                                },
                                "tfb": {
                                  "type": "number"
                                },
                                "B": {
                                  "type": "number"
                                },
                                "Bw": {
                                  "type": "number"
                                },
                                "Bs": {
                                  "type": "number"
                                },
                                "ts": {
                                  "type": "number"
                                },
                                "tb": {
                                  "type": "number"
                                },
                                "tc": {
                                  "type": "number"
                                },
                                "tr": {
                                  "type": "number"
                                },
                                "htw": {
                                  "type": "number"
                                },
                                "hth": {
                                  "type": "number"
                                },
                                "hbw": {
                                  "type": "number"
                                },
                                "hbh": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "infill": {
                        "type": "object",
                        "description": "Beam-and-infill deck (Section Designer's Infill, INF): part 1 is ONE precast beam outline (e.g. template uk_precast TY6); the in-situ concrete round it within its share of the deck, up to the beam top plus topping, becomes part 2, cast after the beam. Side by side (spacing left out) the infill starts on the flanges; wider spacing also fills the gaps between beams down to the soffit. A U beam's own void is never filled. Any further parts (e.g. a deck slab) follow it.",
                        "properties": {
                          "spacing": {
                            "type": "number",
                            "minimum": 0,
                            "description": "Beam centres, in the section's units; at least the beam's width. Left out = side by side."
                          },
                          "topping": {
                            "type": "number",
                            "minimum": 0,
                            "default": 0,
                            "description": "Concrete above the beam top, in the section's units."
                          },
                          "material": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A grade: concrete \"C40/50\" (EN 1992 Ecm formula, ν 0.2) or steel \"S355\" (210 GPa, ν 0.3); or a Section Designer library id — \"EN:C30/37\" (EN 1992-1-1 Table 3.1 Ecm), \"EN:S355\", \"EN:B500\", UK assessment (CS 454 family) \"UK:C40\" (cube fcu, BS 5400-4 Table 3 Ec, as CS 455), \"UK:S355\" (BS 5400-3, 205 GPa), \"UK:B500\"."
                              },
                              {
                                "type": "object",
                                "description": "A library grade, optionally long term (concrete at half its short-term E).",
                                "properties": {
                                  "grade": {
                                    "type": "string",
                                    "description": "Library id, e.g. \"UK:C40\", \"EN:C35/45\", \"EN:S355\"."
                                  },
                                  "longTerm": {
                                    "type": "boolean",
                                    "default": false
                                  }
                                },
                                "required": [
                                  "grade"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "E": {
                                    "type": "number"
                                  },
                                  "unit": {
                                    "enum": [
                                      "MPa",
                                      "GPa",
                                      "kN/m2"
                                    ],
                                    "default": "MPa"
                                  },
                                  "nu": {
                                    "type": "number",
                                    "default": 0.2
                                  }
                                },
                                "required": [
                                  "E"
                                ],
                                "additionalProperties": false
                              }
                            ],
                            "description": "Default: EN:C30/37 for a Eurocode library beam grade, UK:C40 for a UK one, else the beam's material."
                          },
                          "name": {
                            "type": "string",
                            "default": "In-situ infill"
                          }
                        },
                        "additionalProperties": false
                      },
                      "offset": {
                        "enum": [
                          "LT",
                          "CT",
                          "RT",
                          "LC",
                          "CC",
                          "RC",
                          "LB",
                          "CB",
                          "RB"
                        ],
                        "default": "CC",
                        "description": "CIVIL offset point (CC = centroid)."
                      },
                      "offsetFrom": {
                        "enum": [
                          "centroid",
                          "extents"
                        ],
                        "default": "centroid"
                      },
                      "shearDeformation": {
                        "type": "boolean",
                        "default": true
                      },
                      "warpingEffect": {
                        "type": "boolean",
                        "default": false,
                        "description": "CIVIL's 'Consider warping effect': also computes and writes the warping constant IW, the shear centre (YS_YC, ZS_ZC = centroid − shear centre), IP and the warping function / torsion shear coefficients at the stress points (W, CXY, CXZ). Single-material sections only; use it for thin-walled open steel sections."
                      },
                      "merge": {
                        "type": "boolean",
                        "default": true,
                        "description": "Merge touching/overlapping regions of the same part."
                      }
                    },
                    "required": [
                      "parts"
                    ],
                    "additionalProperties": false
                  },
                  "drawing": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also return the drawing (with the computed centroid C, its y/z axes and the shear centre SC)."
                  }
                },
                "required": [
                  "section"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/section_write": {
      "post": {
        "operationId": "section_write",
        "summary": "Section Designer — write a section to CIVIL NX",
        "description": "Use to write a designed section into the model, after section_preview. Writes a section into the open CIVIL NX model exactly as Section Designer's Write button does: VALUE/GEN, PSC/VALU or COMPOSITE-GEN with its computed properties (CIVIL keeps them as sent), in the model's units read at the time of",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "section": {
                    "type": "object",
                    "description": "The section, read off the sketch. Axes: y across (positive right), z up, as seen in CIVIL's section dialog; put the origin anywhere convenient (e.g. bottom-left corner or soffit centre) — CIVIL's frame is applied on write.",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 28
                      },
                      "units": {
                        "enum": [
                          "mm",
                          "cm",
                          "m"
                        ],
                        "default": "mm",
                        "description": "Units of every coordinate, radius and template dimension."
                      },
                      "type": {
                        "enum": [
                          "general",
                          "psc"
                        ],
                        "default": "general",
                        "description": "One part: general = VALUE/GEN; psc = PSC/VALU (for prestressed concrete with PSC design). Two or more parts always write COMPOSITE-GEN."
                      },
                      "parts": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 6,
                        "description": "One part per material, in CONSTRUCTION ORDER (part 1 = first in place, e.g. the steel or precast girder; then the deck slab). Each composite stage i = parts 1…i.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "material": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "description": "A grade: concrete \"C40/50\" (EN 1992 Ecm formula, ν 0.2) or steel \"S355\" (210 GPa, ν 0.3); or a Section Designer library id — \"EN:C30/37\" (EN 1992-1-1 Table 3.1 Ecm), \"EN:S355\", \"EN:B500\", UK assessment (CS 454 family) \"UK:C40\" (cube fcu, BS 5400-4 Table 3 Ec, as CS 455), \"UK:S355\" (BS 5400-3, 205 GPa), \"UK:B500\"."
                                },
                                {
                                  "type": "object",
                                  "description": "A library grade, optionally long term (concrete at half its short-term E).",
                                  "properties": {
                                    "grade": {
                                      "type": "string",
                                      "description": "Library id, e.g. \"UK:C40\", \"EN:C35/45\", \"EN:S355\"."
                                    },
                                    "longTerm": {
                                      "type": "boolean",
                                      "default": false
                                    }
                                  },
                                  "required": [
                                    "grade"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "E": {
                                      "type": "number"
                                    },
                                    "unit": {
                                      "enum": [
                                        "MPa",
                                        "GPa",
                                        "kN/m2"
                                      ],
                                      "default": "MPa"
                                    },
                                    "nu": {
                                      "type": "number",
                                      "default": 0.2
                                    }
                                  },
                                  "required": [
                                    "E"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "reference": {
                              "type": "boolean",
                              "description": "Composite only: the material every other part is transformed to (one part; default part 1)."
                            },
                            "densityRatio": {
                              "type": "number",
                              "minimum": 0,
                              "description": "CIVIL DENS_RATIO: this part's weight relative to part 1's material. Left out on a composite whose parts have grades, it is their unit-weight ratio (25 kN/m³ concrete, 77 kN/m³ steel); otherwise 1."
                            },
                            "regions": {
                              "type": "array",
                              "description": "Closed areas of this material. Regions of one part that touch are merged (Union).",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "outer": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "array",
                                              "items": {
                                                "type": "number"
                                              },
                                              "minItems": 2,
                                              "maxItems": 2
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "y": {
                                                  "type": "number"
                                                },
                                                "z": {
                                                  "type": "number"
                                                },
                                                "bulge": {
                                                  "type": "number",
                                                  "description": "The edge from this vertex to the next is an arc: tan(sweep/4), positive = anticlockwise (DXF convention). 1 = semicircle."
                                                },
                                                "fillet": {
                                                  "type": "number",
                                                  "minimum": 0,
                                                  "description": "Round this corner with this radius."
                                                }
                                              },
                                              "required": [
                                                "y",
                                                "z"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ]
                                        },
                                        "minItems": 3,
                                        "description": "Vertices in order round the outline (either direction); closed automatically."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "circle": {
                                            "type": "object",
                                            "properties": {
                                              "centre": {
                                                "type": "array",
                                                "items": {
                                                  "type": "number"
                                                },
                                                "minItems": 2,
                                                "maxItems": 2
                                              },
                                              "radius": {
                                                "type": "number"
                                              },
                                              "diameter": {
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "centre"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "required": [
                                          "circle"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  },
                                  "holes": {
                                    "type": "array",
                                    "items": {
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "type": "number"
                                                },
                                                "minItems": 2,
                                                "maxItems": 2
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "y": {
                                                    "type": "number"
                                                  },
                                                  "z": {
                                                    "type": "number"
                                                  },
                                                  "bulge": {
                                                    "type": "number",
                                                    "description": "The edge from this vertex to the next is an arc: tan(sweep/4), positive = anticlockwise (DXF convention). 1 = semicircle."
                                                  },
                                                  "fillet": {
                                                    "type": "number",
                                                    "minimum": 0,
                                                    "description": "Round this corner with this radius."
                                                  }
                                                },
                                                "required": [
                                                  "y",
                                                  "z"
                                                ],
                                                "additionalProperties": false
                                              }
                                            ]
                                          },
                                          "minItems": 3,
                                          "description": "Vertices in order round the outline (either direction); closed automatically."
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "circle": {
                                              "type": "object",
                                              "properties": {
                                                "centre": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "number"
                                                  },
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                },
                                                "radius": {
                                                  "type": "number"
                                                },
                                                "diameter": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "centre"
                                              ],
                                              "additionalProperties": false
                                            }
                                          },
                                          "required": [
                                            "circle"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ]
                                    },
                                    "description": "Voids inside this outer outline (box cells, ducts)."
                                  }
                                },
                                "required": [
                                  "outer"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "template": {
                              "type": "object",
                              "description": "A Section Designer template instead of regions; lengths in the section's units. Soffit on z = 0 and centreline on y = 0, moved by at. i_girder: H depth, tw web, Bt/tft top flange width/thickness, Bb/tfb bottom flange, htw/hth top haunch width (beyond the web face)/height, hbw/hbh bottom haunch. box_girder: cells 1–3, B deck width, Bw outer width across the webs at the top (under the cantilever roots), Bs soffit width, H depth, ts top slab, tb bottom slab, tw web thickness (horizontal), tc/tr cantilever thickness at tip/root, htw/hth and hbw/hbh cell haunches (top and bottom corners). Haunches default to 0. uk_precast: a standard UK/Irish prestressed beam by id (beam: Y, YE, SY, SYE, TY, TYE, MY, MYE, M, UMB, T, TB, SD, U, SU, W families, e.g. \"TY6\", \"Y4\", \"M3\", \"U8\") as drawn in a manufacturer's manual (maker: banagher | fpm | shay3 | shay | pca, where shay3 is Shay Murtagh's Edition 3 manual and shay its Edition 2; default the first that lists it).",
                              "properties": {
                                "kind": {
                                  "enum": [
                                    "i_girder",
                                    "box_girder",
                                    "uk_precast"
                                  ]
                                },
                                "beam": {
                                  "type": "string",
                                  "description": "uk_precast: beam id, e.g. \"TY6\"."
                                },
                                "maker": {
                                  "enum": [
                                    "banagher",
                                    "fpm",
                                    "shay3",
                                    "shay",
                                    "pca"
                                  ],
                                  "description": "uk_precast: Banagher Precast, FP McCann, Shay Murtagh Edition 3 (shay3) or Edition 2 (shay), or the 1984 PCA standard."
                                },
                                "at": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 2,
                                  "maxItems": 2,
                                  "description": "Where the template's soffit centre goes, [y, z]."
                                },
                                "cells": {
                                  "enum": [
                                    1,
                                    2,
                                    3
                                  ]
                                },
                                "H": {
                                  "type": "number"
                                },
                                "tw": {
                                  "type": "number"
                                },
                                "Bt": {
                                  "type": "number"
                                },
                                "tft": {
                                  "type": "number"
                                },
                                "Bb": {
                                  "type": "number"
                                },
                                "tfb": {
                                  "type": "number"
                                },
                                "B": {
                                  "type": "number"
                                },
                                "Bw": {
                                  "type": "number"
                                },
                                "Bs": {
                                  "type": "number"
                                },
                                "ts": {
                                  "type": "number"
                                },
                                "tb": {
                                  "type": "number"
                                },
                                "tc": {
                                  "type": "number"
                                },
                                "tr": {
                                  "type": "number"
                                },
                                "htw": {
                                  "type": "number"
                                },
                                "hth": {
                                  "type": "number"
                                },
                                "hbw": {
                                  "type": "number"
                                },
                                "hbh": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "infill": {
                        "type": "object",
                        "description": "Beam-and-infill deck (Section Designer's Infill, INF): part 1 is ONE precast beam outline (e.g. template uk_precast TY6); the in-situ concrete round it within its share of the deck, up to the beam top plus topping, becomes part 2, cast after the beam. Side by side (spacing left out) the infill starts on the flanges; wider spacing also fills the gaps between beams down to the soffit. A U beam's own void is never filled. Any further parts (e.g. a deck slab) follow it.",
                        "properties": {
                          "spacing": {
                            "type": "number",
                            "minimum": 0,
                            "description": "Beam centres, in the section's units; at least the beam's width. Left out = side by side."
                          },
                          "topping": {
                            "type": "number",
                            "minimum": 0,
                            "default": 0,
                            "description": "Concrete above the beam top, in the section's units."
                          },
                          "material": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A grade: concrete \"C40/50\" (EN 1992 Ecm formula, ν 0.2) or steel \"S355\" (210 GPa, ν 0.3); or a Section Designer library id — \"EN:C30/37\" (EN 1992-1-1 Table 3.1 Ecm), \"EN:S355\", \"EN:B500\", UK assessment (CS 454 family) \"UK:C40\" (cube fcu, BS 5400-4 Table 3 Ec, as CS 455), \"UK:S355\" (BS 5400-3, 205 GPa), \"UK:B500\"."
                              },
                              {
                                "type": "object",
                                "description": "A library grade, optionally long term (concrete at half its short-term E).",
                                "properties": {
                                  "grade": {
                                    "type": "string",
                                    "description": "Library id, e.g. \"UK:C40\", \"EN:C35/45\", \"EN:S355\"."
                                  },
                                  "longTerm": {
                                    "type": "boolean",
                                    "default": false
                                  }
                                },
                                "required": [
                                  "grade"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "E": {
                                    "type": "number"
                                  },
                                  "unit": {
                                    "enum": [
                                      "MPa",
                                      "GPa",
                                      "kN/m2"
                                    ],
                                    "default": "MPa"
                                  },
                                  "nu": {
                                    "type": "number",
                                    "default": 0.2
                                  }
                                },
                                "required": [
                                  "E"
                                ],
                                "additionalProperties": false
                              }
                            ],
                            "description": "Default: EN:C30/37 for a Eurocode library beam grade, UK:C40 for a UK one, else the beam's material."
                          },
                          "name": {
                            "type": "string",
                            "default": "In-situ infill"
                          }
                        },
                        "additionalProperties": false
                      },
                      "offset": {
                        "enum": [
                          "LT",
                          "CT",
                          "RT",
                          "LC",
                          "CC",
                          "RC",
                          "LB",
                          "CB",
                          "RB"
                        ],
                        "default": "CC",
                        "description": "CIVIL offset point (CC = centroid)."
                      },
                      "offsetFrom": {
                        "enum": [
                          "centroid",
                          "extents"
                        ],
                        "default": "centroid"
                      },
                      "shearDeformation": {
                        "type": "boolean",
                        "default": true
                      },
                      "warpingEffect": {
                        "type": "boolean",
                        "default": false,
                        "description": "CIVIL's 'Consider warping effect': also computes and writes the warping constant IW, the shear centre (YS_YC, ZS_ZC = centroid − shear centre), IP and the warping function / torsion shear coefficients at the stress points (W, CXY, CXZ). Single-material sections only; use it for thin-walled open steel sections."
                      },
                      "merge": {
                        "type": "boolean",
                        "default": true,
                        "description": "Merge touching/overlapping regions of the same part."
                      }
                    },
                    "required": [
                      "parts"
                    ],
                    "additionalProperties": false
                  },
                  "id": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Section id; default = next free id in the model."
                  },
                  "replaceExisting": {
                    "type": "boolean",
                    "default": false,
                    "description": "DESTRUCTIVE: overwrite the section already at id (elements using it change stiffness). Only with the user's agreement."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write to CIVIL NX. Only after the user approved the preview."
                  },
                  "confirmPlanHash": {
                    "type": "string",
                    "description": "planHash from the approved preview; the write is refused if the plan differs."
                  }
                },
                "required": [
                  "section"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/section_read": {
      "post": {
        "operationId": "section_read",
        "summary": "Section Designer — read sections from the model",
        "description": "Use to list the model's sections, or get one's outline to edit. For a code check use ec2_describe_section or cs455_describe_section; for Beam to Plate use b2p_survey. Without id: lists the model's sections (id, name, type, whether Section Designer stores it as outlines) and the next free id. With id",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "units": {
                    "enum": [
                      "mm",
                      "cm",
                      "m"
                    ],
                    "default": "mm"
                  },
                  "at": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1,
                    "description": "Tapered sections only: station along the length, 0 = I end (default), 1 = J end."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/stage_groups": {
      "post": {
        "operationId": "stage_groups",
        "summary": "Construction Stage Wizard — structure groups",
        "description": "Use to make structure groups by position (slices, segments) for staging. For groups by section or material use auto_structure_groups. Creates structure groups with the Construction Stage Wizard plugin's group builder: pick a scope of elements, split it by rules (slice along X/Y/Z into n segments or ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "type": "object",
                    "description": "{kind:'all'} | {kind:'groups', groups:[names]} | {kind:'ids', text:'1-80'} | {kind:'selection', elements:[ids]}",
                    "additionalProperties": true
                  },
                  "typeFilter": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Element types to keep (BEAM, TRUSS, PLATE, SOLID…); empty = all."
                  },
                  "rules": {
                    "type": "array",
                    "description": "Applied together (every combination becomes a group): {kind:'slice', axis:'X'|'Y'|'Z', mode:'count'|'cuts', count, cuts:[coords]}, {kind:'section'}, {kind:'material'}, {kind:'type'}, {kind:'thickness'}, {kind:'idRange', ranges:[{label, text}]}, {kind:'existingGroup', groups:[names]}.",
                    "items": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "naming": {
                    "type": "object",
                    "description": "template with tokens {INDEX}, {SLICE}, {SECTION}, {MATERIAL}, {TYPE}…; prefix, suffix, pad, start.",
                    "additionalProperties": true
                  },
                  "includeNodes": {
                    "type": "boolean",
                    "default": true
                  },
                  "policy": {
                    "enum": [
                      "skip",
                      "overwrite",
                      "merge",
                      "rename"
                    ],
                    "default": "skip",
                    "description": "What to do when a group name already exists."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write to CIVIL NX. Only after the user approved the preview."
                  },
                  "confirmPlanHash": {
                    "type": "string",
                    "description": "planHash from the approved preview; the write is refused if the plan differs."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/construction_stages": {
      "post": {
        "operationId": "construction_stages",
        "summary": "Construction Stage Wizard — stage sequence",
        "description": "Use to create a construction stage sequence. To read the stages already defined use cs_stage_summary. Builds a construction stage sequence with the Construction Stage Wizard plugin's bulk generator and writes it with its stage planner (which keeps composite sections and construction-stage load combi",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groups": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Structure groups in construction order."
                  },
                  "groupPrefix": {
                    "type": "string",
                    "description": "Instead of groups: every structure group whose name starts with this, in natural order (Seg_2 before Seg_10)."
                  },
                  "groupsPerStage": {
                    "type": "integer",
                    "minimum": 1,
                    "default": 1
                  },
                  "durations": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "description": "Days per stage; several values repeat as a pattern (e.g. [7, 7, 14]). Default [7]."
                  },
                  "age": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Material age at activation, days; null follows the stage duration."
                  },
                  "boundaryGroups": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Boundary groups activated in the first new stage (deformed position)."
                  },
                  "loadGroups": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Load groups activated in the first new stage (e.g. self weight)."
                  },
                  "temporary": {
                    "type": "object",
                    "description": "{family:'load'|'boundary', groups:[one per stage]}: on in its stage, off in the next.",
                    "additionalProperties": true
                  },
                  "finalStage": {
                    "type": "object",
                    "description": "{name, duration, steps}: a closing stage, e.g. long-term with time steps.",
                    "additionalProperties": true
                  },
                  "naming": {
                    "type": "object",
                    "description": "{template:'CS{INDEX}', start, pad}. In append mode start defaults to after the last existing stage.",
                    "additionalProperties": true
                  },
                  "saveResult": {
                    "type": "boolean",
                    "default": true
                  },
                  "mode": {
                    "enum": [
                      "append",
                      "replace"
                    ],
                    "default": "append"
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write to CIVIL NX. Only after the user approved the preview."
                  },
                  "confirmPlanHash": {
                    "type": "string",
                    "description": "planHash from the approved preview; the write is refused if the plan differs."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/stress_element_loads": {
      "post": {
        "operationId": "stress_element_loads",
        "summary": "Results available for beam elements (Stress Profile Generator)",
        "description": "Use before stress_profile, to see what results each beam element has. Read-only. Reads what the Stress Profile Generator can show for chosen beam elements: each element's section (type, outline verified, composite parts, tapered), material, length, the load cases / combinations / envelopes CIVIL NX ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elementIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Beam element numbers."
                  },
                  "elements": {
                    "type": "string",
                    "description": "Element list as the plugin takes it, e.g. \"1-20, 35, 40 to 44\"."
                  },
                  "group": {
                    "type": "string",
                    "description": "A structure group; its beam elements are used."
                  },
                  "stage": {
                    "type": "string",
                    "description": "A construction stage: also list its results for each element."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/stress_profile": {
      "post": {
        "operationId": "stress_profile",
        "summary": "Stress distribution through a beam section (Stress Profile Generator)",
        "description": "Use for the stress distribution through ONE beam section. For SLS limits over many elements use sls_stress_check; for capacity checks use ec2_section_check or cs455_assess. The Stress Profile Generator's profile for ONE beam element: from CIVIL NX's beam forces and the true section outline it calcul",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elementId": {
                    "type": "integer",
                    "description": "The beam element."
                  },
                  "loads": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Load case / combination / envelope names as stress_element_loads lists them; with stage, that stage's results (e.g. Summation, Dead Load)."
                  },
                  "positions": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "I",
                        "1/4",
                        "2/4",
                        "3/4",
                        "J"
                      ]
                    },
                    "description": "Positions along the element: I-end, ¼, ½, ¾ span, J-end. Default [\"2/4\"]."
                  },
                  "stage": {
                    "type": "string",
                    "description": "Construction stage: use its results (last step) instead of the final state."
                  },
                  "result": {
                    "enum": [
                      "sx",
                      "sxN",
                      "sxMy",
                      "sxMz",
                      "tVz",
                      "tVy",
                      "vm",
                      "s1",
                      "s2",
                      "tmax",
                      "tresca"
                    ],
                    "default": "sx",
                    "description": "sx σx combined; sxN/sxMy/sxMz its parts; tVz/tVy shear; vm von Mises; s1/s2 principal; tmax; tresca."
                  },
                  "sectionProperties": {
                    "enum": [
                      "effective",
                      "gross"
                    ],
                    "default": "effective",
                    "description": "effective = CIVIL NX's own stresses (as the plugin's default); gross = the plugin's calculation on the section as modelled, difference stated."
                  },
                  "unit": {
                    "enum": [
                      "MPa",
                      "kN/m2",
                      "kgf/cm2",
                      "ksi",
                      "psi"
                    ],
                    "default": "MPa",
                    "description": "Stress unit of the results (internally kN/m²)."
                  },
                  "depthLevels": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 40,
                    "default": 10,
                    "description": "Levels of the through-depth table (vertex levels are added); 0 leaves it out."
                  },
                  "thermal": {
                    "type": "object",
                    "description": "Temperature stresses instead of load results (EN 1991-1-5 §6.1.4).",
                    "properties": {
                      "preset": {
                        "enum": [
                          "heating",
                          "cooling",
                          "user",
                          "civil"
                        ],
                        "default": "heating",
                        "description": "Type 3 heating / cooling (Table B.3, 100 mm surfacing — check the National Annex), user points, or CIVIL NX's own section/element temperature of thermal.load."
                      },
                      "points": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "description": "preset user: [depth below the top m, ΔT °C] pairs, linear between, zero outside."
                      },
                      "restraint": {
                        "enum": [
                          "free",
                          "full",
                          "axial",
                          "rot",
                          "civil"
                        ],
                        "default": "free",
                        "description": "free (statically determinate), full, axial only, rotation only, or CIVIL NX's beam forces of thermal.load."
                      },
                      "load": {
                        "type": "string",
                        "description": "CIVIL NX static load case / combination for preset civil or restraint civil."
                      },
                      "components": {
                        "type": "array",
                        "items": {
                          "enum": [
                            "tTot",
                            "tRes",
                            "teig",
                            "tUni",
                            "tLin"
                          ]
                        },
                        "description": "Default all: tTot total, tRes restraint, teig self-equilibrating, tUni uniform (fully restrained), tLin linear (fully restrained)."
                      },
                      "E": {
                        "type": "number",
                        "description": "E of the element's material, kN/m², if the model's is not to be used."
                      },
                      "alphas": {
                        "type": "array",
                        "items": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "description": "α per section part, 1/°C (null = from the model). Composite-General parts have none in the model and need it."
                      }
                    },
                    "additionalProperties": false
                  },
                  "csv": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also return the plugin's CSV export of every profile (a download link)."
                  }
                },
                "required": [
                  "elementId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/sls_stress_check": {
      "post": {
        "operationId": "sls_stress_check",
        "summary": "SLS stress limitation check (Stress Profile Generator)",
        "description": "Use for SLS stress limits over many elements (EN 1992-2, EN 1993-2). For one element's profile use stress_profile; for ULS capacity use ec2_section_check. The Stress Profile Generator's SLS report check (EN 1992-2 §7.2 concrete, EN 1993-2 §7.3 structural steel; normal stress σx at the fibres) over m",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elementIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Beam element numbers."
                  },
                  "elements": {
                    "type": "string",
                    "description": "Element list as the plugin takes it, e.g. \"1-20, 35, 40 to 44\"."
                  },
                  "group": {
                    "type": "string",
                    "description": "A structure group; its beam elements are used."
                  },
                  "source": {
                    "enum": [
                      "combinations",
                      "stages"
                    ],
                    "default": "combinations"
                  },
                  "combinations": {
                    "type": "array",
                    "description": "source combinations: the combinations to check, each a name or {name, category}.",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "category": {
                              "enum": [
                                "characteristic",
                                "frequent",
                                "quasi-permanent",
                                "none"
                              ]
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "stages": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "const": "all"
                      }
                    ],
                    "description": "source stages: stage names, or \"all\" (default)."
                  },
                  "positions": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "I",
                        "1/4",
                        "2/4",
                        "3/4",
                        "J"
                      ]
                    },
                    "description": "Positions along the element: I-end, ¼, ½, ¾ span, J-end. Default all five."
                  },
                  "limits": {
                    "type": "object",
                    "description": "Combination checks. Nothing optional is on unless set here. Stresses in MPa.",
                    "properties": {
                      "fck": {
                        "type": "number",
                        "description": "Concrete fck (used where the model holds none, or everywhere with fckForEveryConcrete)."
                      },
                      "fckForEveryConcrete": {
                        "type": "boolean",
                        "default": false
                      },
                      "fctm": {
                        "type": "number",
                        "description": "fctm; default from fck (EN 1992-1-1 Table 3.1)."
                      },
                      "fy": {
                        "type": "number",
                        "description": "Structural steel fy; default from the grade name (e.g. S355)."
                      },
                      "k1": {
                        "type": "number",
                        "default": 0.6
                      },
                      "k2": {
                        "type": "number",
                        "default": 0.45
                      },
                      "gammaMser": {
                        "type": "number",
                        "default": 1
                      },
                      "compressionCharacteristic": {
                        "enum": [
                          "none",
                          "xd",
                          "project"
                        ],
                        "default": "none",
                        "description": "σc ≤ k1·fck in characteristic combinations: XD/XF/XS exposure (EN 1992-2 §7.2(102)) or a project requirement."
                      },
                      "compressionQuasiPermanent": {
                        "enum": [
                          "k2",
                          "none"
                        ],
                        "default": "k2",
                        "description": "σc ≤ k2·fck in quasi-permanent combinations (linear creep) — the plugin's default."
                      },
                      "tension": {
                        "type": "object",
                        "description": "Concrete tension rule per category: none (default) | fctm | zero (decompression) | user.",
                        "properties": {
                          "characteristic": {
                            "enum": [
                              "none",
                              "fctm",
                              "zero",
                              "user"
                            ]
                          },
                          "frequent": {
                            "enum": [
                              "none",
                              "fctm",
                              "zero",
                              "user"
                            ]
                          },
                          "quasiPermanent": {
                            "enum": [
                              "none",
                              "fctm",
                              "zero",
                              "user"
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      "tensionUserLimit": {
                        "type": "object",
                        "description": "MPa, for rule user.",
                        "properties": {
                          "characteristic": {
                            "type": "number"
                          },
                          "frequent": {
                            "type": "number"
                          },
                          "quasiPermanent": {
                            "type": "number"
                          }
                        },
                        "additionalProperties": false
                      },
                      "steel": {
                        "enum": [
                          "normal",
                          "full"
                        ],
                        "default": "normal",
                        "description": "Characteristic steel check: |σx| ≤ fy/γM,ser, or full (+ τ and von Mises, elementary shear, no torsion)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "stageLimits": {
                    "type": "object",
                    "description": "source stages. The plugin's defaults: compression on (kc 0.6), tension none, steel full, tendons checked.",
                    "properties": {
                      "compression": {
                        "enum": [
                          "on",
                          "none"
                        ]
                      },
                      "kc": {
                        "type": "number"
                      },
                      "cement": {
                        "enum": [
                          "R",
                          "N",
                          "S"
                        ],
                        "default": "N"
                      },
                      "ageAt": {
                        "enum": [
                          "start",
                          "end"
                        ],
                        "default": "start"
                      },
                      "tension": {
                        "enum": [
                          "none",
                          "fctm",
                          "zero",
                          "user"
                        ]
                      },
                      "tensionUserLimit": {
                        "type": "number"
                      },
                      "creepFlagFactor": {
                        "type": "number",
                        "default": 0.45
                      },
                      "testedFckEarly": {
                        "type": "number",
                        "description": "Tested fck for ages ≤ 3 d (EN 1992-1-1 §3.1.2(5)); without it those states are not evaluated."
                      },
                      "gammaM0": {
                        "type": "number",
                        "default": 1
                      },
                      "steel": {
                        "enum": [
                          "full",
                          "normal"
                        ]
                      },
                      "tendons": {
                        "type": "boolean"
                      },
                      "fpk": {
                        "type": "number"
                      },
                      "fp01k": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  "unit": {
                    "enum": [
                      "MPa",
                      "kN/m2",
                      "kgf/cm2",
                      "ksi",
                      "psi"
                    ],
                    "default": "MPa",
                    "description": "Stress unit of the results (internally kN/m²)."
                  },
                  "csv": {
                    "type": "boolean",
                    "default": true,
                    "description": "Return the plugin's SLS CSV (every state, one row per part) as a download link."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/civil_write_tables": {
      "post": {
        "operationId": "civil_write_tables",
        "summary": "Write any model table (build from scratch)",
        "description": "Use for a model change no other tool makes (e.g. building from scratch). Prefer civil_loads_supports for loads and supports, civil_combinations_quick for combinations, and a plugin tool where one fits. Creates, changes or deletes rows in any CIVIL NX database table through the MIDAS API — nodes, ele",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "writes": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 50,
                    "items": {
                      "type": "object",
                      "properties": {
                        "table": {
                          "type": "string",
                          "description": "Table key as in the API manual's URI (db/NODE → NODE; LCOM-GEN, MVLDBS…)."
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "create",
                            "upsert",
                            "delete"
                          ]
                        },
                        "rows": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object",
                            "description": "One row: the table's fields as the API manual gives them (Assign)."
                          },
                          "description": "create / upsert: { \"<key>\": { field: value } }, keys are whole numbers."
                        },
                        "ids": {
                          "type": "array",
                          "items": {
                            "type": [
                              "integer",
                              "string"
                            ]
                          },
                          "description": "delete: the keys to delete."
                        }
                      },
                      "required": [
                        "table",
                        "op"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "allowDestructive": {
                    "type": "boolean",
                    "default": false,
                    "description": "DESTRUCTIVE: allow delete steps and writes to UNIT / MVCD. Only after the user agreed to what the preview says they do."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write to CIVIL NX. Only after the user approved the preview."
                  },
                  "confirmPlanHash": {
                    "type": "string",
                    "description": "planHash from the approved preview; refused if the model or the steps changed."
                  }
                },
                "required": [
                  "writes"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/civil_run_analysis": {
      "post": {
        "operationId": "civil_run_analysis",
        "summary": "Run the analysis",
        "description": "Use to run the analysis of any model. For culverts use culvert_analyse_and_check; for PD 6694 SSI use pd6694_ssi_run. Runs the CIVIL NX analysis of the open model (doc/ANAL), so results can be read with the result tools straight after building or changing a model. Replaces the model's results; chang",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "saveFirst": {
                    "type": "boolean",
                    "default": false,
                    "description": "Save the model over its own file before analysing (doc/SAVE)."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "Run it. Only with the user's go-ahead."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/civil_save_model": {
      "post": {
        "operationId": "civil_save_model",
        "summary": "Save the model",
        "description": "Use to save the open model, or save it under a new path. Saves the open CIVIL NX model: over its own file (doc/SAVE), or as a new .mcb file when path is given (doc/SAVEAS; a file of that name is overwritten). A model built from scratch must be saved once before it can be analysed. Previews unless ap",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "path": {
                    "type": "string",
                    "description": "Full Windows path ending in .mcb, e.g. C:\\Models\\Bridge.mcb. Omit to save over the model's own file."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/tendon_design": {
      "post": {
        "operationId": "tendon_design",
        "summary": "Design or check a girder's prestressing tendons (Tendon Designer)",
        "description": "Use to design, or check, the prestressing tendons of a concrete girder. It writes nothing: tendon_write does. Designs the post- or pre-tensioning tendons of a concrete girder in the open model to EN 1992-1-1 with the Tendon Designer plugin's own engine, or reads the model's own tendons and checks th",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "group": {
                    "type": "string",
                    "description": "Structure group holding ONE girder's beam elements - the elements one continuous tendon runs through, end to end (not the whole deck). A group holding several girders is split into its girder lines and one is designed (girderLine)."
                  },
                  "elementIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "The girder's beam elements (one girder line)."
                  },
                  "useSelection": {
                    "type": "boolean",
                    "description": "Use the beam elements selected in CIVIL NX (one girder line)."
                  },
                  "girderLine": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "When the group/elements hold several separate girders: which one to design (1-based, as listed in girderNotes). Default: the one with the most tendons on it."
                  },
                  "startNode": {
                    "type": "integer",
                    "description": "The girder end its stations are measured from (default: the end the elements run from)."
                  },
                  "compositeMode": {
                    "enum": [
                      "before",
                      "after",
                      "off"
                    ],
                    "description": "Composite girder (precast girder + deck slab section): when the tendons are stressed. before = prestress, girder and wet-slab weight on the girder alone, superimposed dead and live load on the composite section (precast / pre-tensioned); after = the slab has hardened, prestress on the composite section too; off = ignore the slab. Default: worked out from the construction stages (first stressing stage vs the slab's CSCS stage), else before. The slab's concrete is read from the model (CSCS, else the section's Es/Ec)."
                  },
                  "compositeSection": {
                    "enum": [
                      "girder",
                      "whole"
                    ],
                    "description": "Old name of compositeMode: girder = before, whole = after."
                  },
                  "sectionNodeLine": {
                    "enum": [
                      "CT",
                      "CC",
                      "CB"
                    ],
                    "description": "Only when CIVIL NX will not send the section records: the node line (top, centroid, bottom) the tendon heights are measured from. Worked out from the model otherwise."
                  },
                  "mode": {
                    "enum": [
                      "new",
                      "improve",
                      "given",
                      "define"
                    ],
                    "description": "new = auto-design new tendons; improve = read the model's own tendons on the girder and check / improve them; given = the tendons in soffitTendons (set automatically when soffitTendons is given); define = quick layout with NO design checks (the plugin's Define tendons): no forces read, settings.tendonsPerColumn x settings.strandsPerTendon (default 2 x 19) on each web column, a plain parabola anchor to anchor on settings.cover_mm; only cover, clear spacing and bend radius are checked. define ignores the supports for the shape and works when the girder has none or they cannot hold it (analysed pinned at both ends, said under supports) - use it when the user just wants tendons, or new/improve stop on the supports. Default: improve when tendons run along the girder, else new."
                  },
                  "soffitTendons": {
                    "type": "object",
                    "description": "Tendons given by the user - typically an existing bridge's tendon schedule - as heights of the tendon centre ABOVE THE SOFFIT at stations along the girder, with the transverse distance across the section: the plugin's Heights from soffit… input. Either tendons (each with its points) or csv (the plugin's soffit-height CSV / template: Tendon, Station (m), Height above soffit (mm), Transverse distance y (mm), one row per point; a sheet with stations across also reads). Every check then runs on these tendons as given (no auto-design), and tendon_write can write them. A full-length tendon becomes a spline through its points; a part-length tendon at a constant depth becomes a slab tendon.",
                    "properties": {
                      "tendons": {
                        "type": "array",
                        "maxItems": 200,
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "transverse_mm": {
                              "type": "number",
                              "description": "Transverse distance from the section centroid, mm (+ as in the plugin's section view), for every point that does not give its own. Default 0."
                            },
                            "points": {
                              "type": "array",
                              "minItems": 2,
                              "maxItems": 200,
                              "items": {
                                "type": "object",
                                "properties": {
                                  "station_m": {
                                    "type": "number",
                                    "description": "m from the girder's start (its first node; see startNode)."
                                  },
                                  "heightAboveSoffit_mm": {
                                    "type": "number",
                                    "minimum": 0,
                                    "description": "Height of the tendon centre above the soffit, mm."
                                  },
                                  "transverse_mm": {
                                    "type": "number",
                                    "description": "Transverse distance at this point, mm (e.g. a tendon in a sloping web)."
                                  }
                                },
                                "required": [
                                  "station_m",
                                  "heightAboveSoffit_mm"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "points"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "csv": {
                        "type": "string",
                        "description": "The soffit-height CSV text instead of tendons."
                      },
                      "strandsPerTendon": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 61,
                        "description": "Strands per tendon (default: the plugin's default unit, or settings)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "exportSoffitCsv": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also return the design's tendons (new, improved or given) as the soffit-height CSV - Tendon, Station (m), Height above soffit (mm), Transverse distance y (mm), one row per point - as a download link (soffitHeightsCsv). It is the file the plugin's Heights from soffit… imports and soffitTendons.csv reads."
                  },
                  "standardStrands": {
                    "type": "boolean",
                    "default": true,
                    "description": "mode new: a section named after a UK/Irish standard precast beam (Y, TY, SY, M, U, W ...) is pre-tensioned on the beam's published strand positions. false (or settings.prestressType \"post\") post-tensions it instead."
                  },
                  "forces": {
                    "type": "object",
                    "description": "Where the forces come from. Default: CIVIL NX - construction-stage results when the model has stages (the construction-stage analysis must have been run), else static load cases.",
                    "properties": {
                      "source": {
                        "enum": [
                          "civil",
                          "beam"
                        ],
                        "default": "civil",
                        "description": "beam = no forces read: the plugin's continuous beam with self-weight from the section plus lineLoads."
                      },
                      "kind": {
                        "enum": [
                          "cs",
                          "static"
                        ],
                        "description": "On a staged model: cs (default) or static load cases."
                      },
                      "selfWeight": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Static: self-weight case(s) with their suffix, e.g. [\"DL(ST)\"]. Default: the case named like self weight / dead."
                      },
                      "superimposedDead": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Static: superimposed dead case(s), e.g. [\"SDL(ST)\"]."
                      },
                      "liveMax": {
                        "type": "string",
                        "description": "Live load envelope max, as CIVIL NX names it, e.g. \"LL(MV:max)\" or \"SLS(CB:max)\"."
                      },
                      "liveMin": {
                        "type": "string",
                        "description": "Live load envelope min."
                      },
                      "ulsEnvelope": {
                        "type": "object",
                        "description": "A ULS envelope combination used in place of the factored sum.",
                        "properties": {
                          "max": {
                            "type": "string",
                            "description": "e.g. \"ULS ENV(CB:max)\""
                          },
                          "min": {
                            "type": "string"
                          },
                          "includesPrestress": {
                            "type": "boolean",
                            "description": "The combination already holds the prestress secondary moments (default true on a staged model)."
                          }
                        },
                        "additionalProperties": false
                      },
                      "prestressFrom": {
                        "enum": [
                          "plugin",
                          "civil"
                        ],
                        "default": "plugin",
                        "description": "mode improve on a staged model: the prestress the checks use. civil = the force, P·e and secondary moment from CIVIL NX's construction-stage results (the real erection sequence, couplers, creep), while the tendons stay as the model has them; plugin = the plugin's own losses and secondary moment on the finished continuous girder. Output prestressInChecks says which was used and why."
                      }
                    },
                    "additionalProperties": false
                  },
                  "lineLoads": {
                    "type": "object",
                    "description": "forces.source beam: superimposed dead and live line loads, kN/m.",
                    "properties": {
                      "sdl": {
                        "type": "number"
                      },
                      "live": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  "losses": {
                    "type": "object",
                    "description": "Loss method and inputs (default EN 1992-1-1 with Annex B creep and shrinkage). code cs455 assesses an existing UK bridge's losses to CS 455 clause 8 (8.7-8.14); the stress limits and resistance checks stay EN 1992-1-1.",
                    "properties": {
                      "code": {
                        "enum": [
                          "ec2",
                          "cs455"
                        ]
                      },
                      "relaxClass": {
                        "enum": [
                          1,
                          2,
                          3
                        ],
                        "description": "EN 1992 relaxation class (default 2)."
                      },
                      "rho1000": {
                        "type": "number",
                        "description": "Relaxation at 1000 h, % (default 2.5)."
                      },
                      "RH": {
                        "type": "number",
                        "description": "EN 1992: relative humidity, % (default 80)."
                      },
                      "loadingAge_days": {
                        "type": "number",
                        "description": "EN 1992: age at loading t0 for creep (default: the age at stressing from the construction stages in mode improve, else 7)."
                      },
                      "dryingStart_days": {
                        "type": "number",
                        "minimum": 0.5,
                        "maximum": 365,
                        "description": "EN 1992: age drying starts ts, days (default: the model's time-dependent material, else 3)."
                      },
                      "cementClass": {
                        "enum": [
                          "S",
                          "N",
                          "R"
                        ],
                        "description": "EN 1992 cement class (default: the model's time-dependent material, else N)."
                      },
                      "creepCoefficient": {
                        "type": "number",
                        "description": "EN 1992: a creep coefficient phi(inf, t0) in place of Annex B."
                      },
                      "shrinkageAfterStressing_e6": {
                        "type": "number",
                        "description": "EN 1992: the shrinkage strain AFTER stressing, x1e-6, in place of Annex B."
                      },
                      "dryingPerimeter": {
                        "enum": [
                          "outer",
                          "all"
                        ],
                        "description": "EN 1992 h0 = 2Ac/u: outer faces only (default), or with the void faces for vented cells."
                      },
                      "hoursOnBed": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 2000,
                        "description": "EN 1992 pre-tensioned: hours from tensioning to release (default 24)."
                      },
                      "psi2": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1,
                        "description": "Quasi-permanent factor on the traffic (default 0): creep and the relaxation reference stress."
                      },
                      "cs455": {
                        "type": "object",
                        "additionalProperties": false,
                        "description": "code cs455 inputs (blank = the tables).",
                        "properties": {
                          "wobbleK_e4": {
                            "type": "number",
                            "description": "Wobble K x1e-4 /m (8.14.4/5: 17 rigid sheaths, at least 33 otherwise; default 33)."
                          },
                          "exposure": {
                            "enum": [
                              "normal",
                              "humid"
                            ],
                            "description": "Table 8.9.1 shrinkage."
                          },
                          "elasticShortening": {
                            "enum": [
                              "half",
                              "sequence"
                            ],
                            "description": "8.11.3: half the modular ratio x the mean stress along the tendon, or (n-1)/2n."
                          },
                          "otherLosses_pct": {
                            "type": "number",
                            "description": "Steam curing / other losses, % of the stress at transfer."
                          },
                          "fci_MPa": {
                            "type": "number",
                            "description": "Cube strength at transfer (default from the grade and transfer age)."
                          },
                          "Ec_GPa": {
                            "type": "number",
                            "description": "Concrete modulus at transfer (default Eq 3.5a, 20 + 0.27 fci)."
                          },
                          "creepPerMPa_e6": {
                            "type": "number",
                            "description": "Creep strain per MPa x1e-6 in place of Table 8.8.3 (0 is used as entered)."
                          },
                          "shrinkage_e6": {
                            "type": "number",
                            "description": "Shrinkage strain x1e-6 in place of Table 8.9.1 (0 is used as entered)."
                          }
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "settings": {
                    "type": "object",
                    "description": "Loads & prestress values that differ from the model / plugin defaults.",
                    "properties": {
                      "fck": {
                        "type": "number",
                        "description": "Concrete grade fck, MPa (default: read from the material)."
                      },
                      "sigmaJack": {
                        "type": "number",
                        "description": "Jacking stress, MPa (default 1395, or the model tendons' own)."
                      },
                      "stressing": {
                        "enum": [
                          "both",
                          "start",
                          "end"
                        ],
                        "description": "Jacked from both ends, the start or the end (improve: default as in the model)."
                      },
                      "prestressType": {
                        "enum": [
                          "post",
                          "pre"
                        ]
                      },
                      "strandTendons": {
                        "enum": [
                          "group",
                          "level",
                          "each"
                        ],
                        "description": "Pre-tensioned: how strands become CIVIL NX tendons. group (default) = strands treated alike (top / bottom face, deflected, debonded length) are one tendon of n strands; level = one per row and treatment; each = one tendon per strand. Forces and resultant are the same; design.strandTendonsInCivil lists them."
                      },
                      "transferAge_days": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 3650,
                        "description": "Age of the concrete when the tendons are stressed, days: fck(t), the transfer stress limits and the anchorage strength (default: from the construction stages in mode improve - the youngest element - else 7)."
                      },
                      "cover_mm": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 500,
                        "description": "Clear cover to the duct (to the strand when pre-tensioned), mm: the plugin's Clear cover to duct. new: the layout is kept inside it; every mode: the cover check uses it (default 75; 35 on a standard precast beam's strands)."
                      },
                      "clearSpacingV_mm": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 500,
                        "description": "Minimum clear spacing between ducts, vertical, mm (default 40)."
                      },
                      "clearSpacingH_mm": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 500,
                        "description": "Minimum clear spacing between ducts, horizontal, mm (default 50)."
                      },
                      "tendonsPerColumn": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 8,
                        "description": "new / define, post-tensioned: exactly this many tendons in each web column (the plugin's Tendons per web column, kept fixed); new then sizes only the unit and profile. Default: new searches up to maxTendonsPerColumn; define 2."
                      },
                      "strandsPerTendon": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 61,
                        "description": "new / define, post-tensioned: every tendon this many strands (the plugin's Strands per tendon, kept fixed; a too-small duct is raised to the unit's). Default: new searches strandUnits; define 19."
                      },
                      "ductMm": {
                        "type": "number"
                      },
                      "mu": {
                        "type": "number",
                        "description": "Friction coefficient."
                      },
                      "k": {
                        "type": "number",
                        "description": "Wobble, rad/m."
                      },
                      "slipMm": {
                        "type": "number",
                        "description": "Anchor draw-in, mm."
                      },
                      "strandUnits": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        },
                        "description": "new: strands per tendon to try (default 7, 12, 15, 19, 22, 27, 31)."
                      },
                      "maxTendonsPerColumn": {
                        "type": "integer",
                        "description": "new: tendons per web column at most (default 4)."
                      },
                      "transferLength": {
                        "type": "object",
                        "additionalProperties": false,
                        "description": "Post-tensioned transfer length (default calc, in the checks). calc = each tendon's own length from EN 1992-1-1 8.10.3(5) (spread at 2 beta, beta = arctan 2/3, from the bearing plate to the top/soffit and across its share of the width); user = begin_m / end_m for every tendon; none = full force at the anchor; auto = CIVIL NX's 0.5 x (H + Bf/n). tendon_write writes it (calc and user as user defined). inChecks (default true): the design's checks build each tendon's force up linearly over it, as CIVIL NX does; false = full force at the anchor in the checks.",
                        "properties": {
                          "mode": {
                            "enum": [
                              "calc",
                              "user",
                              "none",
                              "auto"
                            ]
                          },
                          "begin_m": {
                            "type": "number",
                            "minimum": 0
                          },
                          "end_m": {
                            "type": "number",
                            "minimum": 0
                          },
                          "inChecks": {
                            "type": "boolean"
                          }
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "strandStations": {
                    "type": "array",
                    "maxItems": 100,
                    "description": "Pre-tensioned only: strands shaped station by station (the plugin's Strand stations and heights). Each strand runs straight between its stations and level beyond the first and last; height_mm is above the soffit at that station. stations [] makes the strand straight again at its own level. Strands are named as design.debonding.strandNames lists them (\"A.5\", or tendon numbers on a grid). A shaped strand is written to CIVIL NX as a tendon of its own; design.strandStations gives each station's height and the force on the bed there (+ = hold-down). Applied to the strands as designed (after any auto search).",
                    "items": {
                      "type": "object",
                      "properties": {
                        "strand": {
                          "type": [
                            "string",
                            "integer"
                          ]
                        },
                        "stations": {
                          "type": "array",
                          "maxItems": 50,
                          "items": {
                            "type": "object",
                            "properties": {
                              "s_m": {
                                "type": "number",
                                "minimum": 0,
                                "description": "Station from end A (the girder's start), m."
                              },
                              "height_mm": {
                                "type": "number",
                                "description": "Strand centre above the soffit there, mm."
                              }
                            },
                            "required": [
                              "s_m",
                              "height_mm"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "strand",
                        "stations"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "debonding": {
                    "description": "Pre-tensioned only: strands sleeved (debonded) at the beam ends so they carry no force there - relieves transfer tension at the ends. \"auto\" = the plugin's Find debonding on the strands as designed (pairs of inner strands, 1-6 m, within 25 % of all strands and 40 % of a row, outermost strands bonded; taken only if checks improve); \"none\" = every strand bonded (auto-design does not debond either); or a list giving exactly the strands to sleeve, by name as design.debonding.strandNames lists them (standard positions like \"A.5\", or tendon numbers on a tendon grid). Omitted: as auto-design left it (on a standard precast beam it may already debond). Written to CIVIL NX as each strand's DeBondBLEN / DeBondELEN.",
                    "anyOf": [
                      {
                        "enum": [
                          "auto",
                          "none"
                        ]
                      },
                      {
                        "type": "array",
                        "maxItems": 100,
                        "items": {
                          "type": "object",
                          "properties": {
                            "strands": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "minItems": 1
                            },
                            "endA_m": {
                              "type": "number",
                              "minimum": 0,
                              "description": "Sleeved length at end A (the girder's start), m."
                            },
                            "endB_m": {
                              "type": "number",
                              "minimum": 0,
                              "description": "At end B, m (default = endA_m)."
                            }
                          },
                          "required": [
                            "strands",
                            "endA_m"
                          ],
                          "additionalProperties": false
                        }
                      }
                    ]
                  },
                  "externalTendons": {
                    "type": "object",
                    "description": "mode new, post-tensioned box or U girders: add external tendons in the void (CIVIL NX External tendon type), straight between deviators - anchored at the centroid, low at 0.3 and 0.7 of each span just clear of the bottom slab, high over interior supports. Added before the internal tendons are sized, so those are sized with them in place.",
                    "properties": {
                      "count": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 12,
                        "default": 4,
                        "description": "External tendons (placed beside each web; one at the middle when odd)."
                      },
                      "strands": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 61,
                        "default": 19,
                        "description": "Strands per external tendon."
                      },
                      "mu": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 0.5,
                        "description": "Friction at the deviators (default 0.12, HDPE duct, EN 1992-1-1 Table 5.1; steel 0.25)."
                      },
                      "clear_mm": {
                        "type": "number",
                        "minimum": 0,
                        "description": "Clear gap from the sheath to the concrete, mm (default 50)."
                      }
                    },
                    "additionalProperties": false
                  },
                  "columnStrands": {
                    "type": "array",
                    "maxItems": 40,
                    "items": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 1,
                      "maximum": 61
                    },
                    "description": "Strands per tendon, column by column (left to right, as design.columns lists them); null = the design's strandsPerTendon. A column with its own count is written with its own tendon property. Post-tensioned draped tendons only (not standard strand patterns)."
                  },
                  "search": {
                    "type": "object",
                    "description": "mode new: how hard to look for the layout. Pre-tensioned standard beam + deep = the plugin's strand search run to the time limit (strand counts, top strands, jacking stress, debonding and deflected strands, then the neighbours of the best layouts refined strand by strand). Post-tensioned: fast (default, seconds) = the plugin's quick search, every tendon on one shared profile. deep = the plugin's Find the best layout - Deep: every arrangement (strands per tendon x tendons per column), each on one shared profile AND with a profile per mirrored pair of columns (outer webs, inner webs ... each with its own low points, levels over the piers and anchors), hundreds to thousands of profiles sampled then refined span by span; returns the chosen layout plus the best option of each arrangement (autoDesign.deep.options). Use deep when the user wants the best / most economical layout or tendons profiled individually.",
                    "properties": {
                      "depth": {
                        "enum": [
                          "fast",
                          "deep"
                        ],
                        "default": "fast"
                      },
                      "seconds": {
                        "type": "number",
                        "minimum": 10,
                        "maximum": 600,
                        "default": 90,
                        "description": "deep: time limit, s."
                      },
                      "options": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 20,
                        "default": 8,
                        "description": "deep: options listed (the best of each arrangement)."
                      },
                      "balance": {
                        "type": "object",
                        "description": "deep only: load balancing as the aim, as the plugin's Load balancing + Deep. Passing layouts that balance target % of the chosen load in EVERY span (within ±5 points) are ranked first, then the least strand; otherwise the closest. The aim never overrides a failing check. Each option reports its balance per span.",
                        "properties": {
                          "load": {
                            "enum": [
                              "permanent",
                              "self",
                              "girder",
                              "transfer"
                            ],
                            "default": "permanent",
                            "description": "permanent = self-weight + superimposed dead (final force); self = self-weight; girder = self-weight + wet slab; transfer = load at transfer (force at transfer)."
                          },
                          "target": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 150,
                            "description": "Target, % of that load balanced in each span."
                          }
                        },
                        "required": [
                          "target"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "autoResolve": {
                    "type": "boolean",
                    "default": false,
                    "description": "When checks fail, try the smallest change that clears them (the plugin's Auto-resolve); taken only if fewer checks fail."
                  },
                  "keep": {
                    "type": "object",
                    "description": "autoResolve: what it must not change. improve default: anchors, count, strandsPerTendon and duct kept, profile free; new default: nothing kept.",
                    "properties": {
                      "profile": {
                        "type": "boolean"
                      },
                      "anchors": {
                        "type": "boolean"
                      },
                      "count": {
                        "type": "boolean"
                      },
                      "strandsPerTendon": {
                        "type": "boolean"
                      },
                      "duct": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/tendon_write": {
      "post": {
        "operationId": "tendon_write",
        "summary": "Write the designed tendons into the model (Tendon Designer)",
        "description": "Use after tendon_design, to write its tendons into the model. Writes a tendon_design result into the open model with the Tendon Designer plugin's writer: the strand material and tendon property (or one already in the model), every tendon profile (TDNA) and its prestress (TDPL) in the prestress load ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "designId": {
                    "type": "string",
                    "description": "The tendon_design result to write (default: the latest)."
                  },
                  "prefix": {
                    "type": "string",
                    "default": "TD",
                    "description": "Tendon name prefix, at most 8 characters (tendons are named <prefix>-C1R1, ...)."
                  },
                  "loadCase": {
                    "type": "string",
                    "description": "Prestress load case (default PS, or the model tendons' own)."
                  },
                  "loadGroupPrefix": {
                    "type": "string",
                    "default": "TD PS",
                    "description": "Each tendon group's prestress goes in a load group named this prefix plus the group's name (made if missing). Empty string = no load group (Default); stages need one."
                  },
                  "stage": {
                    "type": "string",
                    "description": "Activate every tendon group's load group in this construction stage."
                  },
                  "stages": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Per tendon group (its key or label from tendon_design design.groups): the construction stage it is stressed in."
                  },
                  "replace": {
                    "type": "boolean",
                    "default": true,
                    "description": "Remove tendons this tool wrote before on these elements with the same prefix (recorded in the ledger and unchanged since)."
                  },
                  "tendonPropertyId": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Use this tendon property already in the model (default: the model tendons' own for improve, else a new one from the design). null = a new one."
                  },
                  "tendonPropertyName": {
                    "type": "string"
                  },
                  "strandMaterialId": {
                    "type": "integer",
                    "description": "Strand material already in the model for a new tendon property (default: a new strand material)."
                  },
                  "bonded": {
                    "type": "boolean",
                    "default": true
                  },
                  "transferLength": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": [
                          "calc",
                          "user",
                          "none",
                          "auto"
                        ]
                      },
                      "begin": {
                        "type": "number"
                      },
                      "end": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Post-tensioned transfer length written to each profile. Omitted: the design's own (tendon_design settings.transferLength, default calc = each tendon's EN 1992-1-1 8.10.3(5) length, written as user defined). calc / user (begin, end in m) / none (full force at the anchor) / auto (CIVIL NX's 0.5 x (H + Bf/n))."
                  },
                  "allowFailedChecks": {
                    "type": "boolean",
                    "default": false,
                    "description": "Write a design whose checks fail. Only with the user's agreement."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmPlanHash": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/midas_workflow": {
      "post": {
        "operationId": "midas_workflow",
        "summary": "Step-by-step bridge workflows",
        "description": "Use FIRST when building a whole bridge model (PSC composite girders, steel composite girders, a grillage through traffic, stages and combinations): it gives the steps in order and the tool for each. For one dialog or input use midas_docs_search. Returns a worked, step-by-step workflow for building a",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "enum": [
                      "bridge-grillage-workflow",
                      "psc-composite-girder-bridge",
                      "steel-composite-girder-bridge"
                    ],
                    "description": "The workflow to read. Leave out to list them."
                  },
                  "file": {
                    "type": "string",
                    "description": "A supporting file of that workflow, e.g. \"references/gui-steps.md\" (the tutorial's menu-by-menu steps in the CIVIL NX window). Default SKILL.md."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/undo_run": {
      "post": {
        "operationId": "undo_run",
        "summary": "Undo a recorded change",
        "description": "Use to reverse any change a tool made to the model (list the recorded runs, preview, then apply). For wind or PD 6694 loads use ec_wind_remove / pd6694_route_a_remove / pd6694_ssi_remove; to take out loads or supports added by hand use civil_remove_loads. Reverses one change a tool made to the model",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "runId": {
                    "type": "string",
                    "description": "The run to reverse, from the list undo_run gives without runId (or from the apply's result)."
                  },
                  "apply": {
                    "type": "boolean",
                    "default": false,
                    "description": "false (default): preview the undo. true: reverse the run."
                  },
                  "force": {
                    "type": "boolean",
                    "description": "Bridge Reshaper and Bridge Thermal Loads only: undo even though the model changed since the run (their preview says when this is needed)."
                  },
                  "tidy": {
                    "type": "boolean",
                    "description": "Beam to Plate only: also delete nodes left unused."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result (JSON). Long work returns { jobId } — poll /api/v1/jobs/{jobId}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The tool refused or failed; { error } says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/jobs/{jobId}": {
      "get": {
        "operationId": "job_status",
        "summary": "Status and result of a long-running tool call",
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Job status",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}