list_web_tasks
View all active and completed web browsing tasks in your current session to track multiple concurrent automation operations and monitor progress.
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:369-399 (handler)The main handler function for the list_web_tasks tool. It is registered via the @mcp.tool() decorator. Retrieves all tasks from the task_manager, computes active count, and returns a summary dictionary.@mcp.tool() 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 }