Skip to main content
Glama

Code MCP Server

by block

write_file

Write content to a specified file path using the Model Context Protocol, enabling AI agents to interact with VS Code for file management tasks.

Instructions

Write content to a file

Input Schema

NameRequiredDescriptionDefault
contentYesContent to write to the file
pathYesPath 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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/block/vscode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server