{"uid":"cap_ZR4QdjQ9gUvNmWio3tCd5","slug":"delx-markdown-heading-index-2425b7fa","name":"Delx Markdown Heading Index","description":"Index markdown ATX headings from caller-supplied text only — call when indexing ATX headings in caller-supplied markdown. 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.…","url":"https://api.delx.ai/api/v1/x402/markdown-heading-index","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"UTF-8 text to encode, chunk, index, or analyze (caller-supplied only)."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-markdown-heading-index/v1","headings":[{"level":1,"title":"Title"},{"level":2,"title":"Section"}],"truncated":false,"heading_count":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UXRcw4hvb6zyxIG45xrRW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses and indexes ATX-style markdown headings (# H1, ## H2, etc.) from caller-supplied text, returning a structured JSON list of headings with levels and positions","exampleAgentPrompt":"Can you index all the ATX headings in this markdown text and give me a structured list of each heading with its level and position? Here's the content: '# Introduction\\n## Background\\n### Prior Work\\n## Methods'","exampleUseCases":[{"title":"Table of contents generation","prompt":"I have this markdown document and I want to auto-generate a table of contents — can you extract all the ATX headings with their levels from this text so I can build the TOC? Here's the markdown: '# Overview\\n## Installation\\n### Prerequisites\\n## Usage\\n### Examples\\n## Contributing'"},{"title":"Document structure validation","prompt":"Can you pull out all the headings from this markdown I already have and tell me their hierarchy levels, so I can check whether the document structure is well-organized? The text starts with '# Project Readme\\n## Getting Started\\n#### Skipped Level\\n## Advanced'"},{"title":"Section-aware RAG chunking prep","prompt":"Before I chunk this markdown for RAG, I need to know where all the section boundaries are — can you index all the ATX headings and their positions in this text so I can split on them intelligently?"}],"resultDescription":"A deterministic, machine-readable JSON array of ATX headings found in the input text, each entry including the heading level (1–6), the heading text content, and its position or order in the document — suitable for building tables of contents, validating structure, or guiding downstream chunking logic.","failureModes":["Empty or missing 'text' field returns an empty heading list or validation error","Non-markdown plain text with no '#' characters returns an empty index","Setext-style headings (underline syntax) are not extracted since only ATX style is supported","Very large text inputs may hit size limits","Malformed UTF-8 encoding may cause parsing errors"],"whenToPreferThis":"Choose this endpoint when you already hold a markdown document or text string and need a fast, stateless, deterministic extraction of its ATX heading structure — no network access, no upstream calls, no data retention. Prefer it over a general-purpose LLM extraction when you need reliable, machine-readable JSON output at low cost ($0.003) and deterministic behavior. Not suitable for fetching remote documents, searching the web, or processing setext-style markdown headings.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:56:44.763Z","isFirstParty":false}