Install
openclaw skills install wps-officeAutomate WPS Office tasks including document creation, opening, format conversion, batch processing, and managing WPS 365 smart forms, docs, sheets, flowchar...
openclaw skills install wps-officeWPS Office 自动化操作 Skill,支持本地文档操作和 WPS 365 云端协作功能。
pyautogui 进行键盘输入模拟,可能会与当前活动窗口交互app_id 和 app_secret,建议:
scripts/main.py 源码确认功能符合预期app_id 和 app_secretpip install requests pyautogui pyperclip Pillow
编辑 config.json:
{
"default_save_path": "~/Documents/WPS",
"wps_path": "",
"app_id": "",
"app_secret": ""
}
仅在使用 WPS 365 功能时需要:
# 创建 Word 文档
python scripts/main.py create type=writer filename=报告.docx
# Markdown 转 Word
python scripts/main.py convert file=文档.md format=docx
# 批量转换
python scripts/main.py batch_convert dir=~/Documents format=pdf
# 智能表单
python scripts/main.py form_list
# 智能文档
python scripts/main.py doc_list
# 多维表格
python scripts/main.py sheet_list
python scripts/main.py sheet_views sheet_id=sheet_001
# 流程图
python scripts/main.py flow_list
# 思维导图
python scripts/main.py mind_list
subprocess 调用 WPS Office 应用程序pyautogui 模拟键盘输入(创建带内容的文档)POST /auth/v1/token/forms/v1/*/docs/v1/*/sheets/v1/*/flows/v1/*/minds/v1/*