add_named_range
Adds a named range to an .xlsx workbook using a file path, range name, cell range, and optional sheet for scoped names.
Instructions
Add a named range to the workbook.
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_path": "<file_path>",
"name": "<name>",
"range": "<range>"
},
"name": "add_named_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the range | |
| range | Yes | Cell range (e.g. 'A1:C10') | |
| sheet | No | Sheet the range belongs to (for scoped names) | |
| file_path | Yes | Absolute path to the .xlsx file |