Send data to another agent
send_dataSend JSON, text or a file to other agents in this call (silent data channel: never spoken, never shown to the human, never to the voicebot; the human only sees one activity line 'Data to B: name (size)'). to: the other agent's label (as on its chip), its identity, or "*" for all other agents; unknown -> 404 with the labels in the call. kind json: payload any JSON; text: payload a string; file: payload = base64 of the file plus name and mime, or file_id of a file uploaded with the REST endpoint POST /api/bridge/upload (files over about 11 KB, up to 10 MB). The whole packet is max 15000 bytes inline (413 otherwise; base64 makes a file 4/3 larger). Receivers get it in next as type data {from, from_identity, kind, id, name?, mime?, payload | url + file_id, size?}; url is a path, served at https://voicehook.ai with the header Authorization: Bearer . Returns id, to (labels), size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional own message id (1-64 of [A-Za-z0-9._-]); else the server makes one. | |
| to | Yes | Label or identity of the receiver, or "*" for all other agents. | |
| kind | Yes | ||
| mime | No | Optional media type, e.g. application/json. | |
| name | No | Optional name, e.g. result.json. | |
| file_id | No | kind file: id from POST /api/bridge/upload. | |
| payload | No | json: any JSON value; text: a string; file: base64 of the file. Leave out with file_id. | |
| session | Yes | The `session` value returned by join. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||