zas_replace_file
Replaces the bytes of a file this agent sent with a file from the local machine while keeping its item ID, channel position, and pin; rejects files sent by others, notes, and publicly shared items.
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. |