text_analyze
Return deterministic text statistics: bytes, characters, words, lines, sentences, estimated_tokens (characters / 4, rounded up), reading_minutes (at 200 words per minute) and a SHA-256 hash of the exact text. Use it to size text against a context or length limit, or to fingerprint it; counts are heuristics, not a model tokenizer. Runs without network access and does not store your input. Input up to 100,000 bytes; larger input is an error.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "text_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to analyze, up to 100 KB. | |
| l402_proof | No | L402 payment proof "<macaroon>:<preimage>". Omit on the first call; an unpaid call returns a 0 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set. |