The way to do it is to open the python file that you want the mission from.
defend.py wrote:class defend (Director.Mission):
def __init__ (self,factionname,numsystemsaway, enemyquantity, distance_from_base, escape_distance, creds, defendthis, defend_base,protectivefactionname='',jumps=(),var_to_set='',dynamic_flightgroup='',dynamic_type='', dynamic_defend_fg='',waves=0, greetingText=['We will defeat your assets in this battle, privateer...','Have no doubt!']):
So you can see the "defend" is the class name to put in quotes, then a tuple containing the arguments to init.
'bounty_leader',('kilrathi',0,2,5000,10000,0,'refinery',(), priv.name+"_mission",'','',0,["com message"])
I might be wrong in some of the specifics... look in the "initrandom" and the ".mission" files for what the specific arguments mean. Also, compare the names to other missions that have examples (look what bounty_leader uses dynamic_fg for)
It's the exact same format as the mission computer, dynamic_mission and mission_lib uses... So you will have to look there for examples.
generateDefendMission() in dynamic_mission.py