Get attachment
mail_get_attachmentFetches one attachment as text or as a small inline file. The file name and text are as the sender wrote 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": {
"id": "<id>",
"part": "<part>"
},
"name": "mail_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Opaque message id. | |
| part | Yes | Part identifier from `mail_get_message`. | |
| offset | No | Unicode scalar offset into a text part. Omitted means the start. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| size | Yes | ||
| text | Yes | ||
| next_offset | Yes | ||
| bytes_base64 | Yes | ||
| content_type | Yes |