To reuse a custom function based on QGIS processing tools in another script, define it as a standalone Python function within that script. Make sure to import the necessary QGIS processing modules and ensure that the function parameters match the input requirements. You can then call this function wherever needed in your new script.