If you are using the Xpression plugin, there is a command that can be used in an XPression context to create a take within the sequencer.
params.executeCommand("cmds.create_take", {"sceneid": 0}, null);
You give it a scene ID, and it creates the take based on that scene. But it's a fairly new command, and all the functionality around it has not really been flushed out.
For instance, you cannot specify a takeID for it. It assigns the next available one.
You can change what context an abs is pointing to by double clicking on it in PanelBuilder Edit mode, and configuring its "openGear or Xpression Datalinq" source. Click on Configure, choose the "select a Device" radio button, and select your XPression.
Once the take item is created, you can access it's fields within the XPression context, using the XPression plugin parameters. For example, is the new takeID is 1000, then you can access it's published fields under:
xprn.publishedfiled.take1000..
You can also access the information about the sequence item using parameters like:
xprm.sequenceitem.take1000.name
xprm.sequenceitem.take1000.sceneid
xprm.sequenceitem.take1000.state
and so on.
This is fairly new functionality, and I don't think anyone has used it for this type of purpose yet.
#DashBoard