read_attachment
Read ONE attachment. Images are returned as images; text/JSON/CSV/Markdown files as text; PDFs as text plus page images; Word/Excel/PowerPoint/OpenDocument/EPUB as text plus embedded pictures; zip archives as a content listing + local path; other files (video, audio, huge images, legacy .doc/.xls/.ppt) are saved locally and the path returned. attachment is an attachment id or a Mewboard file URL taken from an issue or comment (/api/files/).
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": {
"attachment": "<attachment>"
},
"name": "read_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | default false: ALSO return the original file untouched as an embedded document (up to 20 MB), for clients that read PDFs / Office files natively | |
| attachment | Yes | attachment id (from list_attachments, get_issue or read_issue) |