The plugin interface does not have and need this information.
It is intended to modify the document representation in memory.
Modifying an open DXF file from outside LibreCAD, on file level, is a bad idea generally.
There is no mechanism in LibreCAD which can handle this correct.
investing less than half an hour into Search function can save hours or days of waiting for a solution