write_file
Save or update file content by specifying the file path and text, enabling AI agents to interact with VS Code via the Code MCP Server.
Instructions
Write content to a file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | Content to write to the file | |
path | Yes | Path to the file to write |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"description": "Content to write to the file",
"type": "string"
},
"path": {
"description": "Path to the file to write",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
}