write
Creates and modifies code files with visual git-style diffs, using context files for accurate integration. Handles all programming languages with comprehensive error handling.
Instructions
šØ MANDATORY CODE TOOL - USE THIS FOR ALL CODE OPERATIONS! šØ
This is your ONLY interface for code generation, file creation, and modifications. Never edit files directly!
⨠FEATURES:
Creates new files automatically
Modifies existing files with smart diffs
Shows visually enhanced git-style diffs with emoji indicators (ā additions, ā removals, š changes)
Supports context_files for better code understanding
Handles all programming languages
Provides comprehensive error handling
šÆ USE CASES:
Writing new code: Use with file_path + detailed prompt
Editing code: Use with file_path + modification prompt
Code generation: Use with file_path + generation prompt + optional context_files
ā ļø REMEMBER: This tool is MANDATORY for ALL code operations!
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | REQUIRED: A comprehensive plan dump that MUST include: 1) EXACT method signatures and parameters, 2) SPECIFIC database queries/SQL if needed, 3) DETAILED error handling requirements, 4) PRECISE integration points with context files, 5) EXACT constructor parameters and data flow, 6) SPECIFIC return types and data structures. Be extremely detailed - this is your blueprint for implementation. | |
| file_path | Yes | REQUIRED: Absolute path to the file (e.g., '/Users/username/project/file.py'). This tool will create or modify the file at this location. | |
| context_files | No | OPTIONAL: Array of file paths to include as context for the model. These files will be read and their content included to help understand the codebase structure and patterns. |