list_sheets
Retrieve all sheet names from a Google Spreadsheet using its ID. Results are cached, so refresh the cache when you need current sheet data.
Instructions
List all sheets in a Google Spreadsheet.
Args: spreadsheet_id: The ID of the spreadsheet (found in the URL)
Returns: List of sheet names. Results are cached; call refresh_cache(spreadsheet_id=spreadsheet_id) to invalidate, or refresh_cache() to clear all caches.
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": {
"spreadsheet_id": "<spreadsheet_id>"
},
"name": "list_sheets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |