{
  "format": "delx/intent-card/v1",
  "id": "text-chunk-plan-api",
  "intent": "Text Chunk Plan for an agent workflow",
  "title": "Text Chunk Plan API for agents",
  "description": "Plan overlapping character chunks for RAG without storing the text — call when planning overlapping character chunks for RAG prep. Use on text/URLs the agent already holds—adjacent to high-volume extract demand, never advertised as general web or X search. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are advisory; the caller owns authorization and production controls.",
  "keywords": [
    "Text Chunk Plan API",
    "Text Chunk Plan for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/text-chunk-plan-api",
  "machine_url": "https://commerce.delx.ai/intents/text-chunk-plan-api.json",
  "recommendation": {
    "tool_name": "util_text_chunk_plan",
    "service_name": "Delx Text Chunk Plan",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/text-chunk-plan",
    "price_usdc": "0.003",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "text": {
          "description": "UTF-8 text to encode, chunk, index, or analyze (caller-supplied only).",
          "type": "string"
        },
        "chunk_size": {
          "description": "Characters per chunk (1–20000); example uses small sizes for demos.",
          "type": "number"
        },
        "overlap": {
          "description": "Characters of overlap between consecutive chunks (0 .. chunk_size-1).",
          "type": "number"
        }
      },
      "required": [
        "text",
        "chunk_size"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "text": "abcdefghij",
      "chunk_size": 4,
      "overlap": 1
    },
    "example_output": {
      "schema": "delx/util-text-chunk-plan/v1",
      "text_chars": 10,
      "chunk_size": 4,
      "overlap": 1,
      "chunk_count": 3,
      "chunks": [
        {
          "index": 0,
          "start": 0,
          "end": 4,
          "chars": 4
        },
        {
          "index": 1,
          "start": 3,
          "end": 7,
          "chars": 4
        },
        {
          "index": 2,
          "start": 6,
          "end": 10,
          "chars": 4
        }
      ],
      "truncated": false
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/text-chunk-plan -m POST -H 'x-delx-source: intent-card-text-chunk-plan-api' --max-amount 0.003 -b '{\"text\":\"abcdefghij\",\"chunk_size\":4,\"overlap\":1}'",
      "max_amount_usdc": "0.003"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-text-chunk-plan-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/text-chunk-plan"
  }
}
