/install wc-chars-tool
WC Chars Tool — Character Counting Utility
Count characters in text with Unicode awareness. Supports total characters, non-whitespace characters, CJK character detection, and byte-offset reporting. Essential for validating text constraints (SMS, tweets, form fields, database column limits).
Quick Start
# Count characters in a string
wc-chars-tool "Hello, 世界!"
# Count from stdin
echo "Hello World" | wc-chars-tool
# Count characters in a file
wc-chars-tool --file document.txt
Usage
wc-chars-tool [TEXT] [OPTIONS]
wc-chars-tool --file FILE [OPTIONS]
Options:
--file FILE Read from file instead of argument
--bytes Count bytes instead of characters
--no-whitespace Exclude whitespace from count
--cjk-only Count only CJK characters
--graphemes Count grapheme clusters (user-perceived characters)
--json Output as structured JSON
--detailed Show breakdown: total, non-ws, digits, punct, spaces
Examples
# Count total characters
wc-chars-tool "Hello World"
# Count bytes in a UTF-8 string
wc-chars-tool "Hello, 世界!" --bytes
# Count non-whitespace characters
wc-chars-tool "Hello World" --no-whitespace
# Count CJK characters only
wc-chars-tool "Hello 你好 世界 world" --cjk-only
# Detailed breakdown
wc-chars-tool "Hello, 世界! 123" --detailed --json
Features
- Unicode-aware — correctly handles multi-byte characters (CJK, emoji, accents)
- Grapheme clusters — counts user-perceived characters, not just code points
- Multiple modes — total, non-whitespace, CJK, byte count
- Detailed breakdown — digits, punctuation, spaces, letters
- File and stdin input — flexible input sources
- JSON output — for monitoring and script integration
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install wc-chars-tool - After installation, invoke the skill by name or use
/wc-chars-tool - Provide required inputs per the skill's parameter spec and get structured output
What is Wc Chars Tool?
Count characters in text input — total, non-whitespace, CJK, and Unicode-aware character counts. Useful for text analysis, content length limits, and i18n va... It is an AI Agent Skill for Claude Code / OpenClaw, with 17 downloads so far.
How do I install Wc Chars Tool?
Run "/install wc-chars-tool" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Wc Chars Tool free?
Yes, Wc Chars Tool is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Wc Chars Tool support?
Wc Chars Tool is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Wc Chars Tool?
It is built and maintained by BIN (@dinghaibin); the current version is v1.0.0.