@chrishamm so I guess something like this?
echo "Stall detected:"
echo " Current position:", move.axes[0].letter, move.axes[0].userPosition, move.axes[1].letter, move.axes[1].userPosition
echo " Current object:", job.build.currentObject
echo "Rehoming and resuming."
G28 X Y