Is there a way to repair friendly robots?

I have a friendly mach that got a little bit damaged in a fight is there any way to repair it or does it gerenerate on its own like normal monsters?

I might be wrong but perhaps use a scrambler grenade on it, then deactivate it to turn it into an item(like you can with broken cyborgs) if they can do that, and then repair the item with a welding station or something, then reactivate it and have it be full health.

I suggest testing this on an eyebot or something first though. You might not even need the scrambler grenade if friendly bots can simply be deactivated just like that.