Skip to main content

Word Counter Pack

TrustedSandbox optionalv1.0.0MITVerified80

by AgentNode · published 3 months ago · toolpack

Count words, characters, and sentences in any text.

A simple text analysis tool. Zero dependencies.

generic

Quick Start

bash
agentnode install word-counter-pack

Runs in a subprocess with filtered environment by default. Declared permissions are policy-checked, not sandboxed.

Usage

From package
python
from 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

high confidence80/100✔ Verified
smokeReturned valid result
+25/25
testsTests failed
0/15
importAll tools imported successfully
+15/15
installInstalled in 1.8s
+15/15
contractAll contract checks passed
+10/10
determinismConsistent output across runs (normalized)
+5/5
reliability3/3 runs passed
+10/10

Package installs and imports correctly. runtime checks passed.

install1.8s
import68ms
smoke140ms
tests1.2s

This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.

Verified in real_auto mode

Python 3.12.3ffmpegpopplertesseractuv

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

data_cleaningcount_wordstool

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

Sandbox optionalFrom a trusted publisher — runs on the host by default. You can require isolation with sandbox.host_trust_policy.

Declared by the publisher. Checked before execution by the policy gate.

Networknone
Filesystemnone
Code Executionnone
Data Accessinput_only
User Approvalnever

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.

bash
agentnode install word-counter-pack

Files (5)

License

MIT

Stats

Downloads5
Installs1
Versionv1.0.0
Published3/18/2026
Channelstable
Typetoolpack
Entrypointword_counter_pack.tool

Compatibility

Frameworks

generic

Runtime

python

Trust & Security

PublisherTrusted
SignatureNone
ProvenanceNone
Security Issues0

Publisher

A

AgentNode

@agentnode