Skip to main content
Glama

getTaskStatus

Check the status of video processing tasks in the Video Clip MCP server to monitor clip, merge, or split operations.

Instructions

获取任务状态

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdYes任务ID

Implementation Reference

  • MCP tool handler for getTaskStatus, which delegates to batchManager.getTaskStatus and formats the response.
    private async handleGetTaskStatus(args: MCPToolParams['getTaskStatus']) { const result = this.batchManager.getTaskStatus(args.taskId); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • Registration of the getTaskStatus tool in the MCP server, including name, description, and input schema.
    { name: 'getTaskStatus', description: '获取任务状态', inputSchema: { type: 'object', properties: { taskId: { type: 'string', description: '任务ID' } }, required: ['taskId'] } }
  • Core implementation of getTaskStatus in BatchManager, retrieving task from internal map.
    /** * 获取任务状态 */ public getTaskStatus(taskId: string): BatchTask | null { return this.tasks.get(taskId) || null; }
  • TypeScript interface defining input parameters for getTaskStatus tool.
    getTaskStatus: { taskId: string; };
  • TypeScript interface defining output type for getTaskStatus tool.
    getTaskStatus: BatchTask | null;

Latest Blog Posts

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/pickstar-2002/video-clip-mcp'

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