You must create a lasso selection before calling this API; otherwise the call fails.Recommended to call this API from the plugin UI entered via a lasso toolbar button.
APIResponse<TextBox[]>:resultis theTextBoxarray.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get lasso-selected TextBox elements.
static getLassoText(): Promise<APIResponse<TextBox[]>>;
APIResponse<TextBox[]>:
result is the TextBox array.import { PluginNoteAPI } from 'sn-plugin-lib';
/**
* Example: get lasso-selected TextBox elements.
*/
export async function exampleGetLassoText() {
const res = await PluginNoteAPI.getLassoText();
if (!res.success) {
throw new Error(res.error?.message ?? 'getLassoText call failed');
}
return res.result;
}