← ClaudeAtlas

template-executelisted

Execute a Templater template, optionally writing the rendered output to a new file. Arguments are exposed to the template via tp.mcpTools.prompt("key") (directly under tp, NOT under tp.user — easy footgun). EN triggers: "render the X template", "run the daily template", "execute Templates/X.md with arg1=v1", "use template X to create Y", "preview template X". FR triggers : "rends le template X", "exécute le template daily", "exécute Templates/X.md avec arg1=v1", "utilise le template X pour créer Y", "prévisualise le template X". Example / Exemple: EN: "render Templates/Trade.md with ticker=AAPL and create Trades/AAPL.md" FR: "rends Templates/Trade.md avec ticker=AAPL et crée Trades/AAPL.md"
tboome33/obsidian-mcp-router · ★ 1 · AI & Automation · score 72
Install: claude install-skill tboome33/obsidian-mcp-router
# template-execute Call the obsidian-router `execute_template` MCP tool with arguments parsed from $ARGUMENTS. ## Arguments **Required**: - `name` — path to the template file in the vault (e.g. `Templates/Daily.md`). **Optional**: - `vault` — omit for default. - `arguments` — key/value object exposed inside the template via `tp.mcpTools.prompt("key")`. Note: directly under `tp`, NOT under `tp.user`. - `createFile` — if true, save the rendered output to `targetPath`. - `targetPath` — path where to save (required when `createFile: true`). ## Argument parsing from $ARGUMENTS - bare path → `name` only, no `createFile` (preview mode) - `name=X arguments={"k":"v"} createFile=true targetPath=Y` - conversational: *"execute Templates/Trade.md with ticker AAPL and create file Trades/AAPL.md"* → infer the structure ## Pre-requisites The target vault must have the `templater-obsidian` plugin enabled. If the tool returns 503 with "Templater plugin is not available", surface that clearly. ## Footgun — `tp.mcpTools` is NOT under `tp.user` The `obsidian-mcp-router-bridge` plugin (which exposes `/templates/execute`) monkey-patches Templater so `tp.mcpTools.prompt("key")` returns whatever you put in the `arguments` map. This is **directly under `tp`**, not under `tp.user` (which is the convention for Templater user scripts) — easy footgun. When writing a template that will be invoked via this skill, prompt arguments like: ``` <% tp.mcpTools.prompt("ticker") %> ``` NOT: ``` <% tp.