@zBeeble If you're needing to figure something out either way, and just wanting to handle printer pausing during print, probably best to use the active and standby approach suggested using M568, but if you were already using variables or have another use case this is an alternative.
See https://docs.duet3d.com/en/User_manual/Reference/Gcode_meta_commands#variables
RRF has variables you can write to and then refer to in gcode by putting the name inside {these}. It also has local variables that stay inside one gcode file, useful for loops and things.
You could have in config.g something to create an empty variable:
if !exists(global.nozt)
global nozt = -1
Which creates a global if it doesn't already exist.
Then in your pause.g have something like
set global.nozt = heat.heaters[1].active
before you switch off the tool heater (or switch it to standby) (this assuming your nozzle in the tool is heater 1). Then any subsequent code can know what the temperature had been (by referring to global.nozt) e.g. with G10 P0 S{global.nozt} to switch back on with taht setpoint.
The advantage this has is if you are doing other things with the temperature besides just standby and resume. I have some physical buttons on my printer which heat and feed filament (mainly when doing a manual colour change and flushing some through), so I want the printer to know the extrusion temperature of the filament currently loaded easily, so I write that into a global variable and use it both when resuming after pausing and when heating the tool (potentially from fully cold) to feed some filament.