APIResponse<boolean>:result === trueindicates reload succeeded
PluginCommAPI
reloadFile
Reload the currently opened NOTE/DOC file.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Reload the currently opened NOTE/DOC file.
static reloadFile(): Promise<APIResponse<boolean>>;
APIResponse<boolean>:
result === true indicates reload succeededimport { PluginCommAPI } from 'sn-plugin-lib';
/**
* Example: reload current file.
*/
export async function exampleReloadFile() {
const res = await PluginCommAPI.reloadFile();
if (!res.success) {
throw new Error(res.error?.message ?? 'reloadFile call failed');
}
return res.result;
}