Defined variables within a scope

Hi,
I want to get the variables defined within the current scope. Is there a function that does it?

Thanks

I don’t think there is. There is whos but that works at module scope. Note that there are very many variables defined in most scopes as Base, etc. have a ton (run whos(Base)), unless you have a scope nested in a baremodule.