Autofit columns
Resize columns to fit their content.
Command in the Google Workspace toolkit · id ooa.google/sheets_autofit_columns · 6 inputs (2 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | Yes | Google OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Spreadsheet ID | String | Yes | The spreadsheet: its id, its full link (https://docs.google.com/spreadsheets/d/...), or its exact name in Drive (a name made only of letters, digits, - and _ is read as an id; use the link for such names). | |
| Sheet | String | No | Sheet (tab) name; the first sheet when empty. | |
| From column | String | No | First column (letter or number); all columns when empty. | |
| To column | String | No | Last column (letter or number); the first column when only that is given. | |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. |