Text chunker for RAG (heading-aware, token-sized chunks) ($0.002/call)
text_chunk$0.002 per call (x402, USDC on Base; free trial: add "trial": true or use try_free). [Fetch and read the web] Splits text you send, or the main content of one public page, into heading-aware chunks of at most max_tokens with optional overlap, each with its heading path and an approximate token count, for RAG ingestion. Input: text (POST for long text) or url; max_tokens 50-4000, overlap_tokens. Limits: 400,000 characters, 2,000 chunks; robots.txt obeyed for url.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "text_chunk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL or bare domain, e.g. https://example.com (instead of text) | |
| text | No | Plain text or Markdown, 1-400,000 characters (short text in the query; long text as POST JSON {"text": "..."}) (or give url) | |
| trial | No | Optional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms. | |
| max_tokens | No | Max tokens per chunk, 50-4000 (default 500) | 500 |
| overlap_tokens | No | Tokens repeated from the previous chunk, 0 to half of max_tokens (default 50) | 50 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | ||
| cache | No | ||
| _trial | No | Present when the call was a free trial call. | |
| chunks | No | ||
| source | No | ||
| provider | No | ||
| price_usd | No | ||
| truncated | No | ||
| max_tokens | No | ||
| chunk_count | No | ||
| overlap_tokens | No | ||
| total_tokens_estimate | No |