Ghi đè dữ liệu vào Google Sheet
sheets_writeOverwrite a specific range in a Google Sheet with new values, replacing old content entirely.
Instructions
Ghi đè giá trị vào 1 range cụ thể. Dữ liệu cũ trong range sẽ bị thay thế hoàn toàn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | Range theo A1 notation, ví dụ "Sheet1!A1:C3". Có thể chỉ ghi tên sheet (vd "Sheet1") để lấy/ghi cả sheet. | |
| values | Yes | Mảng 2 chiều, mỗi mảng con là 1 hàng. Ví dụ: [["Tên","Tuổi"],["Đạt",30]] | |
| spreadsheet_id | Yes | ID của Google Sheet — lấy từ URL (docs.google.com/spreadsheets/d/<ID>/edit) hoặc dùng tool drive_list_spreadsheets để tìm theo tên. | |
| value_input_option | No | USER_ENTERED: Sheet tự parse như khi anh gõ tay (công thức, ngày tháng...). RAW: giữ nguyên string. | USER_ENTERED |