write_file
Write content to files and create directories as needed within the MCP File Compaction server, which optimizes Claude's context window by summarizing inactive files to reduce costs.
Instructions
Write content to a file, creating it if it doesn't exist. The file becomes the active file.
Creates parent directories if needed.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to write | |
| content | Yes | Content to write to the file |