I would like to then create a javascript for MYACTION that could reference the TEXT sent to drafts from that URL. Is there an object or variable for this already?
(My real end result is I’m trying to figure out a way to do a roundtrip from Drafts to Editorial. Right now my idea is to send the full content of the draft to editorial with the Draft UUID as the first line. Then, when Editorial sends the text back, I’d like the script to grab the first line of the text, which will be the UUID, use that to load that Draft, then replace the text of the draft with the rest of the text sent from Editorial).
The value in the text parameter will be the content of the draft…so in a script draft.content would equal TEXT in your example.
A draft is always in context when an action is performed. Using /runAction a temporary draft is still created and used as the draft object in the context.