wps_word_save
Save the current Word document. On first save, provide a path (e.g., ~/Downloads) to prevent the native save dialog from freezing WPS.
Instructions
保存当前文档。若该文档从未保存过(如 wps_word_new 新建后从未存过),必须传 path 参数;否则直接保存会触发原生"另存为"对话框并卡死整个 WPS 进程(已在对象模型层检测规避,会直接报错而不是卡死)。path 同样受 WPS 沙盒限制,建议用 ~/Downloads。
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_word_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | 首次保存时的目标路径(已保存过的文档可省略) |