download_attachment
Saves an email attachment to a PC and returns its full path. Uses the Downloads folder by default, creates missing folders, and directs you to read the saved file from that path.
Instructions
첨부 파일을 PC에 저장하고 전체 경로를 돌려준다. save_dir가 없으면 다운로드 폴더에 저장하고, 폴더가 없으면 만든다. 파일 내용은 돌려주지 않으니 경로로 직접 읽는다.
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": {
"account": "<account>",
"folder": "<folder>",
"uid": "<uid>",
"index": "<index>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | search_emails가 돌려준 uid | |
| index | Yes | read_email 첨부 목록의 번호 | |
| folder | Yes | 메일함 경로. list_folders의 path 값 | |
| account | Yes | 메일 계정의 메일 주소. 설정된 계정이 없다. 어느 계정인지 요청에서 분명하지 않으면 도구를 부르기 전에 사용자에게 묻는다. | |
| save_dir | No | 저장할 폴더의 절대 경로 |