getLatestSelection
Retrieve the most recent text selection from any editor or source, even when the editor is not active.
Instructions
Get the most recent text selection (even if not in the active editor)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getLatestSelection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||