Can an Artificer with an All-Purpose Tool gain Eldritch Blast cantrip and take the feat Eldritch Adept to get Agonizing Blast Invocation?
All-Purpose Tool: [...] As an action, you can focus on the tool to channel your creative forces. Choose a cantrip that you don't know from any class list. For 8 hours, you can cast that cantrip, and it counts as an artificer cantrip for you. Once this property is used, it can't be used again until the next dawn.
Agonizing Blast - Prerequisite: Eldritch Blast cantrip - When you cast Eldritch Blast, add your Charisma modifier to the damage it deals on a hit.
If the Artificer chooses a different cantrip the following day, they still have the invocation right, it just doesn't function till the Artificer chooses Eldritch Blast the day after?