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
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | 任务ID |
Implementation Reference
- src/mcp/server.ts:440-450 (handler)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), }, ], }; }
- src/mcp/server.ts:326-338 (registration)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'] } }
- src/core/batch-manager.ts:65-67 (helper)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; }
- src/types/mcp.ts:44-46 (schema)Type definition for the input parameters of the getTaskStatus tool (MCPToolParams).getTaskStatus: { taskId: string; };
- src/types/mcp.ts:68-68 (schema)Type definition for the output/result of the getTaskStatus tool (MCPToolResults).getTaskStatus: BatchTask | null;