read_sheet
Reads cell values, formulas, and types from an Excel .xlsx sheet and optional range; compact mode omits empty cells and merged-cell children for token-efficient output.
Instructions
Read cell data from a sheet (values, formulas, types). Optionally specify a range like 'A1:C10'. Use compact=true to omit empty cells and merged-cell children for token-efficient output.
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>",
"sheet": "<sheet>"
},
"name": "read_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Cell range to read (e.g. 'A1:C10'). Omit to read all data. | |
| sheet | Yes | Sheet name or 1-based index | |
| compact | No | Omit empty cells and merged-cell children. Reduces output for sheets with many merged cells. | |
| file_path | Yes | Absolute path to the .xlsx file |