Okular: mouse selection
get_selectionRetrieve text selected with your mouse or clipboard from the current PDF page, including document path and line numbers.
Instructions
Text the user has selected with the mouse, with page and lines.
Text currently selected with the mouse ('primary') or on the clipboard ('clipboard'), with the document path, page and line numbers when it is found on the page Okular shows (line numbers match page_text and context).
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": "get_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | primary |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||