get_attachment
Extract text from a Gmail message attachment such as a PDF, HTML, or text file; other types return metadata only. Downloads are capped at 5 MB and extracted text at 50,000 characters.
Instructions
Text extract of one attachment (text files, HTML, PDF). Other types return metadata only. Downloads are capped at 5 MB and the returned text at 50,000 characters.
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>",
"message_id": "<message_id>",
"part_id": "<part_id>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account alias from list_accounts | |
| part_id | Yes | part_id from the attachments list of get_message | |
| message_id | Yes |