write
Write content to a file, creating parent directories automatically. Overwrites any existing content.
Instructions
Write content to a file, creating it if it doesn't exist. Parent directories are created automatically (mkdir -p). Overwrites existing file content entirely. Errors: EISDIR if the path is an existing directory, EINVAL if writing to root.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file (e.g. /notes/todo.md) | |
| content | Yes | Full content to write (max 10 MB per call) | |
| store | No | Named persistent store for cross-session access. Sessions are ephemeral (one per MCP connection); named stores persist indefinitely. Omit to use the session's own namespace. |