{"uid":"cap_QXxqjXHm8MMwH-PeLjO-G","slug":"agentshelf-text-chunker-2e7d481b","name":"AgentShelf Text Chunker","description":"Call when an agent needs text chunked by characters or tokens with overlap. No network. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/chunk-text first.","url":"https://agentshelf.syntexa.ch/v1/chunk-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"integer","maximum":20000,"minimum":1,"examples":[4],"description":"Chunk size in characters or tokens. Default 1000 characters or 200 tokens."},"text":{"type":"string","examples":["abcdefghij"],"maxLength":100000,"minLength":1,"description":"Text to split into chunks."},"unit":{"enum":["chars","tokens"],"type":"string","examples":["chars"],"description":"chars or tokens. Default chars."},"overlap":{"type":"integer","maximum":5000,"minimum":0,"examples":[0],"description":"Overlap between chunks. Must be smaller than size. Default 0."}}},"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_jHibRfJOFARCT7gbs8lOO","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 text string into overlapping chunks by character count or token count, returning an array of text segments suitable for downstream processing.","exampleAgentPrompt":"Split this 5,000-word article into chunks of 512 tokens each with an overlap of 50 tokens so I can embed them for a RAG pipeline.","exampleUseCases":[{"title":"RAG pipeline document ingestion","prompt":"Take this research paper text and chunk it into 512-token segments with 64-token overlap so I can embed each chunk for my retrieval-augmented generation system."},{"title":"Sliding window context for LLM","prompt":"I need to process this long transcript through an LLM with a small context window — can you break it into 2000-character chunks with 200 characters of overlap so nothing gets lost at the boundaries?"},{"title":"Vector database preparation","prompt":"Chunk this support documentation text into 300-token pieces with a 30-token overlap so I can store the embeddings in my vector database for semantic search."}],"resultDescription":"Returns an array of text chunks derived from the input, where each chunk is a substring of the original text up to the specified size in characters or tokens, with consecutive chunks sharing an overlap region of the specified length.","failureModes":["Text exceeds 100,000 character limit — request rejected","Chunk size above 20,000 or below 1 — validation error","Overlap above 5,000 — validation error","Overlap equal to or larger than chunk size — may cause infinite loop or error","Missing required fields (text, size, unit) — 400 Bad Request","Payment not provided or insufficient — 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need deterministic, reproducible text chunking by character count or token count with configurable overlap, without deploying your own chunking logic. Ideal for RAG pipeline preparation, embedding batch jobs, and sliding-window text processing. Prefer the free sandbox endpoint POST /v1/sandbox/chunk-text first; fall back to this paid endpoint when the sandbox is unavailable or rate-limited.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:46:05.884Z","isFirstParty":false,"canonicalSlug":"agentshelf-text-chunker-2e7d481b"}