files_set_dropdown
Adds a dropdown (list data-validation) to a range: each cell gets a dropdown of allowed values. Provide either 'values' (an explicit list of strings) or 'source_range' (an A1 range whose cell values are the options) — exactly one. strict (default true): reject entries not in the list; false: warn but allow. Pass 'id' (from files_validations) to replace that rule; omit to create. Requires edit permission; does not change existing values. Signature: files_set_dropdown(file_uuid, range, values?|source_range?, sheet?, id?, strict?).
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": {
"file_uuid": "<file_uuid>",
"range": "<range>"
},
"name": "files_set_dropdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Existing validation id to replace; omit to create a new one. | |
| range | Yes | A1 range to add the dropdown to, e.g. 'B2:B100'. | |
| sheet | No | Sheet name (defaults to the first sheet). | |
| strict | No | Reject values not in the list (default true); false warns but allows. | |
| values | No | Explicit list of allowed options. Use this OR source_range. | |
| file_uuid | Yes | ||
| source_range | No | A1 range whose cell values are the options. Use this OR values. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| file_uuid | Yes | ||
| sequence_number | Yes |