FoundationAgents/OpenManus · error · ToolError
Parameter `plan_id` is required for command: delete
Error message
Parameter `plan_id` is required for command: delete
What it means
Error "Parameter `plan_id` is required for command: delete" thrown in FoundationAgents/OpenManus.
Source
Thrown at app/tool/planning.py:309
]:
raise ToolError(
f"Invalid step_status: {step_status}. Valid statuses are: not_started, in_progress, completed, blocked"
)
if step_status:
plan["step_statuses"][step_index] = step_status
if step_notes:
plan["step_notes"][step_index] = step_notes
return ToolResult(
output=f"Step {step_index} updated in plan '{plan_id}'.\n\n{self._format_plan(plan)}"
)
def _delete_plan(self, plan_id: Optional[str]) -> ToolResult:
"""Delete a plan."""
if not plan_id:
raise ToolError("Parameter `plan_id` is required for command: delete")
if plan_id not in self.plans:
raise ToolError(f"No plan found with ID: {plan_id}")
del self.plans[plan_id]
# If the deleted plan was the active plan, clear the active plan
if self._current_plan_id == plan_id:
self._current_plan_id = None
return ToolResult(output=f"Plan '{plan_id}' has been deleted.")
def _format_plan(self, plan: Dict) -> str:
"""Format a plan for display."""
output = f"Plan: {plan['title']} (ID: {plan['plan_id']})\n"
output += "=" * len(output) + "\n\n"
# Calculate progress statisticsView on GitHub (pinned to 52a13f2a57)
Solutions
- Pass the `plan_id` parameter when calling the planning tool with command `delete`.
- Call `list` first to find the ID of the plan you want to delete.
When it happens
Trigger: Raised when the `delete` command is invoked on the planning tool without providing the required `plan_id` parameter.
Common situations: See trigger scenarios.
AI-assisted analysis of FoundationAgents/OpenManus@52a13f2a57 (2026-08-15).
Data as JSON: /api/errors/0ea24746dfbb8bde.
Report an issue: GitHub.