Skip to main content
Glama

getTaskStatus

Check the status of a video manipulation task by providing the task ID. Ideal for monitoring progress on clipping, merging, or splitting tasks in Video Clip MCP.

Instructions

获取任务状态

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdYes任务ID

Implementation Reference

  • The main handler function for the getTaskStatus tool, which retrieves the task status from the BatchManager and returns it in the MCP response format.
    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 list of available tools, including name, description, and input schema.
    name: 'getTaskStatus', description: '获取任务状态', inputSchema: { type: 'object', properties: { taskId: { type: 'string', description: '任务ID' } }, required: ['taskId'] } }
  • Core helper method in BatchManager that retrieves the task status by ID from the internal tasks map.
    public getTaskStatus(taskId: string): BatchTask | null { return this.tasks.get(taskId) || null; }
  • Type definition for the input parameters of the getTaskStatus tool (MCPToolParams).
    getTaskStatus: { taskId: string; };
  • Type definition for the output/result of the getTaskStatus tool (MCPToolResults).
    getTaskStatus: BatchTask | null;

Other Tools

Related Tools

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