{"uid":"cap_SK1QruP3JGauE6G2pSRK2","slug":"signalharness-markdown-outline-extractor-d2ea851b","name":"SignalHarness Markdown Outline Extractor","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/markdown_outline_extract/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":65536,"minLength":1},"markdown":{"type":"string","maxLength":65536,"minLength":1},"maximumHeadingDepth":{"type":"integer","maximum":6,"minimum":1},"includeSectionRanges":{"type":"boolean"}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"title":"example","headings":[{"end":0,"text":"Example caller-supplied content.","level":1,"start":0,"anchor":"example","ordinal":0,"sectionEnd":0,"sectionStart":0,"parentOrdinal":-1}],"warnings":["Verify the caller-supplied data before relying on this result."],"headingCount":0},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"markdown_outline_extract","executionId":"example-execution","startedAtMs":0,"amountAtomic":"5000","resultSha256":"b190eb5a7af63f7c83c3ac8ba3eff252ceebe13556fe09aae25d112fc8ba8219","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VY_DpZGvKvlrYhLqm-TQx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses markdown or plain text and extracts a structured outline of headings, titles, and section hierarchy up to a configurable depth.","exampleAgentPrompt":"Can you extract the heading outline from this markdown document, going no deeper than heading level 3, and also include the section ranges for each heading?","exampleUseCases":[{"title":"README navigation structure extraction","prompt":"I have a large README.md file — can you pull out all the headings up to level 2 so I can build a quick navigation summary from it?"},{"title":"Technical doc table of contents","prompt":"Extract the full heading hierarchy from this technical specification document, up to heading depth 4, and include section ranges so I know which lines each section covers."},{"title":"Article structure review","prompt":"Can you parse this markdown blog post and give me its outline — just the title and top-level headings — so I can see how the content is structured before I edit it?"}],"resultDescription":"Returns a JSON object containing the document title, an array of heading objects (with text, level, and optionally section line ranges), a total heading count, and any parsing warnings encountered. All results are wrapped in a standard SignalHarness receipt envelope with execution metadata, payment confirmation, and a SHA-256 result hash.","failureModes":["Empty or whitespace-only input returns a result with zero headings and possible warnings","Text exceeding 65,536 characters is rejected with a validation error","Invalid maximumHeadingDepth values outside 1–6 are rejected","Malformed markdown may produce incomplete heading lists with warnings in the warnings array","Payment failure or insufficient USDC balance results in a 402 error before execution"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, structured extraction of heading hierarchy from markdown or plain text documents — especially when you need heading counts, section ranges, or depth-limited outlines for navigation, summarization, or document analysis pipelines. It is well-suited for agent workflows that process documentation, README files, or long-form articles and need structured section metadata without full document parsing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:56:15.793Z","isFirstParty":false}