1.1 KiB
1.1 KiB
Tool Usage Guidelines Index
To prevent common errors when using tools, refer to these detailed guidelines:
File Operations
- File Operations Guidelines - Guidelines for read_file, write_to_file, and list_files
Code Editing
- Code Editing Guidelines - Guidelines for apply_diff
- Search and Replace Guidelines - Guidelines for search_and_replace
- Insert Content Guidelines - Guidelines for insert_content
Common Error Prevention
- apply_diff Error Prevention - Specific guidelines to prevent errors with apply_diff
Key Points to Remember:
- Always include all required parameters for each tool
- Verify file existence before attempting modifications
- For apply_diff, never include literal diff markers in code examples
- For search_and_replace, always include both search and replace parameters
- For write_to_file, always include the line_count parameter
- For insert_content, always include valid start_line and content in operations array