← Back to tools
View AGENTS.md for toc
toc
Generate a table of contents from comments in a file
Description
toc generates a table of contents from the comments of a file. It parses comment headers and creates a structured TOC that can be inserted back into the file or output separately.
AI Summary
Generate a table of contents from comment headers in source files
Capabilities
- + Parse comment headers in files
- + Generate structured table of contents
- + Support various comment styles
Use When
- → When generating a table of contents from file comments
- → When documenting code structure