office_inspect
Inspect document structure and metadata across Excel, Word, and PowerPoint files. Returns requested details such as sheets, tables, comments, slides, sections, or shapes.
Instructions
Inspect document structure and metadata.
Auto-detects document format and returns requested structural information.
Replaces: excel_list_sheets, excel_list_tables, excel_list_named_ranges, excel_list_merged_cells, excel_get_comments, excel_get_change_log, word_list_sections, word_list_tables, word_check_tracking, pptx_list_slides, pptx_list_shapes, pptx_list_masters, pptx_get_notes, pptx_get_comments, pptx_get_hidden_slides
Examples: # List all sheets in Excel workbook office_inspect(file_path="data.xlsx", what="sheets")
# List tables in Excel
office_inspect(file_path="data.xlsx", what="tables")
# Get comments from Excel
office_inspect(file_path="data.xlsx", what="comments")
# List slides in PowerPoint
office_inspect(file_path="deck.pptx", what="slides")
# List sections in Word
office_inspect(file_path="report.docx", what="sections")
# Get shapes on a specific slide
office_inspect(file_path="deck.pptx", what="shapes", target="3")Args: file_path: Path to the document what: What to inspect: - "structure": Overview of document structure - "sheets": Excel sheets list - "slides": PowerPoint slides list - "sections": Word sections list - "tables": Tables in document - "named_ranges": Excel named ranges - "merged_cells": Excel merged cell regions - "comments": Comments/notes in document - "tracking": Track changes status (Word) - "shapes": Shapes on a slide (PowerPoint) - "masters": Slide masters (PowerPoint) target: Optional target for scoped inspection: - Sheet name for Excel - Slide number for PowerPoint
Returns: Dictionary with inspection results
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the document | |
| what | No | What to inspect | |
| target | No | Optional target for scoped inspection |