Possible for an action to create an agent?

I understand that action code can not create new notes, but I’m wondering if it can be used to create agents.

Actually, action code can now create notes with create(…), and can create agents with createAgent(…)

This was added in Tinderbox 8.

See createAgent().