append_sheet_row
Appends a row directly below the last populated row in a Google Sheet tab, avoiding blank gaps and misplacement from auto-detection. Use it to add data to the bottom of a sheet reliably.
Instructions
Append a single row directly below a tab's last populated row.
Placement is deterministic: the tool reads the tab, takes the row after
the last one holding any value, and writes there starting at column A.
It does not use the Sheets API's table auto-detection, which misplaced
rows on real trackers (blank gap rows, a blank first cell, tab titles
with spaces). If the grid is full it is grown first. To write anywhere
other than the bottom, use update_sheet_range or insert_sheet_rows.
sheet_id is the target spreadsheet's ID (the long token in its URL,
.../spreadsheets/d/<sheet_id>/edit); it is required, so confirm which
sheet to write to per call rather than assuming a default. values is
the ordered list of cell values for the new row — read the header row
first so this lines up with the existing columns. value_input_option
USER_ENTERED parses dates/numbers/formulas like typing; RAW stores text
verbatim. Returns the range that was written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Sheet1 | |
| values | Yes | ||
| sheet_id | Yes | ||
| value_input_option | No | USER_ENTERED |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |