{"uid":"cap_QstIps9TvmcPTBeFIshxe","slug":"agentshelf-markdown-table-of-contents-generator-a607cf27","name":"AgentShelf Markdown Table of Contents Generator","description":"Call when an agent needs a markdown heading table of contents. No network. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/toc-md first.","url":"https://agentshelf.syntexa.ch/v1/toc-md?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"markdown":{"type":"string","examples":["# Hello\n\n## World\n"],"maxLength":100000,"minLength":1,"description":"Markdown whose ATX headings (# through ######) become a table of contents."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cSTmwLq2brjlPMFFnlmDg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a markdown heading-based table of contents from a provided markdown document, with no network calls required.","exampleAgentPrompt":"Can you generate a markdown table of contents from this document? Here's the markdown: '# Introduction\n## Background\n## Goals\n# Methods\n## Data Collection\n# Results\n# Conclusion'","exampleUseCases":[{"title":"README navigation for open source project","prompt":"Take this README markdown and generate a table of contents with heading links so contributors can quickly jump to each section — here's the full markdown content."},{"title":"Article outline for technical blog post","prompt":"I've written a long technical blog post in markdown. Can you build a table of contents from the headings so readers can see the structure at a glance? Here's the markdown."},{"title":"Documentation index for internal wiki","prompt":"I have a big internal documentation page written in markdown. Please extract all the headings and generate a proper linked table of contents I can paste at the top of the page."}],"resultDescription":"Returns a markdown-formatted table of contents derived from the headings (h1–h6) found in the input markdown, typically as a list of anchor-linked entries mirroring the document's heading hierarchy.","failureModes":["Empty or whitespace-only markdown input returns an error (minLength:1 enforced)","Input exceeding 100,000 characters is rejected","Markdown with no headings may return an empty TOC","Malformed JSON body returns a 400 error","Payment not included or incorrect amount returns a 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, fast, no-LLM table of contents extracted purely from markdown heading syntax. Ideal when you want a reproducible, structured TOC without any AI interpretation or network-dependent processing. Prefer the free sandbox endpoint POST /v1/sandbox/toc-md first if available; use 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:11.290Z","isFirstParty":false,"canonicalSlug":"agentshelf-markdown-table-of-contents-generator-a607cf27"}