get_selection
retrieve the current selected text and node in the page.
Arguments
| Name | Type | Description |
|---|---|---|
tab | string | The ID of the tab for which to retrieve the selection. If not provided, the active tab will be used. |
Output
| Name | Type | Description |
|---|---|---|
selected_text | string | The selected text on the page |
node_text | string | The text of the node, within which the selection was made. |