Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get titles from a NOTE file.
static getTitles(NOTEPath: string, pageList: number[]): Promise<APIResponse<Title[]>>;
NOTEPath
string
pageList
number[]
0
APIResponse<Title[]>
result
Title
import { PluginFileAPI } from 'sn-plugin-lib'; /** * Example: get titles of specified pages. */ export async function exampleGetTitles() { const NOTEPath = '/storage/emulated/0/Note/demo.note'; const res = await PluginFileAPI.getTitles(NOTEPath, [0, 1, 2]); if (!res.success) { throw new Error(res.error?.message ?? 'getTitles call failed'); } return res.result; }