wps_wpp_open
Open a local or cloud-synced presentation file in WPS. Ensure the file is not already open and is in an accessible directory to prevent blocking or permission errors.
Instructions
打开本地或云同步的演示文稿。注意:若该文件已在 WPS 中打开(同名同路径),WPS 会弹出应用级原生提示框阻塞整个进程(跨文字/表格/演示所有宿主的命令都会卡住直到用户手动点掉),对象模型层无法拦截或感知。调用前建议先确认目标文件未处于打开状态。另外 WPS 是沙盒应用,只被系统授权访问 ~/Downloads、曾用 Finder/shell "open" 命令打开过的文件、或已保存过的路径;打开未授权路径会被内核拦截,本工具已做校验会明确抛错(不会假成功),遇到此错误请改用 ~/Downloads 下的文件,或先用 shell "open" 命令打开一次目标文件再重试。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 文件绝对路径 |