Having a way to use the "Copy Modlist" function to print a valid info.json file would be very helpful for creating dependency mods, perhaps when you click it with Ctrl+Shift.
In this mode, it would definitely exclude "modlist-ui" from the list.
It could also have a button which uses helpers.write_file() to write it to "script-output".