{"record":{"id":"646b72aa6269ef47","repo":"FoundationAgents/OpenManus","slug":"parameter-step-index-is-required-for-command-ma","errorCode":null,"errorMessage":"Parameter `step_index` is required for command: mark_step","messagePattern":"Parameter `step_index` is required for command: mark_step","errorType":"exception","errorClass":"ToolError","httpStatus":null,"severity":"error","filePath":"app/tool/planning.py","lineNumber":277,"sourceCode":"        plan_id: Optional[str],\n        step_index: Optional[int],\n        step_status: Optional[str],\n        step_notes: Optional[str],\n    ) -> ToolResult:\n        \"\"\"Mark a step with a specific status and optional notes.\"\"\"\n        if not plan_id:\n            # If no plan_id is provided, use the current active plan\n            if not self._current_plan_id:\n                raise ToolError(\n                    \"No active plan. Please specify a plan_id or set an active plan.\"\n                )\n            plan_id = self._current_plan_id\n\n        if plan_id not in self.plans:\n            raise ToolError(f\"No plan found with ID: {plan_id}\")\n\n        if step_index is None:\n            raise ToolError(\"Parameter `step_index` is required for command: mark_step\")\n\n        plan = self.plans[plan_id]\n\n        if step_index < 0 or step_index >= len(plan[\"steps\"]):\n            raise ToolError(\n                f\"Invalid step_index: {step_index}. Valid indices range from 0 to {len(plan['steps'])-1}.\"\n            )\n\n        if step_status and step_status not in [\n            \"not_started\",\n            \"in_progress\",\n            \"completed\",\n            \"blocked\",\n        ]:\n            raise ToolError(\n                f\"Invalid step_status: {step_status}. Valid statuses are: not_started, in_progress, completed, blocked\"\n            )\n","sourceCodeStart":259,"sourceCodeEnd":295,"githubUrl":"https://github.com/FoundationAgents/OpenManus/blob/52a13f2a57d8c7f6737eefb02ccf569594d44273/app/tool/planning.py#L259-L295","documentation":"Error \"Parameter `step_index` is required for command: mark_step\" thrown in FoundationAgents/OpenManus.","triggerScenarios":"Raised when the `mark_step` command is invoked on the planning tool without supplying the required `step_index` parameter.","commonSituations":"See trigger scenarios.","solutions":["Pass the `step_index` parameter when calling the planning tool with command `mark_step`.","Use a zero-based integer index into the plan's steps list; call `get` or `list` first to see the valid indices."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"52a13f2a57d8c7f6737eefb02ccf569594d44273","analyzedAt":"2026-08-15T02:33:49.993Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}