vaultnotes

v0.1.0
io.github.CloudCorpRecords/vaultnotes Checked 1 day ago Published 1 month ago

List, read, search, and edit markdown notes in a local vault directory.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_files_in_vault

List all files in the vault.

list_files_in_dir

List all files in a specific directory of the vault.

ParameterTypeDescription
dirpath *stringVault-relative path to the directory to list files under, recursively.

get_file_contents

Get the contents of a file in the vault.

ParameterTypeDescription
filepath *stringVault-relative path to the file to read as UTF-8 text.

append_content

Append content to a file in the vault, creating the file if it does not exist.

ParameterTypeDescription
content *stringText content to append to the end of the file.
filepath *stringVault-relative path to the file to append to, creating the file and any parent directories if it does not exist.

patch_content

Replace the first occurrence of a target text in a vault file with new content.

ParameterTypeDescription
content *stringReplacement text to substitute for the first occurrence of the target text.
filepath *stringVault-relative path to the file to patch.
target *stringExact target text to find in the file; only its first occurrence is replaced, and the patch fails if it is not present.

delete_file

Delete a file from the vault.

ParameterTypeDescription
target_filepath *stringVault-relative path to the file to delete; directories are refused.