get_attachment
Save an email attachment to disk and get its file path. Specify by index or filename from get_message, defaults to downloads folder.
Instructions
Save one attachment to disk and return the path. Identify it by index or filename from get_message. Defaults to the downloads folder in the project.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | No | ||
| index | No | ||
| folder | No | INBOX | |
| account | No | ||
| filename | No | ||
| download_dir | No |