export_ldr
Re-encode an existing .ldr into a new .ldr artifact for a lossless round trip, preserving unknown payloads and CRC validity; the source stays untouched and existing output names are rejected.
Instructions
Re-encode one existing .ldr into a separate new .ldr artifact.
Use this for a lossless round trip that preserves unknown payloads and the source file's CRC
validity state; it does not change network logic. The source remains untouched and an
existing output_name is rejected. Returns the new artifact link, size, SHA-256 and warnings.
Use modify_network to insert, replace or delete logic, or generate_ldr for new Ladder IR.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"output_name": "<output_name>"
},
"name": "export_ldr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Existing .ldr source path inside the configured workspace. | |
| output_name | Yes | New plain .ldr filename in the artifact directory; never overwrites. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Structured error code, message and written=false on handled validation failure. | |
| artifact | No | Artifact metadata on success; absent when validation fails before writing. | |
| warnings | No | Generation or verification warnings; empty when none were reported. | |
| diagnosis | No | Structured LDR generation failure diagnosis; absent on success. | |
| response_mode | Yes | Whether repeated design metadata was compacted or returned in full. |