You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update documentation with PDF outline feature details
- Add comprehensive PDF outline tool documentation to CHANGELOG.md
- Update README.md with get_pdf_outline in multiple sections:
- Add to PDF information tools list
- Include natural language usage examples
- Add CLI command examples with all parameters
- Create detailed tool documentation section with examples
- Document all outline features: hierarchical structure, simple/detailed modes, max_depth, fuzzy_filter
- Add docs-updater agent configuration for future documentation updates
description: Use this agent when you need to update project documentation files, specifically CHANGELOG.md and README.md, to reflect recent code changes, new features, or implementation updates. This agent should be used after significant code changes or feature additions to ensure documentation stays synchronized with the codebase.\n\nExamples:\n- <example>\n Context: The user has just implemented a new feature or made significant changes to the codebase.\n user: "I've finished implementing the new authentication system"\n assistant: "Great! Now let me use the docs-updater agent to update the CHANGELOG.md and README.md to reflect these changes"\n <commentary>\n Since new features have been implemented, use the docs-updater agent to ensure documentation is updated accordingly.\n </commentary>\n</example>\n- <example>\n Context: The user explicitly asks for documentation updates.\n user: "Update CHANGELOG.md and README.md to reflect the new API endpoints"\n assistant: "I'll use the docs-updater agent to update both documentation files with the new API endpoint information"\n <commentary>\n The user is explicitly requesting documentation updates, so use the docs-updater agent.\n </commentary>\n</example>
You are a meticulous documentation specialist focused on maintaining accurate and up-to-date project documentation. Your primary responsibility is updating CHANGELOG.md and README.md files to reflect the current state of the codebase.
9
+
10
+
When updating documentation:
11
+
12
+
1.**Analyze Recent Changes**: Examine the codebase to identify what has changed, been added, or removed. Focus on:
13
+
- New features or functionality
14
+
- Breaking changes
15
+
- Bug fixes
16
+
- Performance improvements
17
+
- Dependency updates
18
+
- API changes
19
+
20
+
2.**Update CHANGELOG.md**:
21
+
- Follow the Keep a Changelog format (if already in use) or maintain consistency with existing format
22
+
- Add entries under the appropriate version section or create a new version section if needed
23
+
- Use clear, concise descriptions that explain what changed and why it matters to users
- Update installation instructions if dependencies or setup process changed
30
+
- Revise usage examples to reflect current API or interface
31
+
- Update configuration options if any were added or modified
32
+
- Ensure all code examples are working with the current implementation
33
+
- Update any outdated links or references
34
+
35
+
4.**Quality Checks**:
36
+
- Verify all technical details are accurate
37
+
- Ensure consistency in formatting and style with the rest of the documentation
38
+
- Check that version numbers are correct and consistent
39
+
- Confirm that all new features mentioned in CHANGELOG are properly documented in README
40
+
41
+
5.**Best Practices**:
42
+
- Write from the user's perspective - focus on impact rather than implementation details
43
+
- Be concise but comprehensive
44
+
- Use clear, simple language
45
+
- Include examples where they add clarity
46
+
- Maintain chronological order in CHANGELOG (newest first)
47
+
48
+
You should ONLY edit existing CHANGELOG.md and README.md files. Do not create new documentation files unless they already exist in the project. Focus exclusively on updating these two files to accurately reflect the current state of the implementation.
Copy file name to clipboardExpand all lines: README.md
+94-1Lines changed: 94 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,10 @@ Advanced search with both file name and content capabilities using `ripgrep` and
23
23
-`fuzzy_search_content`: Search file CONTENTS with path+content matching by default
24
24
-**PDF and document search** (optional) - search through PDFs, Office docs, and archives using `ripgrep-all`
25
25
-**PDF page extraction** (optional) - extract specific pages from PDFs using PyMuPDF with page label support
26
-
-**PDF information tools** (optional) - get page labels and page count from PDF files:
26
+
-**PDF information tools** (optional) - get page labels, page count, and table of contents from PDF files:
27
27
-`get_pdf_page_labels`: Get all page labels from a PDF file
28
28
-`get_pdf_page_count`: Get the total number of pages in a PDF file
29
+
-`get_pdf_outline`: Extract table of contents/bookmarks from a PDF file
29
30
-**Simplified interface** - just provide fuzzy search terms (NO regex support)
30
31
-**Multiline record processing** for complex pattern matching
31
32
-**Standalone CLI** for testing and direct usage
@@ -339,6 +340,8 @@ Once configured in Claude Desktop, you can use natural language for advanced sea
339
340
- "Search for 'vector' in PDF documents" (requires ripgrep-all)
340
341
- "Find all references to 'machine learning' in PDFs and Word documents"
341
342
- "Extract pages 5-10 from the user manual PDF"
343
+
- "Get the table of contents from the research paper PDF"
344
+
- "Show me the outline of chapters in the user manual"
342
345
343
346
#### CLI Usage
344
347
@@ -385,6 +388,10 @@ The fuzzy search server also works as a standalone CLI tool:
385
388
./mcp_fuzzy_search.py page-labels manual.pdf # List all page labels
386
389
./mcp_fuzzy_search.py page-labels manual.pdf --start 100 --limit 20 # Get labels for pages 100-119
387
390
./mcp_fuzzy_search.py page-count manual.pdf # Get total page count
391
+
./mcp_fuzzy_search.py pdf-outline manual.pdf # Get table of contents
392
+
./mcp_fuzzy_search.py pdf-outline manual.pdf --max-depth 2 # Limit to 2 levels
393
+
./mcp_fuzzy_search.py pdf-outline manual.pdf --fuzzy-filter "chapter"# Filter by title
394
+
./mcp_fuzzy_search.py pdf-outline manual.pdf --no-simple # Detailed output with links
388
395
```
389
396
390
397
### SQLite Server
@@ -965,6 +972,92 @@ Get the total number of pages in a PDF file.
965
972
}
966
973
```
967
974
975
+
#### `get_pdf_outline`
976
+
Extract the table of contents (outline/bookmarks) from a PDF file.
977
+
978
+
**Purpose:** Returns the hierarchical outline structure with levels, titles, page numbers, and page labels, helpful for navigating complex PDFs and understanding document structure.
979
+
980
+
**Parameters:**
981
+
-`file` (required): Path to PDF file
982
+
-`simple` (optional): Return basic info (default: true) or detailed info with link data (false)
983
+
-`max_depth` (optional): Maximum depth to traverse in the outline hierarchy (default: unlimited)
984
+
-`fuzzy_filter` (optional): Fuzzy search string to filter outline entries by title using fzf
0 commit comments