Skip to main content
Glama

SRT Translation MCP Server

by omd0

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:

  1. Call detect_conversations with storeInMemory=true

  2. Get sessionId from response

  3. Call get_next_chunk repeatedly until hasMore=false

  4. Process each chunk for translation

  5. 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

NameRequiredDescriptionDefault
sessionIdYesSession ID from detect_conversations with storeInMemory=true

Input Schema (JSON Schema)

{ "properties": { "sessionId": { "description": "Session ID from detect_conversations with storeInMemory=true", "type": "string" } }, "required": [ "sessionId" ], "type": "object" }

Other Tools from SRT Translation MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/omd0/srt-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server