opyLora() {
 try {
  const workflow = JSON.parse(jsonInput.value);
  builder = new WorkflowBuilder();
  await builder.fetchNodeTypes();
  builder.loadWorkflow(workflow);

  const lastLoraId = builder.getLastNodeIdByType("LoraLoader");
  if (!lastLoraId) return;

  const newNodeId = builder.currentNodeId;
  const loraNode = builder.nodes.get(lastLoraId);
  
  console.log(JSON.stringify({
   type: 'copy_start',
   last_lora_id: lastLoraId,
   new_node_id: newNodeId,
   source_node: loraNode
  }, null, 2));

 