get_paragraph_range
Extract a range of paragraphs from a Word document to read specific sections or get context around search results, without loading the entire file.
Instructions
Get a specific range of paragraphs from a Word document.
Use after search_document to get more context around matches, or to read a specific section without loading the full document.
Args: path: Path to the .docx file start_index: First paragraph index (0-based, inclusive) end_index: Last paragraph index (0-based, inclusive) include_annotations: Include comments/track changes in range (default: False)
Returns: Dictionary containing: - start_index: Actual start (may be clamped) - end_index: Actual end (may be clamped) - total_paragraphs: Total paragraphs in document - paragraphs: List with index, text, style - comments: Comments in range (if include_annotations=True) - track_changes: Track changes in range (if include_annotations=True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| end_index | Yes | ||
| start_index | Yes | ||
| include_annotations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||