agloop_get_plan
Retrieve the current plan file contents (plan.yaml or plan.md) to monitor and manage agent tasks and execution within the AgLoop framework.
Instructions
Read the current plan (plan.yaml or plan.md). Returns raw file contents.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/agloop_mcp/server.py:82-88 (handler)The MCP tool handler for "agloop_get_plan", which reads the plan from the StateManager and returns the contents or an error message.
@mcp.tool() def agloop_get_plan() -> str: """Read the current plan (plan.yaml or plan.md). Returns raw file contents.""" plan = _sm().get_plan() if not plan: return json.dumps({"error": "No plan found"}) return plan