> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getLassoTitles

> Get lasso-selected titles.

<Note>
  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.
</Note>

```ts theme={null}
static getLassoTitles(): Promise<APIResponse<Title[]>>;
```

**Returns**

* [`APIResponse<Title[]>`](/en/api-reference/supernote-plugin/types/api-response):
  `result` is the [`Title`](/en/api-reference/supernote-plugin/types/title) array.

## Example

```ts wrap theme={null}
import { PluginNoteAPI } from 'sn-plugin-lib';

/**
 * Example: get lasso-selected titles.
 */
export async function exampleGetLassoTitles() {
 const res = await PluginNoteAPI.getLassoTitles();
 if (!res.success) {
 throw new Error(res.error?.message ?? 'getLassoTitles call failed');
 }
 return res.result;
}
```
