{"uid":"cap_ASTFCtrVlbKmtUnv7Gofh","slug":"agenttools-text-chunker-cb284d80","name":"AgentTools Text Chunker","description":"Split text into retrieval-friendly chunks with a token budget and sentence-aware boundaries. Overlap between consecutive chunks preserves context across splits — the standard preparation step before embedding. Use this when an agent needs to rAG-ready chunks with token budgets and overlap.","url":"https://agenttools-hub.vercel.app/api/v1/dev/text-chunker?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text"},"targetTokens":{"type":"number","description":"Target tokens per chunk"},"overlapTokens":{"type":"number","description":"Overlap tokens"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ndGXon4ygVYLEKMg9sA6y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Splits a block of text into sentence-aware, token-budgeted chunks with configurable overlap for RAG pipeline preparation","exampleAgentPrompt":"Can you chunk this article into segments of about 256 tokens each with a 32-token overlap so I can embed them for RAG? Here's the text: [paste text here]","exampleUseCases":[{"title":"RAG pipeline document preparation","prompt":"I have a long research paper I want to embed into my vector database — can you split it into 512-token chunks with 64 tokens of overlap so each chunk stays sentence-aware?"},{"title":"Chunking FAQ for chatbot knowledge base","prompt":"Take this FAQ document and break it into retrieval-friendly chunks of 200 tokens with a 20-token overlap so my chatbot can find the right answer snippets."},{"title":"Preprocessing news articles for semantic search","prompt":"I need to chunk this news article into 128-token pieces with 16 tokens of overlap before I embed it — can you do that and give me all the chunks?"}],"resultDescription":"Returns an array of text chunks, each respecting sentence boundaries and fitting within the specified token budget, with consecutive chunks sharing an overlapping window of tokens to preserve context across splits.","failureModes":["Missing required 'text' query parameter returns an error","Non-numeric values for targetTokens or overlapTokens may cause parsing errors","Extremely short text may result in a single chunk regardless of token budget","Very large text inputs may hit request size limits","Overlap larger than targetTokens may cause undefined or degenerate chunking behavior"],"whenToPreferThis":"Choose this endpoint when you need sentence-aware, token-budgeted chunking with configurable overlap as a preprocessing step before embedding text into a vector store or RAG pipeline. It is ideal when you need deterministic, reproducible splits with context preservation across chunk boundaries, and you do not want to implement chunking logic yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:50.733Z","isFirstParty":false,"canonicalSlug":"agenttools-text-chunker-cb284d80"}