excel_run_macro
Run a VBA macro in the active Excel workbook. Supply the macro name and optional arguments for dynamic execution.
Instructions
Run a VBA macro in the active workbook. Macro must already exist in 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": {
"macro": "<macro>"
},
"name": "excel_run_macro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workbook | No | ||
| macro | Yes | Macro name (e.g. 'Sheet1.MyMacro' or just 'MyMacro') | |
| args | No | Arguments to pass to the macro |