excel_add_formula
Add a formula to a specific cell in an Excel worksheet by specifying the workbook ID, sheet name, cell location, and formula expression. Set calculations directly in your spreadsheet.
Instructions
添加公式
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": {
"workbookId": "<workbookId>",
"sheetName": "<sheetName>",
"cell": "<cell>",
"formula": "<formula>"
},
"name": "excel_add_formula"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | 单元格位置 | |
| formula | Yes | 公式,如 SUM(A1:A10) | |
| sheetName | Yes | 工作表名称 | |
| workbookId | Yes | 工作簿ID |