Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Spreadsheet IDStringYesThe 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).
CellStringYesOne cell in A1 notation, optionally with the sheet name, e.g. Sheet1!B2.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.
FormatStringNohexhex gives #RRGGBB; name gives the nearest of black, white, grey, red, orange, yellow, green, cyan, blue, purple, magenta, pink or brown.

Outputs​

OutputTypeWhat it is
background_colorStringFill colour, #FFFFFF (white) when none is set.
font_colorStringText colour, #000000 (black) when none is set.