{"record":{"id":"ec3fe16bb1dcd01d","repo":"FoundationAgents/OpenManus","slug":"parameter-file-text-is-required-for-command-cre","errorCode":null,"errorMessage":"Parameter `file_text` is required for command: create","messagePattern":"Parameter `file_text` is required for command: create","errorType":"exception","errorClass":"ToolError","httpStatus":null,"severity":"error","filePath":"app/tool/str_replace_editor.py","lineNumber":138,"sourceCode":"        view_range: list[int] | None = None,\n        old_str: str | None = None,\n        new_str: str | None = None,\n        insert_line: int | None = None,\n        **kwargs: Any,\n    ) -> str:\n        \"\"\"Execute a file operation command.\"\"\"\n        # Get the appropriate file operator\n        operator = self._get_operator()\n\n        # Validate path and command combination\n        await self.validate_path(command, Path(path), operator)\n\n        # Execute the appropriate command\n        if command == \"view\":\n            result = await self.view(path, view_range, operator)\n        elif command == \"create\":\n            if file_text is None:\n                raise ToolError(\"Parameter `file_text` is required for command: create\")\n            await operator.write_file(path, file_text)\n            self._file_history[path].append(file_text)\n            result = ToolResult(output=f\"File created successfully at: {path}\")\n        elif command == \"str_replace\":\n            if old_str is None:\n                raise ToolError(\n                    \"Parameter `old_str` is required for command: str_replace\"\n                )\n            result = await self.str_replace(path, old_str, new_str, operator)\n        elif command == \"insert\":\n            if insert_line is None:\n                raise ToolError(\n                    \"Parameter `insert_line` is required for command: insert\"\n                )\n            if new_str is None:\n                raise ToolError(\"Parameter `new_str` is required for command: insert\")\n            result = await self.insert(path, insert_line, new_str, operator)\n        elif command == \"undo_edit\":","sourceCodeStart":120,"sourceCodeEnd":156,"githubUrl":"https://github.com/FoundationAgents/OpenManus/blob/52a13f2a57d8c7f6737eefb02ccf569594d44273/app/tool/str_replace_editor.py#L120-L156","documentation":"Error \"Parameter `file_text` is required for command: create\" thrown in FoundationAgents/OpenManus.","triggerScenarios":"Raised when the `create` command of str_replace_editor is called without the required `file_text` parameter.","commonSituations":"See trigger scenarios.","solutions":["Pass the `file_text` parameter with the initial file contents when using command `create`."],"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-15T22:17:37.221Z"}