MiPendingCommand threadListIds()
Lists IDs of all threads.
-thread-list-ids
Example:
session.threadListIds();