The vault. Must allow writes (vault.writeEnabled is true).
path is the vault-relative target. content is the body
(frontmatter prepended automatically). frontmatter is the optional YAML.
overwrite defaults to false — set true to replace an existing note.
{ path, mtime, bytes } — resolved vault-relative path, ISO
mtime, and UTF-8 byte size of the written file.
Create a new note (or overwrite an existing one) with optional YAML frontmatter.
Frontmatter is serialized via gray-matter (js-yaml underneath), so values like dates / lists / pipe-containing strings round-trip cleanly without the hand-rolled-YAML corruption the old composer suffered. WRITE TOOL — only registered when the server is started with
--enable-write.