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
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | 任务ID |
Implementation Reference
- src/mcp/server.ts:440-450 (handler)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), }, ], }; }
- src/mcp/server.ts:325-338 (registration)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'] } }
- src/core/batch-manager.ts:62-67 (helper)Core implementation of getTaskStatus in BatchManager, retrieving task from internal map./** * 获取任务状态 */ public getTaskStatus(taskId: string): BatchTask | null { return this.tasks.get(taskId) || null; }
- src/types/mcp.ts:44-46 (schema)TypeScript interface defining input parameters for getTaskStatus tool.getTaskStatus: { taskId: string; };
- src/types/mcp.ts:68-68 (schema)TypeScript interface defining output type for getTaskStatus tool.getTaskStatus: BatchTask | null;