graph_list_worksheets
List the worksheets in an Excel workbook through Microsoft Graph, with paging support for large workbooks. Use it to discover sheet names and IDs before reading or writing cells.
Instructions
List the worksheets in an Excel workbook.
Excel workbook APIs need the Files.ReadWrite permission and only work on .xlsx files.
Args: item_id: The workbook file ID. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). drive_id: Drive ID to act on. Empty targets your own OneDrive.
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": {
"item_id": "<item_id>"
},
"name": "graph_list_worksheets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| drive_id | No | ||
| next_link | No | ||
| include_next_link | No |