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

    Function chatThreadRead

    • Parse a note's chat thread into structured messages.

      Reads the chat block delimited by ## Chat: <title> and parses each ### <role> · <timestamp> sub-heading into a ChatThreadMessage. Non-chat content (anything outside the chat block) is ignored. Returns thread_title: null and an empty messages array if the note has no chat block.

      Parameters

      • vault: Vault

        The vault.

      • args: { note_path: string }

        note_path is the vault-relative path to the thread note.

      Returns Promise<ChatThreadReadResult>

      A ChatThreadReadResult with parsed messages in chronological order.

      If note_path resolves outside the vault.

      If the note doesn't exist.

      const thread = await chatThreadRead(vault, {
      note_path: "Threads/Research-2026-05-08.md"
      });
      for (const msg of thread.messages) {
      console.log(`[${msg.timestamp}] ${msg.role}: ${msg.content}`);
      }