get_selection
Retrieve the text currently selected on a page plus its surrounding passage for context, using a tab ID to target the correct browser tab.
Instructions
Get the text the user currently has selected on the page, with the surrounding passage for context.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tabId": "<tabId>"
},
"name": "get_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID, from tabs_list or tab_create |