/install wc-tool
WC Tool — Word, Line & Character Counter
Multi-file word count utility. Count lines, words, characters (multibyte-aware), and bytes across one or more files with per-file breakdown and grand total. Supports standard input for pipeline use.
Quick Start
# Count everything for a file
wc-tool document.txt
# Count lines only
wc-tool -l script.py
# Count from stdin
cat file.txt | wc-tool -w
Usage
wc-tool [OPTIONS] [FILE...]
cat INPUT | wc-tool [OPTIONS]
Options:
-l, --lines Count lines only
-w, --words Count words only
-c, --bytes Count bytes only
-m, --chars Count characters (multibyte-aware)
-L, --max-line Print length of longest line
--files0-from FILE Read input file list from FILE (null-separated)
--total Show grand total (default with multiple files)
--json Output as structured JSON
Examples
# Full count (lines, words, chars, bytes)
wc-tool README.md
# Lines only (code file size metric)
wc-tool -l src/main.py src/utils.py
# Characters in a file (UTF-8 aware)
wc-tool -m document.txt
# Longest line length
wc-tool -L src/main.py
# Pipe from another command
ls /usr/bin | wc-tool -l
# JSON output for automation
wc-tool -l -w *.py --json
# Multiple files with total
wc-tool *.txt
Features
- 4 modes — lines, words, characters (multibyte), bytes
- Multi-file — process many files, show per-file + total
- Stdin support — pipe input from other commands
- Longest line — detect max line length
- JSON output — structured for scripts
- Null-separated file list — safe file name handling
- Exit code 0/1 — script-friendly
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install wc-tool - After installation, invoke the skill by name or use
/wc-tool - Provide required inputs per the skill's parameter spec and get structured output
What is Wc Tool?
Count lines, words, characters, and bytes in one or more files with per-file and total summary. Use for document statistics, code analysis, and data volume e... It is an AI Agent Skill for Claude Code / OpenClaw, with 17 downloads so far.
How do I install Wc Tool?
Run "/install wc-tool" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Wc Tool free?
Yes, Wc Tool is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Wc Tool support?
Wc Tool is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Wc Tool?
It is built and maintained by BIN (@dinghaibin); the current version is v1.0.0.