-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Summary
The create_file tool in Janito is failing to create files with a missing positional argument error, despite receiving all required parameters.
Environment Details
• Platform: Linux
• Environment: /usr/bin/zsh [TERM=xterm-256color]
• Tool: Janito create_file function
• Error Type: Missing required positional argument
• Provider: Moonshot
Error Message
CreateFileTool.run() missing 1 required positional argument: 'content'
Steps to Reproduce
1 Attempt to create a CSS formatting rules file:
create_file(path="css-style-guide/03-formatting-rules.md", content="# Formatting Rules\n\n## General Formatting\n... [truncated for brevity] ...")
2 Observe the failure:
• Tool reports missing content parameter
• File is not created
• Error suggests the function signature is incorrect
3 Verify parameters:
• Confirmed path parameter is provided
• Confirmed content parameter is provided as string
• Error persists across multiple attempts
Root Cause Analysis
The error message indicates a mismatch between the expected function signature and the actual call. Despite the documentation showing content as a required parameter, the internal implementation appears to be missing this parameter in its method signature.
Impact
• Cannot create new files using the Janito tool
• Blocks documentation and code generation workflows
• Prevents completion of CSS style guide creation
Workaround
Currently no known workaround exists as this appears to be a fundamental tool implementation issue rather than usage error.
Additional Context
This issue occurred while attempting to create documentation files for a CSS style guide project. The same error pattern has been observed across multiple file creation attempts with different content lengths and formats.
Prompt
Create a CSS style guide file