When to Use It
- Discover all sheets in a workbook before processing
- Get sheet names and IDs for dynamic workflows
- Analyze workbook structure and organization
- Validate sheet existence before operations
- Build workflows that work with multiple sheets
- Audit and manage large workbooks with many tabs
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
| Spreadsheet | Text | Yes | Google Sheets spreadsheet URL or ID |
Spreadsheet Input Options
URL Format:Output
Returns detailed information about all sheets in the workbook:Output Fields:
| Field | Description |
|---|---|
| spreadsheet_id | Unique Google Sheets spreadsheet ID |
| spreadsheet_title | Title of the workbook |
| total_sheets | Number of sheets in the workbook |
| sheets | Array of sheet details |
Sheet Details:
| Field | Description |
|---|---|
| sheet_id | Unique numerical ID for the sheet |
| sheet_name | Display name of the sheet tab |
| index | Position of the sheet (0-based) |
| row_count | Maximum number of rows |
| column_count | Maximum number of columns |
| is_hidden | Whether the sheet is hidden from view |
| tab_color | RGB color of the sheet tab (if set) |
Credit Cost
- Cost per run: 1 credit
Common Workflows
Dynamic Sheet Processing:Use Cases
Sheet Discovery
Find specific sheets by pattern:Workbook Validation
Ensure required sheets exist:Dynamic Processing
Process all data sheets:Organization Audit
Analyze workbook structure:Tips
Sheet Identification:- Use sheet_id for programmatic operations (more reliable)
- Use sheet_name for user-friendly workflows
- Check is_hidden to skip hidden sheets in processing
- Use index to understand sheet order
- Always list sheets first in multi-sheet workflows
- Cache sheet list if processing multiple operations on same workbook
- Filter sheets based on naming patterns or properties
- Handle empty workbooks gracefully (check total_sheets > 0)
- Quick operation - lists metadata only, doesn’t read sheet content
- Use before expensive operations to validate targets
- Combine with conditional logic to process only relevant sheets

