Currently, all available tokens can be fetched by calling (in series):
- action=paraminfo&modules=query+tokens (to get list of token types – which can differ between wikis based on extensions installed)
- action=query&meta=tokens
From the perspective of a bot library, it would be great if this could be done in one step – that is, the latter could provide an option to fetch all types of tokens without having to first fetch the list of token types.