Extract text TOC structure
Extract hierarchy, parent-child relations, and heading paths from plain text, model output, or document TOCs.
Deterministic TOC assistant for large-model workflows
SUPTOC is an auxiliary tool for LLM applications. It extracts, detects, validates, and corrects table-of-contents structures by strict human language rules instead of inventing headings that do not exist.
LLM tool call
SUPTOC does not replace the LLM; it gives the LLM a stable, fast, and verifiable TOC tool layer.
Extract hierarchy, parent-child relations, and heading paths from plain text, model output, or document TOCs.
Recognize numeric numbering, Chinese chapters, English Chapter labels, indentation, and mixed styles.
Find skipped numbering, missing levels, duplicate headings, hierarchy drift, and style inconsistency.
Fix numbering and hierarchy by human language rules without inventing headings not present in the input.
Rule-first processing makes it suitable as an LLM function call and tool layer.
Results are constrained by the source text for reliable automated workflows.
Receive text, document TOC, or LLM output.
Parse by language, numbering, indentation, and style rules.
Check skips, missing levels, duplicates, and drift.
Return structured TOC and explainable issue reports.
Let the LLM call SUPTOC for deterministic TOC structure.
Validate hierarchy before ingestion to reduce bad context.
Detect numbering and hierarchy issues automatically.
Batch-check manuals, reports, policies, and course materials.
API
API access requires membership. Each 1,000 CNY level includes 100,000 API calls for LLM apps, editors, and document automation systems.
curl -X POST https://api.suptoc.com/v1/toc/validate-and-correct \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Chapter 1 Overview\n1.1 Product\nChapter 3 API"}'