Fill content and animate in one call
singular_update_and_animateAtomically set a sub-composition's payload and animation state together to avoid a flash of stale content.
Instructions
Atomically set a sub-composition's payload AND its animation state in a single PATCH, so the template is filled and taken to air together (avoids a flash of stale content that a separate fill-then-animate can cause).
Args: app/appToken; subCompositionName | subCompositionId; payload (control-node id → value); state (In|Out|Out1|Out2); response_format. Returns { success, subComposition, state }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Alias of a registered app instance (see register_app / list_apps). Preferred over a raw token. | |
| state | Yes | Animation state: 'In' takes on air; 'Out'/'Out1'/'Out2' take off air. | |
| payload | Yes | Map of control-node id → value to set before/with the transition. | |
| appToken | No | Raw Singular control-app token for a one-off/unregistered instance. If both 'app' and 'appToken' are given, 'appToken' wins. | |
| response_format | No | Output format: 'markdown' (human-readable) or 'json' (machine-readable). Default 'markdown'. | markdown |
| subCompositionId | No | Target by id. | |
| subCompositionName | No | Target by name. |