get_next_chunk
Retrieve the next subtitle chunk for sequential translation processing after conversation detection, enabling chunk-by-chunk handling of large SRT files.
Instructions
š¦ CHUNK RETRIEVAL FOR TRANSLATION WORKFLOW š¦
šÆ PURPOSE: Retrieves the next chunk from memory for sequential processing. Use this after detect_conversations with storeInMemory=true.
š HOW IT WORKS:
Automatically tracks which chunk to return next
Returns actual chunk data with subtitle text content
Advances to next chunk automatically
Returns null when all chunks processed
š„ PARAMETERS:
sessionId: Session ID from detect_conversations response
š¤ RETURNS:
chunk: Complete chunk data with subtitle text (or null if done)
chunkIndex: Current chunk number (0-based)
totalChunks: Total chunks available
hasMore: Boolean indicating if more chunks exist
message: Status message
š” USAGE PATTERN:
Call detect_conversations with storeInMemory=true
Get sessionId from response
Call get_next_chunk repeatedly until hasMore=false
Process each chunk for translation
Use translate_srt() on individual chunks
š EXAMPLE: {"sessionId": "srt-session-123456789"}
ā ļø NOTE:
Each call advances to the next chunk automatically
Store sessionId from detect_conversations response
Use this for chunk-by-chunk processing of large files
Input Schema
Name | Required | Description | Default |
---|---|---|---|
sessionId | Yes | Session ID from detect_conversations with storeInMemory=true |