list_web_tasks
Track and monitor all active and completed web browsing automation tasks in your current session. View task summaries to manage multiple concurrent operations.
Instructions
List all web browsing tasks, including active and completed ones.
Shows a summary of all tasks in the current session. Useful for tracking
multiple concurrent browsing operations.
Returns:
Dictionary containing:
- ok: Boolean indicating success
- tasks: Array of task status objects (compact format)
- count: Total number of tasks
- active_count: Number of currently running tasks
Examples:
- list_web_tasks()
Note: Returns compact task summaries. Use check_web_task(task_id) for details.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.py:370-399 (handler)The main handler function for the 'list_web_tasks' tool. It is decorated with @mcp.tool() for automatic registration in FastMCP. The function lists all web tasks by calling task_manager.list_tasks(), computes active count, and returns a summary dictionary.async def list_web_tasks() -> dict[str, Any]: """ List all web browsing tasks, including active and completed ones. Shows a summary of all tasks in the current session. Useful for tracking multiple concurrent browsing operations. Returns: Dictionary containing: - ok: Boolean indicating success - tasks: Array of task status objects (compact format) - count: Total number of tasks - active_count: Number of currently running tasks Examples: - list_web_tasks() Note: Returns compact task summaries. Use check_web_task(task_id) for details. """ logger.info("Listing all web tasks") tasks = task_manager.list_tasks() active_count = sum(1 for t in tasks if t.get("status") in ["pending", "running"]) return { "ok": True, "tasks": tasks, "count": len(tasks), "active_count": active_count }