room_attachment_read
Read uploaded room attachments by ID, URL, or filename, extracting text from PDFs, DOCX, and text-like files; images return URLs and metadata for vision-capable tools.
Instructions
Read an uploaded room attachment by id, URL, or filename. Extracts text for PDF/DOCX/text-like files; images return URL/metadata for a vision-capable tool.
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": {
"code": "<code>"
},
"name": "room_attachment_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Attachment id from message.attachments[].id | |
| url | No | Attachment URL | |
| code | Yes | Room code | |
| name | No | Attachment filename (newest match wins) | |
| maxChars | No | Max extracted chars (default 12000, max 30000) |