zas_replace_file
Replace a file this agent sent with a new one, keeping its id, channel placement, and pin. Refuses others, notes, and public shares; returns item id or job id.
Instructions
Replace the bytes of a file this agent sent with a file from this machine, keeping the item id, its place in the channel and its pin. Refuses items sent by anyone else, notes, and an item with a public share. Returns the item id, or a job id when the upload takes longer than a minute. Sends any file this process can read; confirm with the owner before sending secrets, keys or credentials. 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 |
|---|---|---|---|
| id | Yes | Item id, as `zas_list_items` reports it. | |
| path | Yes | Absolute or relative path of the new file. | |
| title | No | New label. Defaults to the label the item has. | |
| channel | No | Channel name or id. Optional when the agent holds exactly one channel. |