enquire-mcp API reference - v3.9.0-rc.4
    Preparing search index...

    Function getOpenQuestions

    • Surface unresolved threads — Open question: / Q: / TODO? / ?? markers across the vault.

      Karpathy and ML PKM workflows use these as deferred-thinking markers. This tool returns every such line with source path, context heading, and age_days for staleness ranking. Sorted oldest-first so aging questions surface for the agent to nudge the user about.

      Scans parsed.body (frontmatter excluded) so YAML lines containing "Q:"-ish tokens don't pollute results. The default matcher is case-insensitive and accepts list-bullets / quote / heading prefixes before the marker. Override pattern for a custom regex.

      Parameters

      • vault: Vault

        The vault.

      • args: { folder?: string; limit?: number; pattern?: string }

        All optional. folder restricts the scan. limit defaults to 100. pattern overrides the default matcher regex.

      Returns Promise<OpenQuestion[]>

      Sorted OpenQuestion[] (oldest-first by age_days).

      If folder resolves outside the vault.

      const qs = await getOpenQuestions(vault, { folder: "Reading", limit: 30 });
      for (const q of qs.slice(0, 5)) {
      console.log(`${q.source_path}:${q.line} [${q.age_days}d ago] ${q.question}`);
      }