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) |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from mcp-llm
Related Tools
- @sammcj/mcp-llm
- @freshtechbro/vibe-coder-mcp
- @ngeojiajun/mcp-code-snippets
- @freshtechbro/vibe-coder-mcp
- @abhishekbhakat/mcp_server_code_assist