agloop_update_task
Update task status and result logs in AgLoop's agent framework. Automatically sets timestamps for coordinator users managing agent workflows.
Instructions
Update a task's status and/or result log. Auto-sets timestamps. COORDINATOR ONLY.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| status | No | ||
| result_log | No |
Implementation Reference
- src/agloop_mcp/server.py:137-152 (handler)The implementation of the `agloop_update_task` tool, which updates a task's status and result log, is defined as a tool handler decorated with `@mcp.tool()`.
@mcp.tool() def agloop_update_task( task_id: str, status: str = "", result_log: str = "", ) -> str: """Update a task's status and/or result log. Auto-sets timestamps. COORDINATOR ONLY.""" task = _sm().update_task( task_id, status=status or None, result_log=result_log or None, ) if not task: return json.dumps({"error": f"Failed to update task '{task_id}'"}) return json.dumps(asdict(task), indent=2)