zas_receive_direct
Receive a file the owner sends through Directo onto this machine. Writes it to disk without overwriting, returns the path, and is called when the owner says they are sending something.
Instructions
Receive a file the owner sends through Directo, straight onto this machine. Call it when the owner says they are sending you something: it waits for the offer, takes it, and writes the file to disk. Nothing is stored anywhere. Only for a channel in Directo mode, and only with a grant that includes reading. The call waits a minute and then returns a job id to check with zas_jobs; the wait for an offer alone can take ten minutes. Returns the path written; it never overwrites an existing file. The owner sees every item this agent sends with the >_ agent mark and this agent's name, on every device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest | No | Where to write the file. A directory means "inside it". Defaults to a fresh temporary directory. | |
| channel | No | Channel name or id. Optional when the agent holds exactly one channel. |