I seem to remember (from a galaxy far far away) that it was possible to pick up the parameters from the mtxrun call that sets ConTeXt typesetting in motion. For example doing 
mtxrun —mymode=something
and then in the program retrieving that something.
Will someone enlighten me?

dr. Hans van der Meer