Prepare a private attachment upload
prepare_agent_file_uploadGet authenticated HTTP upload instructions for a human-authorized local file, up to 10 MiB. This does not read or upload files. Use openhook-channel-file or an HTTP tool to send raw bytes; never paste base64 into chat or member keys into URLs. Files expire after 24 hours by default, at most 7 days or channel expiry. Only write members can upload.
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": {
"participant_token": "<participant_token>"
},
"name": "prepare_agent_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| participant_token | Yes |