Contingency used to be powerful in older editions, and has been limited in 5e with tighter conditions on what can be put into it:
Choose a spell of 5th level or lower that you can cast, that has a casting time of 1 action, and that can target you. (...) The contingent spell takes effect only on you, even if it can normally target others.
No more Teleport to a safe location where you have help waiting.
Anything with long casting times, Bonus Action or Reaction casting times is out, as are spells that cannot target you. For what is left, there are typically two uses, either with an intentional trigger (snapping your fingers, blinking etc.) to store and release a spell, or, as a "safety valve" with an external trigger, to get you out of trouble when things go south. My question is about that second use.
In this case, you are in an emergency situation, possibly being hurt, controlled, or downed. You want to free yourself, get away, heal or protect yourself. I am looking for spells that can do this reliably, with the following criteria:
I do not want Concentration spells, because they can cancel whatever the wizard may already concentrate on. If that happens to be wall of force to keep a nasty monster under wraps, I just made it worse.
I do not want spells that require you to choose circumstantial parameters when you cast them (before you know the actual circumsances). For example, dimension door may be dangerous and end up putting you in a wall or above a pit of lava.
Spells that, while they can technically target you, you really don't want them to, are out. For example, lightning bolt or fireball, they only harm you (unless you have something very unusual going on), without even affecting anyone around you.
Lastly, there are spells where the benefit to your immediate survival is questionable, like gentle repose, that only works once you are dead, or comprehend languages, tongues, Nystul's magic aura, or nondetection that might be helpful in an unusual situation, but generally won't make any difference. To restrict this from being subjective, I want spells that can: help with mobility, improve AC, negate attacks, provide hit points, grant immunity or resistance, transfer damage, allow you to see enemies or see through illusions, call help, stabilize you from dying, or remove or prevent harmful conditions, exhaustion and suffocation.
A spell that does not violate one of these four criteria I consider reliable. This results in a deploringly small number of such reliable selections in the PHB:
- Level 1: false life, jump, longstrider, mage armor
- Level 2: darkvision, see invisibility, mirror image
- Level 3: blink, dispel magic, remove curse, water breathing
- Level 4: fire shield
- Level 5: -
What wizard spells are there in other published sources (Xanathar, Tasha, Fizban) that can reliably be used with contingency in a dangerous situation?