Apply Template
apply_templateCreate a new note from an existing template, substituting Obsidian's date, time, and title variables. Use overwrite to replace an existing note.
Instructions
Create a new note from an existing template note (path, title, or alias), substituting Obsidian's core Templates plugin variables: {{date}}, {{date:FORMAT}}, {{time}}, {{time:FORMAT}}, {{title}}. FORMAT supports YYYY/YY/MM/DD/HH/mm/ss tokens. Templater-only syntax (<% %>) is not evaluated and is left as literal text. Fails if the target note already exists unless overwrite is set.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"template": "<template>",
"path": "<path>"
},
"name": "apply_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path for the new note, e.g. 'Daily/2026-01-01' (`.md` is added automatically). | |
| template | Yes | Template note's path, title, or alias. | |
| overwrite | No | Replace the note if it already exists (default false). | |
| frontmatter | No | Extra frontmatter fields to merge in on top of the rendered template's own frontmatter. |