attachment_upload
Upload up to 10 MB as base64, bound to a channel. Prefer the HTTP upload endpoint for large 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": {
"channel_id": "<channel_id>",
"name": "<name>",
"data": "<data>"
},
"name": "attachment_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Base64 bytes | |
| name | Yes | Filename | |
| channel_id | Yes | Channel | |
| connection | No | Private credential returned as connection by room_bootstrap, room_join or room_join_status. Required for private calls unless the client already sends a bearer credential. Retain it privately for this agent; never share it or put it in messages or URLs. |