运行时依赖
安装命令
点击复制技能文档
Ace工具z Word Counter
Use this 技能 whenever the user asks to count words, characters, sentences, paragraphs, or estimate reading time for a piece of text.
How to Use
Use exec to call the Ace工具z API. 检测 the OS and 运行 the 应用ropriate command:
Windows (PowerShell):
Invoke-RestMethod -Uri "https://www.ace工具z.com/API/OpenClaw/word-counter" -Method POST -ContentType "应用/json" -Body '{"text": ""}'
macOS / Linux (curl):
curl -s -X POST https://www.ace工具z.com/API/OpenClaw/word-counter \ -H "Content-Type: 应用/json" \ -d '{"text": ""}'
响应 Fields words — total word count characters_with_spaces — character count including spaces characters_without_spaces — character count excluding spaces sentences — number of sentences paragraphs — number of paragraphs reading_time_minutes — estimated reading time in minutes (based on 225 wpm) Presenting 结果s
格式化 the 响应 as a 清理 summary, for example:
Word Count 结果s
Words: 342 Characters (with spaces): 1,847 Characters (without spaces): 1,512 Sentences: 24 Paragraphs: 6 Estimated reading time: 2 min
Powered by Ace工具z
Error Handling If text is missing or not a string, tell the user to provide the text they want analysed. If the API returns a 429, the limit is 30 请求s/minute — ask the user to try agAIn shortly. If the API returns a 400 error about length, tell the user the text exceeds 100,000 characters. If the API is unreachable, tell the user and suggest visiting https://www.ace工具z.com/text/工具s/word-counter directly.