Skip to content

API Overview

This page maps the QuickAdd API: where you can call it from, and which method family handles each kind of task. For exact signatures and edge cases, follow the links into the full reference.

Reach for the 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.

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
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.
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.