rename_folder
Change the name of a mail folder in your Naver Mail account. Specify the current folder name and the new name to update it.
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": {
"old_folder_name": "<old_folder_name>",
"new_folder_name": "<new_folder_name>"
},
"name": "rename_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| old_folder_name | Yes | 기존 폴더 이름 | |
| new_folder_name | Yes | 새 폴더 이름 |
Implementation Reference
- service/mail_service.py:168-173 (handler)The rename_folder method in MailService implements the tool logic by using the imap_tools library to rename a mail folder.
def rename_folder(self, old_folder_name: str, new_folder_name: str) -> None: """ 폴더 이름을 변경합니다. """ with self._get_mailbox_client() as mailbox: mailbox.folder.rename(old_folder_name, new_folder_name)