Format Conversion
Create or update workbook-level named ranges so formulas, validations, and reusable templates can reference stable Excel names
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/xlsx-named-range-injector' \
-F 'file=@/path/to/workbookFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/xlsx-named-range-injector' \
-F 'workbookFile=/public/samples/xlsx/workbook-sales.xlsx' \
-F 'namedRangesJson=[
{
"name": "SalesData",
"sheetName": "Sheet1",
"range": "A1:D12",
"mode": "replace"
},
{
"name": "ProductList",
"sheetName": "Sheet1",
"range": "B2:B12",
"mode": "replace"
}
]' \
-F 'normalizeNames=true' \
-F 'overwriteExisting=true'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/xlsx-named-range-injector| Name | Type | Required | Description |
|---|---|---|---|
| workbookFile | fileupload required | Yes | — |
| namedRangesJson | textarea | Yes | — |
| normalizeNames | checkbox | No | — |
| overwriteExisting | checkbox | No | — |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-xlsx-named-range-injector": {
"name": "xlsx-named-range-injector",
"description": "Create or update workbook-level named ranges so formulas, validations, and reusable templates can reference stable Excel names",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=xlsx-named-range-injector",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "xlsx-named-range-injector",
"arguments": {
"workbookFile": "/public/samples/xlsx/workbook-sales.xlsx",
"namedRangesJson": "[\n {\n \"name\": \"SalesData\",\n \"sheetName\": \"Sheet1\",\n \"range\": \"A1:D12\",\n \"mode\": \"replace\"\n },\n {\n \"name\": \"ProductList\",\n \"sheetName\": \"Sheet1\",\n \"range\": \"B2:B12\",\n \"mode\": \"replace\"\n }\n]",
"normalizeNames": true,
"overwriteExisting": true
}
}
}Questions or issues? Contact [email protected]