agloop_get_logs
Retrieve execution logs from the AgLoop agent framework with filtering options for agent, task, or result limits to monitor and analyze workflow performance.
Instructions
Read execution log entries. Supports filtering by agent, task, and limiting results.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| agent | No | ||
| task_id | No |
Implementation Reference
- src/agloop_mcp/server.py:68-79 (handler)The 'agloop_get_logs' tool is defined as an MCP tool in 'src/agloop_mcp/server.py'. It acts as a handler that retrieves log entries from the 'StateManager'.
def agloop_get_logs( limit: int = 0, agent: str = "", task_id: str = "", ) -> str: """Read execution log entries. Supports filtering by agent, task, and limiting results.""" entries = _sm().get_logs( limit=limit or None, agent=agent or None, task_id=task_id or None, ) return json.dumps([asdict(e) for e in entries], indent=2)