attachment
Open one email file by its ID to view image, PDF, or text content, or see name/type/size; no changes.
Instructions
Open one attachment of an email by its ID, like 'INBOX#1234#0' (thread shows these IDs). Images under 5 MB come back as pictures, PDFs (first 50 pages) and text files as text (up to 50,000 characters); other files only give their name, type and size. To put it on a new email instead, use draft(attach_from=[id]). Changes nothing. An ID that doesn't exist gives an error.
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>"
},
"name": "attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The attachment's ID, shown by thread, like 'INBOX#1234#0'. |