Add Dropdown Validation
add_dropdown_validationRestrict an Excel cell range to a dropdown list of allowed values, preventing invalid entries. Works directly on open workbooks to enforce data entry rules.
Instructions
Restrict a range to a dropdown list of allowed values.
Args: workbook: Workbook name or path (None = active workbook). sheet: Worksheet name (None = active sheet). range_address: A1-style address, e.g. "B2:B20". values: List of allowed string values (required), e.g. ["Yes", "No"].
Returns: JSON confirmation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_dropdown_validation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | No | ||
| values | No | ||
| workbook | No | ||
| range_address | No | A1 |