add_subtitle_cue
Appends a subtitle cue to a USubtitleAssetUserData asset, building it from supplied text and timing data and deduplicating identical cues.
Instructions
Appends a subtitle cue (FSubtitleAssetData) to a USubtitleAssetUserData. Builds the cue from the supplied text/timing/priority/type/comment, dedupes by FSubtitleAssetData::operator== (text, duration, start_offset, priority, subtitle_type), and either appends or returns the existing cue's index with already_existed: true.
Returns: { asset_path: string, cue_index: int, text: string, success: bool, already_existed: bool, cue_count: int, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The subtitle text (required). | |
| comment | No | Editor-only author comment (default ""). | |
| duration | No | Display duration in seconds (default 3). | |
| priority | No | Subtitle priority; higher values play instead of lower (default 1). | |
| asset_path | Yes | Content path of the USubtitleAssetUserData asset. | |
| start_offset | No | Initial delay in seconds before the subtitle is visible (default 0). | |
| duration_type | No | "use_sound_duration" or "use_duration_property" (default "use_duration_property"). | |
| subtitle_type | No | "subtitle", "closed_caption", or "audio_description" (default "subtitle"). |