sharepoint_excel
Search and read Excel sheet content from SharePoint or OneDrive to locate matching cells or retrieve specific ranges, with frozen header rows included for context.
Instructions
ALWAYS start by reading 'A1:Z5' to understand column structure (required for both modes). Two modes: 1) Search mode (query parameter) finds cells containing text and returns locations with optional row data. 2) Read mode (sheet + cell_range) retrieves specific sections. Key parameters: - include_frozen_rows (default: true): Auto-includes frozen header rows even if outside specified range. frozen_rows = header row count - include_cell_styles (default: false): Adds background colors and sizes (20% more tokens) - use for color-coded data only - expand_axis_range (default: false): When frozen_rows=0, auto-expands ranges to include row 1/column A for headers - include_row_data (default: false): Search mode - returns entire matched rows (headers excluded). Best for <200 matches. Recommended workflow: 1. Read 'A1:Z5' for headers (NOT 'A1:Z50') - MANDATORY 2. Search with query to locate data 3. Read specific range if needed (frozen headers auto-included) 4. If frozen_rows=0 and context unclear, retry with expand_axis_range=true. Response: rows (value + coordinate), sheet info (dimensions, frozen_rows/cols, freeze_panes/merged_ranges).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "sharepoint_excel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| sheet | No | ||
| file_path | Yes | ||
| cell_range | No | ||
| include_row_data | No | ||
| expand_axis_range | No | ||
| include_cell_styles | No | ||
| include_frozen_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |