generate_code_to_file
Generate code and insert it into a file at a specified line number, with options to replace or add content, supporting multiple programming languages.
Instructions
Generate code and write it directly to a file at a specific line number
Input Schema
Name | Required | Description | Default |
---|---|---|---|
additionalContext | No | Additional context or requirements for the code | |
description | Yes | Description of the code to generate | |
filePath | Yes | Path to the file where the code should be written | |
language | No | Programming language (e.g., JavaScript, Python, TypeScript) | |
lineNumber | Yes | Line number where the code should be inserted (0-based) | |
replaceLines | No | Number of lines to replace (0 for insertion only) |