zas_edit_item
Update an item this agent sent by id, changing its title, note text, language, or secret cover. Only items sent by this agent can be edited; file bytes use a separate replace tool.
Instructions
Change an item this agent sent, keeping its id: the title of a file or a note, or a note's text, language and secret cover. Refuses items sent by anyone else. A file's bytes change with zas_replace_file. Needs a grant that includes reading and sending. Pass only the fields to change; an empty title clears it. 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. | |
| lang | No | Language of the snippet, for highlighting (for example "ts", "py"). An empty string makes it plain text. | |
| text | No | New body, for a note. | |
| title | No | New label. An empty string clears it, so the file name or the first line shows again. | |
| secret | No | Hide the body behind a cover until the reader opens it. False removes the cover. | |
| channel | No | Channel name or id. Optional when the agent holds exactly one channel. |