Word Counter Pack
★Trusted◇Sandbox optionalv1.0.0MIT✔Verified80by AgentNode · published 3 months ago · toolpack
Count words, characters, and sentences in any text.
A simple text analysis tool. Zero dependencies.
Quick Start
agentnode install word-counter-packRuns in a subprocess with filtered environment by default. Declared permissions are policy-checked, not sandboxed.
Usage
From packagefrom word_counter_pack.tool import run
result = run(
text="Artificial intelligence is transforming how developers build software. "
"Modern AI agents can search the web, write code, manage files, and "
"interact with APIs — all autonomously. The key challenge is making "
"these agents reliable enough for production use. That means robust "
"error handling, clear capability boundaries, and predictable behavior "
"under edge cases."
)
print(f"Words: {result['word_count']}")
print(f"Characters: {result['character_count']}")
print(f"Characters (no spaces): {result['character_count_no_spaces']}")
print(f"Sentences: {result['sentence_count']}")
print(f"Paragraphs: {result['paragraph_count']}")
print(f"Average words per sentence: {result['avg_words_per_sentence']:.1f}")
print(f"Estimated reading time: {result['reading_time_minutes']:.1f} min")Runs locally on your machine. No execution data is sent to AgentNode. Permissions are checked before execution. Learn how this works
Verification
Package installs and imports correctly. runtime checks passed.
This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.
Verified in real_auto mode
Last verified 29d ago· Runner v2.0.0
Use this when you need to...
- ›Count words in a blog draft to meet a target word count
- ›Analyze sentence length distribution for readability optimization
- ›Calculate reading time estimates for articles and documentation
- ›Verify character limits for social media posts or meta descriptions
- ›Compare word counts across multiple document versions
README
Version History
Capabilities
Count words, characters, and sentences in text
Input Schema
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"description": "The text to analyze"
}
}
}Output Schema
{
"type": "object",
"properties": {
"words": {
"type": "integer"
},
"sentences": {
"type": "integer"
},
"characters": {
"type": "integer"
}
}
}Permissions
Declared by the publisher. Checked before execution by the policy gate.
Permissions are policy-checked before execution. For trusted and curated packages that run on the host, network and filesystem access are policy-checked but not OS-sandboxed. When runtime isolation is required for untrusted/community code, AgentNode uses sandbox-or-fail-closed if the required container runtime and pinned image are available. Learn more
Privacy
All tool execution happens locally on your machine. AgentNode never receives:
- • Tool inputs or outputs
- • Execution logs
- • Data your agent processes
Only install events and search queries are sent to the registry.
agentnode install word-counter-packFiles (5)
License
MITStats
Compatibility
Frameworks
Runtime
pythonTrust & Security
Publisher
AgentNode
@agentnode