Skip to content

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

NameTypeDescription
selected_textstringThe selected text on the page
node_textstringThe text of the node, within which the selection was made.