list_tasks
Retrieve recent AI media generation tasks with optional status filtering to monitor processing, completed, pending, or failed operations.
Instructions
List recent generation tasks with optional status filter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Filter by task status | |
| limit | No | Maximum number of tasks to return |
Implementation Reference
- mcp/vap_mcp_proxy.py:191-218 (handler)The handler function `handle_tools_call` delegates the "list_tasks" tool execution to the upstream MCP API via the `make_request` helper function, as it is not explicitly intercepted in the local `handle_tools_call` logic.
def handle_tools_call(params: Dict) -> Dict: """ Handle tools/call request. Directive #240: Special handlers for video tools. """ tool_name = params.get("name", "") arguments = params.get("arguments", {}) # ═══════════════════════════════════════════════════════════════════ # VIDEO TOOL HANDLERS (Directive #240) # ═══════════════════════════════════════════════════════════════════ if tool_name == "generate_video": return _handle_generate_video(arguments) if tool_name == "estimate_video_cost": return _handle_estimate_video_cost(arguments) if tool_name == "get_task": return _handle_get_task(arguments) # Default: forward to MCP API response = make_request("/tools/call", { "name": tool_name, "arguments": arguments }) return response