agloop_set_phase
Transition the AgLoop agent framework to a new operational phase. Use this tool to manage agent states and execution workflows in VS Code Copilot.
Instructions
Transition to a new phase. COORDINATOR ONLY.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phase | Yes |
Implementation Reference
- src/agloop_mcp/server.py:196-201 (handler)The implementation of the `agloop_set_phase` tool, which acts as a handler. It transitions the state phase using the `StateManager`.
def agloop_set_phase(phase: str) -> str: """Transition to a new phase. COORDINATOR ONLY.""" result = _sm().set_phase(phase) if not result: return json.dumps({"error": "Failed to set phase"}) return json.dumps(result, indent=2)