wps_common_get_selected_text
Read the currently selected text in the active WPS document. Works for Word, Excel, and PPT to access user-selected content.
Instructions
获取当前文档中选中的文本内容。
使用场景:
"读取我选中的内容"
"获取当前选区的文字"
"看看我选了什么"
特点:
返回当前选区的纯文本内容
适用于Word、Excel、PPT
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": "wps_common_get_selected_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||