When documenting your module, you can use
<texcode>
\usemodule[int-load] %Allow xml parsing
\loadsetups[m-name-of-your-module.xml] % to load the file with definitions
\showsetupsetup{nameofyourcommand}
</texcode>
An example:
<contextsource="yes">\loadsetupsusemodule[contint-en.xmlload]\showsetuploadsetups\setup{externalfgureexternalfigure}
</context>
By default, this places a frame around the setup. If you want to get gray backgroud, as in context documentation, add the following
<texcode>
\setupframedtexts
[setuptext]
[background=screen,
frame=off]
</texcode>