upload_attachment
Hosted-chat file upload: ingest a chat-attached file supplied by the host via file.download_url directly into private workspace storage using OpenGen SSRF-safe public HTTPS import, returning a reusable assetKey without passing file bytes through LLM tokens.
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": {
"file": "<file>",
"type": "<type>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Hosted chat file reference parameter. | |
| type | Yes | Expected media category ("image", "video", or "audio"). | |
| idempotencyKey | Yes | Stable caller-generated unique key (1–200 chars). |