I believe this can work but please be careful doing this! Tool batteries are capable of supplying very high peak current and could cause a small fire. Lithium ion battery fires are not trivial, water alone may not be enough to stop it.
Good point - I didn’t add a disclaimer, not recommended! And probably not a fun tip but nonetheless saved my bacon a few times when I needed quick access to devices.