Skip to content

Tool examples

Each tab shows a prompt, the MCP tool request, its response, and the resulting file operation.

MCP client - MCPVault connected
Connected
You

Add the equation for energy-mass equivalence to my physics notes

AI
MCPVault: Using patch_note...

Request:
{
  "path": "Physics/Relativity.md",
  "oldString": "## Energy and Mass",
  "newString": "## Energy and Mass\n\nE = mc²"
}

Response:
{
  "success": true,
  "path": "Physics/Relativity.md",
  "message": "Successfully replaced 1 occurrence",
  "matchCount": 1
}

Added Einstein's equation to your notes.
Only the matching section was changed.

Technical details

patch_note replaces an exact text match
Surrounding content and frontmatter remain unchanged
replaceAll defaults to false and returns an error when multiple matches exist

Use these examples after connecting MCPVault to your client.

Installation