list_tables
List every table in a Google Docs tab with its index, size, location, heading, and merged-cell info. The returned table_index enables direct access via get_table or replace_table_row.
Instructions
List every top-level table in a document tab.
Use this tool to discover and address the tables in a tab before calling get_table or replace_table_row — both require a table_index, which this tool assigns in document order.
Returns tables: a list of table_index, rows, columns, start_index, end_index, preceding_heading (the nearest heading above the table, or null if none), first_row, and has_merged_cells — plus doc_id, tab_id, and revision_id.
Errors: TAB_NOT_FOUND – tab_id not in document AUTH_EXPIRED – no valid token
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| tab_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||