agloop_list_tasks
Retrieve all tasks from AgLoop agent framework with optional filtering by status or dependencies to monitor and manage workflow execution.
Instructions
List all tasks with optional status filter. Returns array of task objects.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ||
| depends_on | No |
Implementation Reference
- src/agloop_mcp/server.py:57-64 (handler)Implementation of the agloop_list_tasks tool. It uses the StateManager to list tasks and returns them as a JSON string.
@mcp.tool() def agloop_list_tasks(status: str = "", depends_on: str = "") -> str: """List all tasks with optional status filter. Returns array of task objects.""" tasks = _sm().list_tasks( status=status or None, depends_on=depends_on or None, ) return json.dumps([asdict(t) for t in tasks], indent=2)