Set defined name
set_defined_nameCreate a defined name for a range or constant in Excel, making it usable in formulas like =SUM(Sales). Replaces any existing name with the same scope.
Instructions
Create a defined name for a range or constant (usable in formulas, '=SUM(Sales)'), replacing one of the same scope. The reference follows the formula safety rules.
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": {
"path": "<path>",
"name": "<name>",
"refers_to": "<refers_to>"
},
"name": "set_defined_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Letters, digits, underscores and periods, e.g. 'TaxRate'. | |
| path | Yes | ||
| sheet | No | Scope sheet. Default: the workbook. | |
| refers_to | Yes | Range with sheet, 'Data!$B$2:$B$100', or a constant, '0.075'. |