Rename module
xlide_rename_moduleRename a VBA module in an Office file (not document modules like ThisWorkbook) and save changes. Procedure calls are not rewritten; search for the old name first.
Instructions
Renames a VBA module everywhere its name is stored, and saves the file. Calls to the module's procedures elsewhere in the project are not rewritten; search for the old name first with xlide_search_modules. Document modules such as ThisWorkbook and Sheet1 cannot be renamed, because the host owns them.
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>",
"module_name": "<module_name>",
"new_name": "<new_name>"
},
"name": "xlide_rename_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | New name. A valid VBA identifier. | |
| file_path | Yes | Absolute path to the Office file. | |
| module_name | Yes | Module to rename. | |
| allow_protected | No | Permit saving a password-protected VBA project. Set true only after the user agrees. | |
| allow_invalidate_signature | No | Permit saving a change that removes the VBA project's digital signature, where applicable. Set true only after the user agrees. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||