Skip to main content
Version: Next 🚧

API Overview

Use the QuickAdd API when a workflow needs scripted input, file operations, formatting, model calls, or access from another plugin.

If you only need to create a note or append text, start with Template Choices or Capture Choices. Add the API when the workflow needs logic.

Where the API is available​

ContextAccess patternUse it for
Macro user scriptparams.quickAddApiScripted macro steps
Inline scriptthis.quickAddApiSmall transformations inside templates or captures
Other pluginapp.plugins.plugins.quickadd.apiCalling QuickAdd from plugin code
Templater scriptapp.plugins.plugins.quickadd.apiPrompting or running choices from Templater

Common tasks​

TaskMethod familyReference
Ask for text, selections, dates, or grouped inputsUser input methodsQuickAdd API Reference
Run another choice from a scriptChoice executionChoice Execution
Read selected text or clipboard contentUtility moduleUtility Module
Format datesDate moduleDate Module
Call configured AI providersAI moduleAI Module
Read field suggestions from the vaultField suggestions moduleField Suggestions Module
  1. Read the scripting overview if you have not written a QuickAdd script before.
  2. Copy a working pattern from the examples overview.
  3. Use the QuickAdd API reference for exact signatures and edge-case behavior.

Minimal macro script​

module.exports = async ({ quickAddApi }) => {
const title = await quickAddApi.inputPrompt("Book title");
return `# ${title}`;
};

The returned value can be used by later macro steps or inserted through format syntax.