Upload attached document
upload_documentImport the original bytes of a user-provided file using its temporary download_url. Use a stable file_id and idempotency_key for retries. If the source cannot be fetched, request_document_upload provides an upload page. May place content in an existing room and expose it to its recipients (requires rooms:write). Does not create a link; wait for conversion before sharing.
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": {
"idempotency_key": "<idempotency_key>",
"file": "<file>"
},
"name": "upload_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| name | No | ||
| folder | No | General | |
| room_id | No | Existing data room in the connected organization. | |
| filename | No | ||
| idempotency_key | Yes | Unique key for this requested action; reuse unchanged on retry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |