getDocument
Get the current SWML document as a plain JavaScript object. The returned
structure follows the standard SWML format with version and sections keys.
Functionally identical to renderSwml(); getDocument() exists
as a Python-compat alias. Use renderDocument() when you
need a JSON string rather than an object.
Returns
Record<string, unknown> — The current SWML document. Structure: