Get cell colour
Read the fill and text colour of one cell as #RRGGBB or as the nearest basic colour name.
Command in the Google Workspace toolkit · id ooa.google/sheets_get_cell_color · 5 inputs (3 required), 2 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). | |
| Cell | String | Yes | One cell in A1 notation, optionally with the sheet name, e.g. Sheet1!B2. | |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. | |
| Format | String | No | hex | hex gives #RRGGBB; name gives the nearest of black, white, grey, red, orange, yellow, green, cyan, blue, purple, magenta, pink or brown. |
Outputs
| Output | Type | What it is |
|---|---|---|
| background_color | String | Fill colour, #FFFFFF (white) when none is set. |
| font_color | String | Text colour, #000000 (black) when none is set. |