Đọc dữ liệu từ Google Sheet
sheets_readRead data from a specified range in a Google Sheet and return it as a two-dimensional array.
Instructions
Đọc giá trị 1 vùng (range) trong Google Sheet, trả về dạng mảng 2 chiều (hàng x cột).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spreadsheet_id": "<spreadsheet_id>",
"range": "<range>"
},
"name": "sheets_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | Range theo A1 notation, ví dụ "Sheet1!A1:D10". Có thể chỉ ghi tên sheet (vd "Sheet1") để lấy/ghi cả sheet. | |
| 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. |